chore: add real content that was sitting untracked

Surfaced by today's untracked-files audit. None of these are accidents —
multiple are referenced by name in CLAUDE.md and memory files but were
never added.

Categories:
- docs/PHASE_AUDIT_GUIDE.md (106 LOC) — Claude Code phase audit guidance
- ops/systemd/lakehouse-langfuse-bridge.service — Langfuse bridge unit
- package.json — top-level npm manifest
- scripts/e2e_pipeline_check.sh + production_smoke.sh — real test scripts
- reports/kimi/audit-last-week*.md — the "Two reports live" CLAUDE.md cites
- tests/multi-agent/scenarios/ — 44 staffing scenarios (cutover decision A)
- tests/multi-agent/playbooks/ — 102 playbook records
- tests/battery/, tests/agent_test/PRD.md, tests/real-world/* — real tests
- sidecar/sidecar/{lab_ui,pipeline_lab}.py — 888 LOC dev-only UIs that
  remain in service post-sidecar-drop (commit ba928b1 explicitly kept them)

Sensitivity check: scenarios use synthetic company names ("Heritage Foods",
"Cornerstone Fabrication"); audit reports describe code findings only;
no PII or secrets surfaced.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
root
2026-05-02 22:22:10 -05:00
co-authored by Claude Opus 4.7
parent 6e34ef7baf
commit 41b0a99ed2
788 changed files with 107142 additions and 0 deletions
@@ -0,0 +1,2 @@
{"after_event":"11:00","event_kind":"expansion","ok":true,"model":"gpt-oss:120b","duration_secs":9.876,"risk":"Double-booking of workers from 09:30 shift","hint":"For the upcoming role (e.g., Assembler in Indianapolis), verify that assigned workers aren't already booked at 09:30; if conflict, use alternative local candidates or pivot to Columbus, OH (≈45mi) within bonus radius."}
{"after_event":"16:00","event_kind":"misplacement","ok":true,"model":"gpt-oss:120b","duration_secs":8.83,"risk":"Potential double‑booking of Jacob E. Bailey","hint":"Pivot to Carmel, IN (≈15 mi) for Machine Operator role to stay within bonus radius and avoid double‑booking Jacob E. Bailey."}
@@ -0,0 +1,3 @@
{"at":"09:30","kind":"recurring","operation":"fill: Quality Tech x2 in Indianapolis, IN","fills":[{"candidate_id":"W500K-41658","name":"Frank G. Roberts"},{"candidate_id":"W500K-32928","name":"Carlos M. Murphy"}],"turns":2,"duration_secs":11.502,"pool_size":697,"playbook_citations":["pb-seed-9c0c5b136f134c33","pb-seed-dbce9e418f6fa1e9","pb-seed-a3774077f1b11299","pb-seed-7e68e7e5d52f22ec","pb-seed-9124e59dbb7c2f18"],"discovered_pattern":"Across 25 similar past playbooks (20 workers examined) · recurring certifications: Forklift (40%) · archetype mostly: reliable · reliability median 0.80 (range 0.34–1.00)"}
{"at":"11:00","kind":"expansion","operation":"fill: Machine Operator x5 in Indianapolis, IN","fills":[{"candidate_id":"W500K-6479","name":"Christina Watson"},{"candidate_id":"W500K-34233","name":"Alexander R. Evans"},{"candidate_id":"W500K-23524","name":"Angela U. Ward"},{"candidate_id":"W500K-23467","name":"Alexander P. Turner"},{"candidate_id":"W500K-18400","name":"Amy S. Jenkins"}],"turns":2,"duration_secs":15.26,"pool_size":597,"playbook_citations":["pb-seed-b5d8a51cb9df9a2a","pb-seed-2a6b072589433954","pb-seed-e70a39e9ce31d93b","pb-seed-ec790797c90d8b04","pb-seed-11a4d8a8851b339e","pb-seed-b249552c3cd15b5e","pb-seed-fcf82664d2d9567b","pb-seed-4b7bc1f7f068bb9f","pb-seed-dbc5dd10ff21f254"],"discovered_pattern":"Across 25 similar past playbooks (20 workers examined) · recurring certifications: Forklift (40%) · archetype mostly: communicator · reliability median 0.80 (range 0.34–1.00)"}
{"at":"16:00","kind":"misplacement","operation":"fill: Assembler x1 in Indianapolis, IN","fills":[{"candidate_id":"W500K-24626","name":"Jacob E. Bailey"}],"turns":2,"duration_secs":10.947,"pool_size":838,"playbook_citations":["pb-seed-66e1af3b76592c54","pb-seed-66d37fc6946ae16d","pb-seed-4877dd9a31995eb3","pb-seed-885e0dacb0961e89","pb-seed-16869a3ac95216f8","pb-seed-65fc161357d36662","pb-seed-b6e0217d434d26c9","pb-seed-c639407f546e9d56","pb-seed-f47cccf334bb1e05","pb-seed-8b3d25b990bddacb"],"discovered_pattern":"Across 25 similar past playbooks (21 workers examined) · recurring certifications: Forklift (43%) · archetype mostly: reliable · reliability median 0.80 (range 0.34–1.00)"}
@@ -0,0 +1,49 @@
# Client emails — Pioneer Assembly — Indianapolis Plant Expansion, 2026-04-24
## 09:30 recurring — Quality Tech x2
To: staffing@pioneerassembly—indianapolisplantexpansion.example
From: dispatch@lakehouse.example
Subject: Quality Techs Confirmed
Dear Pioneera Team,
We are pleased to confirm that we have filled both positions for Quality Tech roles with Frank G. Roberts and Carlos M. Murphy, starting at 09:30 AM. This assignment is being managed by Maria Chen (senior, 48mo exp), and the contract deadline is set for May 26, 2026; please ensure this fill remains paramount.
Best regards,
Lakehouse Dispatch Team
## 11:00 expansion — Machine Operator x5
To: staffing@pioneerassembly—indianapolisplantexpansion.example
From: dispatch@lakehouse.example
Subject: Confirmed Staffing
Dear Pioneers Assembly Team,
I am pleased to confirm that we have filled all 5 positions with Machine Operators as requested:
- Christina Watson
- Alexander R. Evans
- Angela U. Ward
- Alexander P. Turner
- Amy S. Jenkins
Shift starts at 11:00 PM tonight. This shift is staffed by Maria Chen, a senior worker with 48 months of experience. Please note that her contract deadline is May 26, 2026; ensuring we meet this requirement is paramount.
Best regards,
[Your Name]
Lakehouse Dispatch
## 16:00 misplacement — Assembler x1
To: staffing@pioneerassembly—indianapolisplantexpansion.example
From: dispatch@lakehouse.example
Subject: Confirmation
We have filled 1 position as requested: Assembler - Jacob E. Bailey. Shift starts at 16:00 PM. Staffed by Maria Chen (senior, 48mo). Contract deadline is 2026-05-26; please note this is a paramount fill.
Best regards,
Lakehouse Dispatch
@@ -0,0 +1,5 @@
# Cross-day lesson — Pioneer Assembly — Indianapolis Plant Expansion, 2026-04-24
_Generated by `gpt-oss:120b` in 5.1s. Based on 5 events + 2 mid-day checkpoints._
Before launching any fill, query the current schedule and exclude workers already booked in earlier shifts (e.g., the 09:30 Quality Tech slots) when selecting candidates for later roles such as Assemblers or Machine Operators. Cache each worker’s availability per time block at the start of the day to prevent double‑booking. If a fill fails due to executor JSON errors, immediately retry using a pre‑validated secondary city within the 60‑mi radius (e.g., Columbus, OH for Assemblers, Carmel, IN for Machine Operators). Verify the JSON payload against the schema before each request to avoid parse failures.
@@ -0,0 +1,80 @@
[
{
"date": "2026-05-05",
"client": "Midway Distribution",
"cities": "Indianapolis",
"states": "IN",
"events_total": 4,
"events_ok": 3,
"checkpoint_count": 2,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore running an expansion, pre‑fetch local Packer data (or fallback to the nearest city) and validate that the executor returns well‑formed JSON; this prevents the “Missing local Packer data” failure. \nWhen an emergency request arrives, immediately cross‑check the 16:00 schedule to ensure no worker is assigned twice, and correct any artifact errors in the scheduling logic that could cause double‑booking. \nImplement automated checks that flag duplicate assignments and missing data before the agent commits to a fill.",
"checkpoints": [
{
"after": "10:30",
"risk": "Missing local Packer data",
"hint": "Add Indianapolis Packer records to the index or fallback to nearest city; verify executor returns valid JSON before execution."
},
{
"after": "12:00",
"risk": "16:00 double-booking risk",
"hint": "Verify no worker is assigned twice for 16:00; fix artifact error in scheduling logic."
}
],
"created_at": "2026-04-21T02:04:50.585Z",
"file": "2026-05-05_Midway_Distribution_1776737090585.json"
},
{
"date": "2026-05-03",
"client": "Pioneer Assembly — Indianapolis Plant Expansion",
"cities": "Indianapolis",
"states": "IN",
"events_total": 5,
"events_ok": 5,
"checkpoint_count": 2,
"model": "gpt-oss:120b",
"cloud": true,
"lesson": "When scheduling multiple shifts for the same role in Indianapolis, pull the candidate roster for the upcoming shift before locking in the current one to catch any overlap. If the Indianapolis pool for Machine Operators looks thin, pre‑load Muncie, IN (≈60 mi) candidates and reserve them as the primary alternate before assigning any Indianapolis workers. Keep a backup list of qualified Assemblers (e.g., Maria L. Torres) ready to replace anyone flagged for double‑booking such as Jacob E. Bailey. Verify that all selected workers stay within the 60‑mile radius to secure the $5/hr local bonus.",
"checkpoints": [
{
"after": "11:00",
"risk": "Double‑booking risk for Machine Operators",
"hint": "For the next Machine Operator shift, pivot to Muncie, IN (~60 mi) to tap fresh pool and prevent double‑booking of the Indianapolis crew."
},
{
"after": "16:00",
"risk": "Potential double‑booking of Jacob E. Bailey",
"hint": "For the next Indianapolis Assembler shift, select another qualified worker (e.g., Maria L. Torres) to prevent double‑booking Jacob E. Bailey; stay within the 60 mi bonus radius."
}
],
"created_at": "2026-04-21T03:44:59.381Z",
"file": "2026-05-03_Pioneer_Assembly_—_Indianapolis_Plant_Expansion_1776743099381.json"
},
{
"date": "2026-04-30",
"client": "Pioneer Assembly — Indianapolis Plant Expansion",
"cities": "Indianapolis",
"states": "IN",
"events_total": 5,
"events_ok": 5,
"checkpoint_count": 2,
"model": "gpt-oss:120b",
"cloud": true,
"lesson": "When multiple shifts overlap in the same city, pull the required number of Machine Operators and Assemblers from the nearest alternate city (e.g., Muncie, IN ≈ 45 mi) before assigning any Indianapolis staff, keeping them within the $5/hr local‑bonus radius. Pre‑check each role’s turn count and reserve candidates from the alternate pool to avoid double‑booking individuals like Zachary Taylor. If a shift’s pool shows a gap ≥ 3, automatically queue the same‑role candidates from the alternate city for the next shift rather than re‑using the same workers. Maintain a live “used‑per‑city” ledger so the system flags potential double‑bookings before confirming fills.",
"checkpoints": [
{
"after": "11:00",
"risk": "Double‑booking risk for overlapping shifts",
"hint": "For next shift, source Machine Operators from Muncie, IN (≈45 mi) to stay within bonus radius and avoid double‑booked Indianapolis staff."
},
{
"after": "16:00",
"risk": "Potential double‑booking of Zachary Taylor",
"hint": "If the next shift needs an Assembler in Indianapolis, pull a candidate from Muncie, IN (≈45 mi) – still within bonus radius – to sidestep the double‑booking issue."
}
],
"created_at": "2026-04-21T03:37:30.970Z",
"file": "2026-04-30_Pioneer_Assembly_—_Indianapolis_Plant_Expansion_1776742650970.json"
}
]
@@ -0,0 +1,81 @@
# Scenario retrospective — Pioneer Assembly — Indianapolis Plant Expansion, 2026-04-24
Executor: `qwen3.5:latest` Reviewer: `qwen3:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:120b (cloud)`
Prior lessons loaded into executor context: **3** (from 2026-05-05, 2026-05-03, 2026-04-30)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 07:30 | baseline_fill | Assembler × 6 | - | ✗ 0 | 0 | 32.9 | 0 | 1 |
| 09:30 | recurring | Quality Tech × 2 | 697 | ✓ 2 | 2 | 11.5 | 5 | 1 |
| 11:00 | expansion | Machine Operator × 5 | 597 | ✓ 5 | 2 | 15.3 | 9 | 5 |
| 14:00 | emergency | Machine Operator × 3 | - | ✗ 0 | 0 | 70.6 | 0 | 1 |
| 16:00 | misplacement | Assembler × 1 | 838 | ✓ 1 | 2 | 10.9 | 10 | 1 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Frank G. Roberts | 09:30 | Quality Tech | Indianapolis, IN | confirmed |
| undefined Carlos M. Murphy | 09:30 | Quality Tech | Indianapolis, IN | confirmed |
| undefined Christina Watson | 11:00 | Machine Operator | Indianapolis, IN | confirmed |
| undefined Alexander R. Evans | 11:00 | Machine Operator | Indianapolis, IN | confirmed |
| undefined Angela U. Ward | 11:00 | Machine Operator | Indianapolis, IN | confirmed |
| undefined Alexander P. Turner | 11:00 | Machine Operator | Indianapolis, IN | confirmed |
| undefined Amy S. Jenkins | 11:00 | Machine Operator | Indianapolis, IN | confirmed |
| undefined Jacob E. Bailey | 16:00 | Assembler | Indianapolis, IN | confirmed |
## Gap signals
### drift_or_tool
- **07:30** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"propose_done","fills":[{"candidate_id":"W500K-24626","name":"Jacob E. Bailey"},{"candidate_id":"W500K-7814","name":"Jeffrey Walker"},{"candidate_id":"W500K-45788","name":"Andre C. Brooks"},{"candidate_id":"W500K-47104","name":"James S. Castillo"},{"candidate_id":"W500K-23186","name":"Peter
- **14:00** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"propose_done","fills":[{"candidate_id":"W500K-23467","name":"Alexander P. Turner"},{"candidate_id":"W500K-23524","name":"Angela U. Ward"},{"candidate_id":"W500K-6479","name":"Christina Watson"}],"rationale":"The hybrid_search returned 15 candidates for Machine Operators in Indianapolis, IN
### double_book
- **09:30** — undefined Carlos M. Murphy already booked for 09:30
- **11:00** — undefined Christina Watson already booked for 09:30
- **11:00** — undefined Alexander R. Evans already booked for 09:30
- **11:00** — undefined Angela U. Ward already booked for 09:30
- **11:00** — undefined Alexander P. Turner already booked for 09:30
- **11:00** — undefined Amy S. Jenkins already booked for 09:30
- **16:00** — undefined Jacob E. Bailey already booked for 09:30
### fairness
- _cross-event_ — Frank G. Roberts (undefined) booked 8 times today
### write_through_audit
- _post-run_ — playbook_memory has 1635 entries (ran 5 events, expected ≥ 3 new entries from this run)
## Workers touched across the week
8 distinct workers made it through to a decision. Every one is accounted for below — no-shows flagged, rebookings noted, everyone visible.
| Worker ID | Name | Events | Outcome |
|---|---|---|---|
| W500K-41658 | Frank G. Roberts | 09:30 recurring | booked |
| W500K-32928 | Carlos M. Murphy | 09:30 recurring | booked |
| W500K-6479 | Christina Watson | 11:00 expansion | booked |
| W500K-34233 | Alexander R. Evans | 11:00 expansion | booked |
| W500K-23524 | Angela U. Ward | 11:00 expansion | booked |
| W500K-23467 | Alexander P. Turner | 11:00 expansion | booked |
| W500K-18400 | Amy S. Jenkins | 11:00 expansion | booked |
| W500K-24626 | Jacob E. Bailey | 16:00 misplacement | booked |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **07:30 baseline_fill** (Assembler): —
- **09:30 recurring** (Quality Tech): Across 25 similar past playbooks (20 workers examined) · recurring certifications: Forklift (40%) · archetype mostly: reliable · reliability median 0.80 (range 0.34–1.00)
- **11:00 expansion** (Machine Operator): Across 25 similar past playbooks (20 workers examined) · recurring certifications: Forklift (40%) · archetype mostly: communicator · reliability median 0.80 (range 0.34–1.00)
- **14:00 emergency** (Machine Operator): —
- **16:00 misplacement** (Assembler): Across 25 similar past playbooks (21 workers examined) · recurring certifications: Forklift (43%) · archetype mostly: reliable · reliability median 0.80 (range 0.34–1.00)
## Narrative
- 3/5 events reached consensus.
- Final roster: 8 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 8.
- Playbook citations across the day: 24 (proof the feedback loop fired across events).
- Dropped events: 07:30 baseline_fill, 14:00 emergency.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,66 @@
[
{
"name": "Frank G. Roberts",
"booked_for": "09:30",
"role": "Quality Tech",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Carlos M. Murphy",
"booked_for": "09:30",
"role": "Quality Tech",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Christina Watson",
"booked_for": "11:00",
"role": "Machine Operator",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Alexander R. Evans",
"booked_for": "11:00",
"role": "Machine Operator",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Angela U. Ward",
"booked_for": "11:00",
"role": "Machine Operator",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Alexander P. Turner",
"booked_for": "11:00",
"role": "Machine Operator",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Amy S. Jenkins",
"booked_for": "11:00",
"role": "Machine Operator",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
},
{
"name": "Jacob E. Bailey",
"booked_for": "16:00",
"role": "Assembler",
"city": "Indianapolis",
"state": "IN",
"status": "confirmed"
}
]
@@ -0,0 +1,41 @@
# SMS drafts — Pioneer Assembly — Indianapolis Plant Expansion, 2026-04-24
## 09:30 recurring — Quality Tech x2 in Indianapolis, IN
TO: Frank G. Roberts
Confirming your shift as a Quality Tech starting at 09:30 AM today. Thanks for your help!
---
TO: Carlos M. Murphy
Your shift as a Quality Tech starts now at 09:30 AM. Looking forward to your contribution!
## 11:00 expansion — Machine Operator x5 in Indianapolis, IN
TO: Christina Watson
Confirming your shift as Machine Operator starting at 11 PM tonight. Thanks!
---
TO: Alexander R. Evans
Your shift as Machine Operator starts now at 11 PM. Confirm please.
---
TO: Angela U. Ward
Shift confirmed for you as a Machine Operator from 11 PM onwards.
---
TO: Alexander P. Turner
Confirm your shift as Machine Operator starting at 11 PM tonight.
---
TO: Amy S. Jenkins
Your shift is confirmed as Machine Operator starting at 11 PM. Confirm please.
## 16:00 misplacement — Assembler x1 in Indianapolis, IN
TO: Jacob E. Bailey
Confirming your shift start at 16:00 PM today at Pioneer Assembly Indianapolis Plant. Safe and on-time please!