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":"17:30","event_kind":"emergency","ok":true,"model":"gpt-oss:20b","duration_secs":19.268,"risk":"JSON parse failure in tool call","hint":"Validate executor output format; add error handling around hybrid_search; confirm JSON schema before using results."}
{"after_event":"15:30","event_kind":"misplacement","ok":true,"model":"gpt-oss:20b","duration_secs":15.258,"risk":"Jack Kim double-book risk","hint":"Verify Jack Kim's 12:00 slot before assigning new shift to avoid overlap."}
@@ -0,0 +1,3 @@
{"at":"12:00","kind":"baseline_fill","operation":"fill: Quality Tech x3 in Columbus, OH","fills":[{"candidate_id":"W500K-12576","name":"Heather Martin"},{"candidate_id":"W500K-36259","name":"Alexander P. Brown"},{"candidate_id":"W500K-7305","name":"Brenda Rivera"}],"turns":3,"duration_secs":24.081,"pool_size":692,"playbook_citations":["pb-seed-c7d5eab073941580"],"discovered_pattern":"Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"}
{"at":"09:30","kind":"recurring","operation":"fill: Machine Operator x1 in Columbus, OH","fills":[{"candidate_id":"W500K-3223","name":"Anthony Jimenez"}],"turns":4,"duration_secs":22.203,"pool_size":974,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"}
{"at":"15:30","kind":"misplacement","operation":"fill: Material Handler x1 in Columbus, OH","fills":[{"candidate_id":"W500K-2115","name":"Jack Kim"}],"turns":2,"duration_secs":17.195,"pool_size":1118,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (40%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)"}
@@ -0,0 +1 @@
# Client emails — Riverfront Steel, 2026-05-07
@@ -0,0 +1,6 @@
# Cross-day lesson — Riverfront Steel, 2026-05-07
_Generated by `gpt-oss:20b` in 7.1s. Based on 4 events + 2 mid-day checkpoints._
**
When calling `hybrid_search`, first validate the executor’s JSON output against the expected schema and wrap the call in error‑handling logic to catch parse failures. If a parse error occurs, retry or fall back to a safe default before proceeding. Before assigning a new shift to any candidate, query their current schedule to confirm no overlap—especially for high‑demand staff such as Jack Kim. This double‑check prevents double‑booking and keeps pool counts accurate.
@@ -0,0 +1,65 @@
[
{
"date": "2026-04-28",
"client": "Riverfront Steel",
"cities": "Toledo",
"states": "OH",
"events_total": 3,
"events_ok": 2,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore scheduling a Packer in Toledo, confirm the tool calibration and verify the location accuracy to mitigate drift risk. Update the pool status immediately after baseline and recurring fills so the Packer has accurate data. Schedule the Packer only after the pool is refreshed to avoid misplacement failures. Double‑check the Packer’s tool settings in the system before the shift starts.",
"checkpoints": [
{
"after": "08:30",
"risk": "Packer Toledo drift risk",
"hint": "Check Packer's tool calibration and location accuracy in Toledo before scheduling to avoid drift errors."
}
],
"created_at": "2026-04-21T01:52:09.394Z",
"file": "2026-04-28_Riverfront_Steel_1776736329394.json"
},
{
"date": "2026-04-26",
"client": "Apex Warehouse",
"cities": "Cleveland",
"states": "OH",
"events_total": 3,
"events_ok": 2,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nWhen an expansion event is scheduled before a recurring event, always pre‑fetch the availability of every candidate slated for the recurring slot (e.g., Anna Rivera, Jack K. Ramirez, Thomas J. Lewis, Brenda A. Cox, Lisa O. Diaz) at the overlapping time. Verify that none of these candidates are already assigned to the expansion or any other role before committing them to the recurring slot. Adjust the expansion or recurring schedule if any overlap is detected, and keep the pool size and turns in mind to avoid overloading the same candidates. This prevents double‑booking and ensures a smooth fill.",
"checkpoints": [
{
"after": "14:30",
"risk": "Double-booking at 15:30",
"hint": "Verify 15:30 slot for Anna Rivera, Jack K. Ramirez, Thomas J. Lewis, Brenda A. Cox, Lisa O. Diaz before assigning new roles."
}
],
"created_at": "2026-04-21T01:48:13.293Z",
"file": "2026-04-26_Apex_Warehouse_1776736093293.json"
},
{
"date": "2026-04-25",
"client": "Midway Distribution",
"cities": "Columbus",
"states": "OH",
"events_total": 2,
"events_ok": 2,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore any expansion event, pull the current schedule for all workers you plan to assign—especially those recently filled in baseline events. Verify that none of those workers have overlapping shifts or pending assignments; if a conflict is found, reallocate or postpone the expansion. Also, run a quick validation of the scheduling script to catch artifact errors that could create duplicate entries before committing new assignments.",
"checkpoints": [
{
"after": "13:00",
"risk": "Risk of double booking existing workers",
"hint": "Check schedule for Diane Y. Wilson, Tyler V. Cox, Karen Hernandez, Joshua Y. Price before assigning new shifts; resolve artifact error in scheduling script."
}
],
"created_at": "2026-04-21T01:46:43.383Z",
"file": "2026-04-25_Midway_Distribution_1776736003383.json"
}
]
@@ -0,0 +1,75 @@
# Scenario retrospective — Riverfront Steel, 2026-05-07
Executor: `qwen3.5:latest` Reviewer: `qwen3:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:20b`
Prior lessons loaded into executor context: **3** (from 2026-04-28, 2026-04-26, 2026-04-25)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 12:00 | baseline_fill | Quality Tech × 3 | 692 | ✓ 3 | 3 | 24.1 | 1 | 3 |
| 09:30 | recurring | Machine Operator × 1 | 974 | ✓ 1 | 4 | 22.2 | 0 | 2 |
| 17:30 | emergency | Assembler × 3 | - | ✗ 0 | 0 | 17.4 | 0 | 1 |
| 15:30 | misplacement | Material Handler × 1 | 1118 | ✓ 1 | 2 | 17.2 | 0 | 2 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Heather Martin | 12:00 | Quality Tech | Columbus, OH | no_show |
| undefined Alexander P. Brown | 12:00 | Quality Tech | Columbus, OH | confirmed |
| undefined Brenda Rivera | 12:00 | Quality Tech | Columbus, OH | confirmed |
| undefined Anthony Jimenez | 09:30 | Machine Operator | Columbus, OH | confirmed |
| undefined Jack Kim | 15:30 | Material Handler | Columbus, OH | confirmed |
## Gap signals
### double_book
- **12:00** — undefined Alexander P. Brown already booked for 12:00
- **12:00** — undefined Brenda Rivera already booked for 12:00
- **09:30** — undefined Anthony Jimenez already booked for 12:00
- **15:30** — undefined Jack Kim already booked for 12:00
### artifact
- **12:00** — undefined is not an object (evaluating 'f.reason.slice')
- **09:30** — undefined is not an object (evaluating 'f.reason.slice')
- **15:30** — undefined is not an object (evaluating 'f.reason.slice')
### drift_or_tool
- **17:30** — invalid JSON from executor: JSON Parse error: Unable to parse JSON string | raw: {"kind":"tool_call","tool":"hybrid_search","args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Assembler' AND city = 'Columbus' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.7","question":"emergency Assembler Columbus OH","k":15},"rationale":"Execute hybrid_search FIRST as per canon
### fairness
- _cross-event_ — Heather Martin (undefined) booked 4 times today
### write_through_audit
- _post-run_ — playbook_memory has 1553 entries (ran 4 events, expected ≥ 3 new entries from this run)
## Workers touched across the week
6 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-12576 | Heather Martin | 12:00 baseline_fill | booked |
| W500K-36259 | Alexander P. Brown | 12:00 baseline_fill | booked |
| W500K-7305 | Brenda Rivera | 12:00 baseline_fill | booked |
| 3223 | Anthony Jimenez | 09:30 recurring | booked |
| W500K-2115 | Jack Kim | 15:30 misplacement | booked |
| undefined | Heather Martin | 12:00 | no_show |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **12:00 baseline_fill** (Quality Tech): Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)
- **09:30 recurring** (Machine Operator): Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)
- **17:30 emergency** (Assembler): —
- **15:30 misplacement** (Material Handler): Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (40%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)
## Narrative
- 3/4 events reached consensus.
- Final roster: 5 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 6.
- Playbook citations across the day: 1 (proof the feedback loop fired across events).
- Dropped events: 17:30 emergency.
@@ -0,0 +1,125 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "12:00",
"role": "Quality Tech",
"count": 3,
"city": "Columbus",
"state": "OH",
"shift_start": "12:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-12576",
"name": "Heather Martin"
},
{
"candidate_id": "W500K-36259",
"name": "Alexander P. Brown"
},
{
"candidate_id": "W500K-7305",
"name": "Brenda Rivera"
}
],
"turns": 3,
"duration_secs": 24.081,
"gap_signals": [
"double_book: undefined Alexander P. Brown already booked for 12:00",
"double_book: undefined Brenda Rivera already booked for 12:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.8423542,
"sources_last_score": 0.6403251,
"pool_size": 692,
"playbook_citations": [
"pb-seed-c7d5eab073941580"
],
"discovered_pattern": "Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"
},
{
"event": {
"kind": "recurring",
"at": "09:30",
"role": "Machine Operator",
"count": 1,
"city": "Columbus",
"state": "OH",
"shift_start": "09:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "3223",
"name": "Anthony Jimenez"
}
],
"turns": 4,
"duration_secs": 22.203,
"gap_signals": [
"double_book: undefined Anthony Jimenez already booked for 12:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.6828436,
"sources_last_score": 0.64949805,
"pool_size": 974,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"
},
{
"event": {
"kind": "emergency",
"at": "17:30",
"role": "Assembler",
"count": 3,
"city": "Columbus",
"state": "OH",
"shift_start": "17:30 AM"
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 17.382,
"error": "invalid JSON from executor: JSON Parse error: Unable to parse JSON string | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Assembler' AND city = 'Columbus' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"emergency Assembler Columbus OH\",\"k\":15},\"rationale\":\"Execute hybrid_search FIRST as per canon",
"gap_signals": [
"drift_or_tool: invalid JSON from executor: JSON Parse error: Unable to parse JSON string | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Assembler' AND city = 'Columbus' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.7\",\"question\":\"emergency Assembler Columbus OH\",\"k\":15},\"rationale\":\"Execute hybrid_search FIRST as per canon"
]
},
{
"event": {
"kind": "misplacement",
"at": "15:30",
"role": "Material Handler",
"count": 1,
"city": "Columbus",
"state": "OH",
"shift_start": "15:30 AM",
"replaces_event": "12:00",
"exclude_worker_ids": [
null,
null,
null
]
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-2115",
"name": "Jack Kim"
}
],
"turns": 2,
"duration_secs": 17.195,
"gap_signals": [
"double_book: undefined Jack Kim already booked for 12:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.6251688,
"sources_last_score": 0.56553036,
"pool_size": 1118,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: overhead crane (40%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)"
}
]
@@ -0,0 +1,42 @@
[
{
"name": "Heather Martin",
"booked_for": "12:00",
"role": "Quality Tech",
"city": "Columbus",
"state": "OH",
"status": "no_show"
},
{
"name": "Alexander P. Brown",
"booked_for": "12:00",
"role": "Quality Tech",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Brenda Rivera",
"booked_for": "12:00",
"role": "Quality Tech",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Anthony Jimenez",
"booked_for": "09:30",
"role": "Machine Operator",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Jack Kim",
"booked_for": "15:30",
"role": "Material Handler",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1 @@
# SMS drafts — Riverfront Steel, 2026-05-07