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:
@@ -0,0 +1,2 @@
|
||||
{"after_event":"12:15","event_kind":"expansion","ok":true,"model":"gpt-oss:20b","duration_secs":10.901,"risk":"JSON parse error","hint":"Validate JSON structure, close braces, escape quotes, and test with a JSON linter before executing hybrid_search."}
|
||||
{"after_event":"15:45","event_kind":"misplacement","ok":true,"model":"gpt-oss:20b","duration_secs":11.83,"risk":"JSON parsing failure in tool call","hint":"Ensure JSON syntax is correct before invoking hybrid_search for Warehouse Associate in Toledo, OH. Validate tool call structure."}
|
||||
@@ -0,0 +1 @@
|
||||
# Client emails — Riverfront Steel, 2026-04-21
|
||||
@@ -0,0 +1,6 @@
|
||||
# Cross-day lesson — Riverfront Steel, 2026-04-21
|
||||
|
||||
_Generated by `gpt-oss:20b` in 4.0s. Based on 5 events + 2 mid-day checkpoints._
|
||||
|
||||
**
|
||||
Always validate the JSON payload before calling `hybrid_search`. Ensure all braces are closed, quotes are escaped, and the structure matches the expected schema—use a linter or schema validator in a sandbox first. Construct the JSON programmatically or via a template rather than embedding raw text in the tool call. This prevents parse errors that cause job failures.
|
||||
@@ -0,0 +1,58 @@
|
||||
# Scenario retrospective — Riverfront Steel, 2026-04-21
|
||||
|
||||
Executor: `mistral:latest` Reviewer: `qwen2.5:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:20b`
|
||||
|
||||
## Events
|
||||
|
||||
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| 08:00 | baseline_fill | Warehouse Associate × 3 | - | ✗ 0 | 0 | 33.1 | 0 | 1 |
|
||||
| 10:30 | recurring | Machine Operator × 2 | - | ✗ 0 | 0 | 35.1 | 0 | 1 |
|
||||
| 12:15 | expansion | Forklift Operator × 5 | - | ✗ 0 | 0 | 55.3 | 0 | 1 |
|
||||
| 14:00 | emergency | Loader × 4 | - | ✗ 0 | 0 | 14.7 | 0 | 1 |
|
||||
| 15:45 | misplacement | Warehouse Associate × 1 | - | ✗ 0 | 0 | 28.8 | 0 | 1 |
|
||||
|
||||
## Final roster
|
||||
|
||||
| Worker | Booked | Role | City, ST | Status |
|
||||
|---|---|---|---|---|
|
||||
|
||||
## Gap signals
|
||||
|
||||
### drift_or_tool
|
||||
- **08:00** — invalid JSON from executor: JSON Parse error: Expected ']' | raw: {"kind":"plan","steps":["TOOL_CALL",{"tool":"sql","args":{"query":"SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_id = '49164'"}},"TOOL_CALL",{"tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"CAST(availability AS DOUBLE) > 0.5 AND role = 'Warehous
|
||||
- **10:30** — invalid JSON from executor: JSON Parse error: Expected ']' | raw: {"kind":"plan","steps":["TOOL_CALL hybrid_search({'index_name':'workers_500k_v1','sql_filter':'role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5'})","TOOL_CALL sql({'query':'SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_i
|
||||
- **12:15** — 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 = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75 AND NOT worker_id IN (W500K-22375, W500K-19588, W500K-28024,
|
||||
- **14:00** — aborted — 3 consecutive drift flags
|
||||
- **15:45** — 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 = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND worker_id NOT IN (CANDIDATES SURFACED SO FAR)",
|
||||
"rationale":"Find a reliable Warehouse Associa
|
||||
|
||||
### write_through_audit
|
||||
- _post-run_ — playbook_memory has 1163 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:
|
||||
|
||||
- **08:00 baseline_fill** (Warehouse Associate): —
|
||||
- **10:30 recurring** (Machine Operator): —
|
||||
- **12:15 expansion** (Forklift Operator): —
|
||||
- **14:00 emergency** (Loader): —
|
||||
- **15:45 misplacement** (Warehouse Associate): —
|
||||
|
||||
## 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).
|
||||
- Dropped events: 08:00 baseline_fill, 10:30 recurring, 12:15 expansion, 14:00 emergency, 15:45 misplacement.
|
||||
@@ -0,0 +1,104 @@
|
||||
[
|
||||
{
|
||||
"event": {
|
||||
"kind": "baseline_fill",
|
||||
"at": "08:00",
|
||||
"role": "Warehouse Associate",
|
||||
"count": 3,
|
||||
"city": "Toledo",
|
||||
"state": "OH",
|
||||
"shift_start": "08:00 AM",
|
||||
"scenario_note": "Regular Monday morning shift, 8-hour."
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 33.137,
|
||||
"error": "invalid JSON from executor: JSON Parse error: Expected ']' | raw: {\"kind\":\"plan\",\"steps\":[\"TOOL_CALL\",{\"tool\":\"sql\",\"args\":{\"query\":\"SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_id = '49164'\"}},\"TOOL_CALL\",{\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"CAST(availability AS DOUBLE) > 0.5 AND role = 'Warehous",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected ']' | raw: {\"kind\":\"plan\",\"steps\":[\"TOOL_CALL\",{\"tool\":\"sql\",\"args\":{\"query\":\"SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_id = '49164'\"}},\"TOOL_CALL\",{\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"CAST(availability AS DOUBLE) > 0.5 AND role = 'Warehous"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "recurring",
|
||||
"at": "10:30",
|
||||
"role": "Machine Operator",
|
||||
"count": 2,
|
||||
"city": "Toledo",
|
||||
"state": "OH",
|
||||
"shift_start": "11:00 AM",
|
||||
"scenario_note": "Recurring Tuesday/Thursday slot — prior workers may still be available."
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 35.123,
|
||||
"error": "invalid JSON from executor: JSON Parse error: Expected ']' | raw: {\"kind\":\"plan\",\"steps\":[\"TOOL_CALL hybrid_search({'index_name':'workers_500k_v1','sql_filter':'role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5'})\",\"TOOL_CALL sql({'query':'SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_i",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected ']' | raw: {\"kind\":\"plan\",\"steps\":[\"TOOL_CALL hybrid_search({'index_name':'workers_500k_v1','sql_filter':'role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5'})\",\"TOOL_CALL sql({'query':'SELECT worker_id, name, role, city, state FROM workers_500k WHERE worker_i"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "expansion",
|
||||
"at": "12:15",
|
||||
"role": "Forklift Operator",
|
||||
"count": 5,
|
||||
"city": "Toledo",
|
||||
"state": "OH",
|
||||
"shift_start": "01:00 PM",
|
||||
"scenario_note": "New warehouse location opening, five-worker team needed."
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 55.269,
|
||||
"error": "invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75 AND NOT worker_id IN (W500K-22375, W500K-19588, W500K-28024, ",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Forklift Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND CAST(reliability AS DOUBLE) > 0.75 AND NOT worker_id IN (W500K-22375, W500K-19588, W500K-28024, "
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "emergency",
|
||||
"at": "14:00",
|
||||
"role": "Loader",
|
||||
"count": 4,
|
||||
"city": "Toledo",
|
||||
"state": "OH",
|
||||
"shift_start": "04:00 PM same day",
|
||||
"deadline": "16:00",
|
||||
"scenario_note": "Walkoff incident — replacement crew needed by 16:00 sharp."
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 14.719,
|
||||
"error": "aborted — 3 consecutive drift flags",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: aborted — 3 consecutive drift flags"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "misplacement",
|
||||
"at": "15:45",
|
||||
"role": "Warehouse Associate",
|
||||
"count": 1,
|
||||
"city": "Toledo",
|
||||
"state": "OH",
|
||||
"shift_start": "remainder of 08:00 shift",
|
||||
"scenario_note": "One worker from the 08:00 fill didn't show; rebuild the gap.",
|
||||
"replaces_event": "08:00"
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 28.761,
|
||||
"error": "invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND worker_id NOT IN (CANDIDATES SURFACED SO FAR)\",\n\"rationale\":\"Find a reliable Warehouse Associa",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Warehouse Associate' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND worker_id NOT IN (CANDIDATES SURFACED SO FAR)\",\n\"rationale\":\"Find a reliable Warehouse Associa"
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1 @@
|
||||
# SMS drafts — Riverfront Steel, 2026-04-21
|
||||
Reference in New Issue
Block a user