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":"When multiple fills are requested for the same city, lock each worker to a single shift in a temporary assignment map before processing the next request. Pre‑select a backup pool from the nearest alternate city (e.g., Murfreesboro,TN) that stays within the 75‑mi bonus radius and reserve those candidates for emergency or misplacement fills. Before confirming any fill, run a quick cross‑check against the map to catch potential double‑bookings, especially for workers who appear in consecutive requests. If a double‑booking is detected, substitute the reserved Murfreesboro candidate to preserve the schedule and bonus eligibility.",
"checkpoints":[
{
"after":"09:00",
"risk":"double‑booked staff",
"hint":"Check worker assignments to avoid double‑booking; if additional Shipping Clerks needed, pivot to Murfreesboro, TN (≈35mi) – still within bonus radius."
},
{
"after":"15:30",
"risk":"Potential double‑booking conflict for Jamal Ruiz",
"hint":"If the next shift is Packaging Operator in Nashville, assign a different local candidate—e.g., pull from Murfreesboro (45mi) to stay within the bonus radius."
"lesson":"When multiple fills target the same city, the pool’s “turns” metric can mask imminent double‑booking; always cross‑reference each candidate’s current assignment before confirming a new fill. Pre‑load a secondary candidate list from the nearest bonus‑eligible city (e.g., Murfreesboro,TN ≈ 35mi) for every role that has already been placed twice in Nashville. If a worker appears in the “cites” count for a role more than once, automatically switch that fill to the Murfreesboro list to preserve the local $4/hr bonus and avoid conflicts. Finally, log each assignment’s turn number and gap count in a shared spreadsheet so the next shift can spot repeat usage at a glance.",
"checkpoints":[
{
"after":"09:00",
"risk":"double-booking workers",
"hint":"Pivot next role to Murfreesboro, TN (35mi) to stay within bonus radius and avoid reusing Brenda Hernandez or Rachel Gonzalez."
},
{
"after":"15:30",
"risk":"Potential double‑booking conflict for Jamal Ruiz",
"hint":"Use alternative Packaging Operator from Murfreesboro, TN (≈35mi) to avoid double‑booking Jamal Ruiz."
- **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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5","question":"4 welders in Nashville, TN","k":20},"rationale":"Initial search for welders available in Nashvil
- **08: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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75","question":"packaging operator in Nashville, TN with high
- **09: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 = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5","question":"Shipping Clerk Nashville, TN","k":40},"rationale":"Verify the availability and skills of
- **13: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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.7","question":"2 × Welder in Nashville, TN for emergency","k":40},"rationale":"Initial search to find suitable
- **15: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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5","question":"Packaging Operator in Nashville, TN","k":20},"rationale":"Reverify the top candidate
### write_through_audit
- _post-run_ — playbook_memory has 1762 entries (ran 5 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:
- **07:00 baseline_fill** (Welder): —
- **08:30 expansion** (Packaging Operator): —
- **09:00 baseline_fill** (Shipping Clerk): —
- **13:00 emergency** (Welder): —
- **15:30 misplacement** (Packaging Operator): —
## Narrative
- 0/5 events reached consensus.
- Final roster: 0 bookings across 0 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 0.
- Playbook citations across the day: 0 (proof the feedback loop fired across events).
"scenario_note":"Staffed by Alex Rivera (trainee, 1mo). Contract deadline 2026-05-19, fill=paramount."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":7.092,
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"4 welders in Nashville, TN\",\"k\":20},\"rationale\":\"Initial search for welders available in Nashvil",
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"4 welders in Nashville, TN\",\"k\":20},\"rationale\":\"Initial search for welders available in Nashvil"
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":357
},
"at":"2026-04-21T04:06:22.730Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":714
},
"at":"2026-04-21T04:06:24.392Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1071
},
"at":"2026-04-21T04:06:26.034Z"
},
{
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"4 welders in Nashville, TN\",\"k\":20},\"rationale\":\"Initial search for welders available in Nashvil",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"4 welders in Nashville, TN\",\"k\":20},\"rationale\":\"Initial search for welders available in Nashvil"
},
"at":"2026-04-21T04:06:27.689Z"
}
]
},
{
"event":{
"kind":"expansion",
"at":"08:30",
"role":"Packaging Operator",
"count":6,
"city":"Nashville",
"state":"TN",
"shift_start":"08:30 AM",
"scenario_note":"Staffed by Alex Rivera (trainee, 1mo). Contract deadline 2026-05-19, fill=paramount."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":8.204,
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"packaging operator in Nashville, TN with high",
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"packaging operator in Nashville, TN with high"
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":468
},
"at":"2026-04-21T04:06:30.598Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":936
},
"at":"2026-04-21T04:06:32.533Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1404
},
"at":"2026-04-21T04:06:34.460Z"
},
{
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"packaging operator in Nashville, TN with high",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75\",\"question\":\"packaging operator in Nashville, TN with high"
},
"at":"2026-04-21T04:06:36.394Z"
}
]
},
{
"event":{
"kind":"baseline_fill",
"at":"09:00",
"role":"Shipping Clerk",
"count":2,
"city":"Nashville",
"state":"TN",
"shift_start":"09:00 AM",
"scenario_note":"Staffed by Alex Rivera (trainee, 1mo). Contract deadline 2026-05-19, fill=paramount."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":10.619,
"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 = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Shipping Clerk Nashville, TN\",\"k\":40},\"rationale\":\"Verify the availability and skills of",
"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 = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Shipping Clerk Nashville, TN\",\"k\":40},\"rationale\":\"Verify the availability and skills of"
],
"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 = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5",
"question":"Shipping Clerk Nashville, TN",
"k":40
},
"rationale":"Initial search for Shipping Clerks in Nashville, TN with availability > 50%"
},
"at":"2026-04-21T04:06:38.938Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_result",
"content":{
"question":"Shipping Clerk Nashville, TN",
"sql_filter":"role = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5",
"notes":"Continue to propose exactly 2 Shipping Clerks from the provided list who are available in Nashville, TN with availability > 50%. Verify at least one of them using sql."
},
"at":"2026-04-21T04:06:40.584Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":350
},
"at":"2026-04-21T04:06:42.904Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":700
},
"at":"2026-04-21T04:06:44.451Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1050
},
"at":"2026-04-21T04:06:45.978Z"
},
{
"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 = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Shipping Clerk Nashville, TN\",\"k\":40},\"rationale\":\"Verify the availability and skills of",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Shipping Clerk' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Shipping Clerk Nashville, TN\",\"k\":40},\"rationale\":\"Verify the availability and skills of"
},
"at":"2026-04-21T04:06:47.514Z"
}
]
},
{
"event":{
"kind":"emergency",
"at":"13:00",
"role":"Welder",
"count":2,
"deadline":"15:00",
"city":"Nashville",
"state":"TN",
"shift_start":"13:00 PM",
"scenario_note":"Staffed by Alex Rivera (trainee, 1mo). Contract deadline 2026-05-19, fill=paramount."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":7.124,
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"2 × Welder in Nashville, TN for emergency\",\"k\":40},\"rationale\":\"Initial search to find suitable ",
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"2 × Welder in Nashville, TN for emergency\",\"k\":40},\"rationale\":\"Initial search to find suitable "
],
"diagnostic_log":[
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":380
},
"at":"2026-04-21T04:06:50.149Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":760
},
"at":"2026-04-21T04:06:51.833Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1140
},
"at":"2026-04-21T04:06:53.483Z"
},
{
"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 = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"2 × Welder in Nashville, TN for emergency\",\"k\":40},\"rationale\":\"Initial search to find suitable ",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Welder' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"2 × Welder in Nashville, TN for emergency\",\"k\":40},\"rationale\":\"Initial search to find suitable "
},
"at":"2026-04-21T04:06:55.139Z"
}
]
},
{
"event":{
"kind":"misplacement",
"at":"15:30",
"role":"Packaging Operator",
"count":1,
"replaces_event":"08:30",
"city":"Nashville",
"state":"TN",
"shift_start":"15:30 PM",
"scenario_note":"Staffed by Alex Rivera (trainee, 1mo). Contract deadline 2026-05-19, fill=paramount."
},
"ok":false,
"fills":[],
"turns":0,
"duration_secs":11.023,
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Packaging Operator in Nashville, TN\",\"k\":20},\"rationale\":\"Reverify the top candidate",
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Packaging Operator in Nashville, TN\",\"k\":20},\"rationale\":\"Reverify the top candidate"
],
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5",
"question":"Packaging Operator in Nashville, TN",
"k":20
},
"rationale":"Start searching for a Packaging Operator in Nashville, TN with availability greater than 50%."
},
"at":"2026-04-21T04:06:57.746Z"
},
{
"turn":1,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"tool_result",
"content":{
"question":"Packaging Operator in Nashville, TN",
"sql_filter":"role = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5",
"notes":"Continue searching, but ensure to select exactly one candidate with the Packaging Operator skill in Nashville, TN and verify at least one through SQL."
},
"at":"2026-04-21T04:06:59.167Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":1,
"combined_chars":398
},
"at":"2026-04-21T04:07:01.626Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":2,
"combined_chars":796
},
"at":"2026-04-21T04:07:03.307Z"
},
{
"turn":2,
"role":"executor",
"model":"qwen2.5:latest",
"kind":"note",
"content":{
"continuation":3,
"combined_chars":1194
},
"at":"2026-04-21T04:07:04.998Z"
},
{
"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 = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Packaging Operator in Nashville, TN\",\"k\":20},\"rationale\":\"Reverify the top candidate",
"raw":"{\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Packaging Operator' AND city = 'Nashville' AND state = 'TN' AND CAST(availability AS DOUBLE) > 0.5\",\"question\":\"Packaging Operator in Nashville, TN\",\"k\":20},\"rationale\":\"Reverify the top candidate"
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.