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>
"lesson":"** \nBefore assigning a Packer to Chicago, verify the candidate’s current assignment and cross‑check drift logs for recent misplacements. Pre‑calibrate packing tools and load a backup Packer into the pool to avoid a single point of failure. If a drift risk is flagged, immediately relocate the Packer or switch to a verified alternate. Keep the pool count updated and ensure it matches the required number of roles before each event.",
"checkpoints":[
{
"after":"09:30",
"risk":"Packer drift risk persists",
"hint":"Verify Packer's Chicago assignment, review drift logs, recalibrate tools, and consider temporary relocation."
"lesson":"When an expansion request for Pickers in Joliet hits a[ZERO‑SUPPLY] flag, immediately pivot to CrestHill,IL (≈10mi) – the corpus shows a pool of>500 qualified Pickers there and it stays within the 50‑mi bonus radius. Before the shift starts, pull a shortlist of at least4CrestHill candidates and lock them in, keeping the Joliet pool as a secondary fallback only for Warehouse Associates. Also verify each candidate’s existing assignments to prevent double‑booking (e.g., JoshuaTaylor) before confirming any fill. If CrestHill still lacks enough workers, broaden the search to nearby Chicago (≈45mi) while staying within the local bonus zone.",
"checkpoints":[
{
"after":"12:30",
"risk":"Zero supply for Picker in Joliet",
"hint":"Pivot to Crest Hill, IL (≈10mi) for Picker; pool likely >500. If still insufficient, broaden to Warehouse Associate in Joliet."
},
{
"after":"15:00",
"risk":"Potential double‑booking of Joshua Taylor",
"hint":"For the next Forklift Operator shift in Joliet, select a different qualified candidate from the pool; if none, pivot to Chicago, IL (≈45mi) to remain within the 50mi bonus radius."
"lesson":"** \nBefore assigning the 15:00 baseline_fill, pre‑fetch the list of workers already allocated at 10:00 and cross‑check each candidate’s schedule to avoid double booking. Verify that every worker’s artifact includes a valid `f.reason` before finalizing the assignment. This ensures overlapping shifts are caught early and reduces rework.",
"checkpoints":[
{
"after":"10:00",
"risk":"Double booking of scheduled workers",
"hint":"Verify each worker's schedule before assigning to 15:00; handle artifact errors by ensuring f.reason exists."
- **07:00** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"tool_call","tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5","question":"Warehouse Associate Joliet, IL","k":40},"rationale":"Continue searching for Warehouse
- **10:00** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"tool_call","tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5","question":"recurring forklift operator Joliet, IL","k":60},"rationale":"Initiate search for qualifi
- **12:30** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"tool_call","tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75","question":"4 × Picker in Joliet, IL","k":20},"rationale":"Re-run the se
- **15:00** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"tool_call","tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5","question":"Forklift Operator Joliet, IL","k":20},"rationale":"Verify the availability and suitabili
### write_through_audit
- _post-run_ — playbook_memory has 1728 entries (ran 4 events, expected ≥ 0 new entries from this run)
## Workers touched across the week
0 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 |
|---|---|---|---|
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
"scenario_note":"Staffed by Sam Torres (junior, 4mo). Contract deadline 2026-05-12, fill=preferred."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":11.649,
"error":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Warehouse Associate Joliet, IL\",\"k\":40},\"rationale\":\"Continue searching for Warehouse ",
"gap_signals":[
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Warehouse Associate Joliet, IL\",\"k\":40},\"rationale\":\"Continue searching for Warehouse "
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_call",
"content":{
"kind":"tool_call",
"tool":"hybrid_search",
"args":{
"index_name":"workers_500k_v1",
"sql_filter":"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5",
"question":"Warehouse Associate Joliet, IL",
"k":40
},
"rationale":"Initial search for Warehouse Associates in Joliet, IL with availability > 50%"
},
"at":"2026-04-21T04:04:55.518Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_result",
"content":{
"question":"Warehouse Associate Joliet, IL",
"sql_filter":"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5",
"notes":"The executor is on a reasonable path, but ensure that exactly 5 Warehouse Associates from Joliet, IL are proposed. Verify at least one of the proposed candidates through SQL to meet the approval criteria."
},
"at":"2026-04-21T04:04:57.150Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":402
},
"at":"2026-04-21T04:04:59.720Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":804
},
"at":"2026-04-21T04:05:01.509Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1206
},
"at":"2026-04-21T04:05:03.300Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"error",
"content":{
"message":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Warehouse Associate Joliet, IL\",\"k\":40},\"rationale\":\"Continue searching for Warehouse ",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Warehouse Associate Joliet, IL\",\"k\":40},\"rationale\":\"Continue searching for Warehouse "
},
"at":"2026-04-21T04:05:05.096Z"
}
]
},
{
"event":{
"kind":"recurring",
"at":"10:00",
"role":"Forklift Operator",
"count":3,
"city":"Joliet",
"state":"IL",
"shift_start":"10:00 PM",
"scenario_note":"Staffed by Sam Torres (junior, 4mo). Contract deadline 2026-05-12, fill=preferred."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":7.987,
"error":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"recurring forklift operator Joliet, IL\",\"k\":60},\"rationale\":\"Initiate search for qualifi",
"gap_signals":[
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"recurring forklift operator Joliet, IL\",\"k\":60},\"rationale\":\"Initiate search for qualifi"
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":412
},
"at":"2026-04-21T04:05:07.939Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":824
},
"at":"2026-04-21T04:05:09.823Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1236
},
"at":"2026-04-21T04:05:11.693Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"error",
"content":{
"message":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"recurring forklift operator Joliet, IL\",\"k\":60},\"rationale\":\"Initiate search for qualifi",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"recurring forklift operator Joliet, IL\",\"k\":60},\"rationale\":\"Initiate search for qualifi"
},
"at":"2026-04-21T04:05:13.586Z"
}
]
},
{
"event":{
"kind":"expansion",
"at":"12:30",
"role":"Picker",
"count":4,
"city":"Joliet",
"state":"IL",
"shift_start":"12:30 PM",
"scenario_note":"Staffed by Sam Torres (junior, 4mo). Contract deadline 2026-05-12, fill=preferred."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":12.916,
"error":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"4 × Picker in Joliet, IL\",\"k\":20},\"rationale\":\"Re-run the se",
"gap_signals":[
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"4 × Picker in Joliet, IL\",\"k\":20},\"rationale\":\"Re-run the se"
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_call",
"content":{
"kind":"tool_call",
"tool":"hybrid_search",
"args":{
"index_name":"workers_500k_v1",
"sql_filter":"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75",
"question":"4 × Picker in Joliet, IL",
"k":20
},
"rationale":"Initial search for Pickers in Joliet, IL with required availability and reliability."
},
"at":"2026-04-21T04:05:16.372Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_result",
"content":{
"question":"4 × Picker in Joliet, IL",
"sql_filter":"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75",
"chunk_text":"Sarah A. Castillo — Loader in Akron, OH. Skills: first aid|hazmat|inventory|pick-to-light|training. Certs: Fire Safety. Archetype: flexible. Reliability: 0.72, Availability: 0.41",
"chunk_text":"Olga V. Allen — Production Worker in Jefferson City, MO. Skills: SPC|bilingual|conveyor ops|hazmat|lean manufacturing|quality inspection. Certs: OSHA-10. Archetype: leader. Reliability: 0.79, Availability: 0.26",
"chunk_text":"Jennifer V. King — Forklift Operator in Champaign, IL. Skills: Excel|RF scanner|bilingual|forklift|hazmat|overhead crane|receiving. Certs: Forklift|First Aid/CPR. Archetype: reliable. Reliability: 0.92, Availability: 0.77",
"score":0.6389716,
"sql_verified":false
}
],
"duration_ms":241
},
"at":"2026-04-21T04:05:16.615Z"
},
{
"turn":1,
"role":"reviewer",
"model":"qwen2.5:latest",
"kind":"critique",
"content":{
"kind":"critique",
"verdict":"drift",
"notes":"The proposed candidates do not meet the criteria as they are from different locations or have different roles. Please re-run the search specifically for 4 Pickers in Joliet, IL with availability > 0.5 and reliability > 0.75."
},
"at":"2026-04-21T04:05:18.173Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":432
},
"at":"2026-04-21T04:05:20.959Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":864
},
"at":"2026-04-21T04:05:22.982Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1296
},
"at":"2026-04-21T04:05:24.990Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"error",
"content":{
"message":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"4 × Picker in Joliet, IL\",\"k\":20},\"rationale\":\"Re-run the se",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Picker' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"4 × Picker in Joliet, IL\",\"k\":20},\"rationale\":\"Re-run the se"
},
"at":"2026-04-21T04:05:27.003Z"
}
]
},
{
"event":{
"kind":"misplacement",
"at":"15:00",
"role":"Forklift Operator",
"count":1,
"replaces_event":"10:00",
"city":"Joliet",
"state":"IL",
"shift_start":"15:00 PM",
"scenario_note":"Staffed by Sam Torres (junior, 4mo). Contract deadline 2026-05-12, fill=preferred."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":10.99,
"error":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Forklift Operator Joliet, IL\",\"k\":20},\"rationale\":\"Verify the availability and suitabili",
"gap_signals":[
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Forklift Operator Joliet, IL\",\"k\":20},\"rationale\":\"Verify the availability and suitabili"
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_call",
"content":{
"kind":"tool_call",
"tool":"hybrid_search",
"args":{
"index_name":"workers_500k_v1",
"sql_filter":"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5",
"question":"Forklift Operator Joliet, IL",
"k":20
},
"rationale":"Initial search for available Forklift Operators in Joliet, IL to fill the position."
},
"at":"2026-04-21T04:05:29.679Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_result",
"content":{
"question":"Forklift Operator Joliet, IL",
"sql_filter":"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5",
"chunk_text":"Anna A. Green — Forklift Operator in Joliet, IL. Skills: first aid|forklift|packaging|pick-to-light|training. Certs: Forklift|First Aid/CPR. Archetype: reliable. Reliability: 0.84, Availability: 0.55",
"score":0.6286367,
"sql_verified":true
}
],
"duration_ms":310
},
"at":"2026-04-21T04:05:29.990Z"
},
{
"turn":1,
"role":"reviewer",
"model":"qwen2.5:latest",
"kind":"critique",
"content":{
"kind":"critique",
"verdict":"continue",
"notes":"Continue with verification of at least one candidate from Joliet, IL who is a Forklift Operator."
},
"at":"2026-04-21T04:05:31.084Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":352
},
"at":"2026-04-21T04:05:33.540Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":704
},
"at":"2026-04-21T04:05:35.195Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1056
},
"at":"2026-04-21T04:05:36.836Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"error",
"content":{
"message":"invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Forklift Operator Joliet, IL\",\"k\":20},\"rationale\":\"Verify the availability and suitabili",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Joliet' AND state = 'IL' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Forklift Operator Joliet, IL\",\"k\":20},\"rationale\":\"Verify the availability and suitabili"
# SMS drafts — Midway Distribution — Joliet DC Ramp, 2026-04-29
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.