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":"12:15","event_kind":"expansion","ok":true,"model":"gpt-oss:20b","duration_secs":14.193,"risk":"Forklift Operator drift risk in Toledo","hint":"Verify forklift operator certifications in Toledo; consider temporary hires if drift persists."}
{"after_event":"15:45","event_kind":"misplacement","ok":true,"model":"gpt-oss:20b","duration_secs":15.506,"risk":"Double-booking risk for Patrick Ross","hint":"Verify Patrick Ross’s schedule before assigning; use the booking system to prevent overlapping shifts."}
@@ -0,0 +1,4 @@
{"at":"08:00","kind":"baseline_fill","operation":"fill: Warehouse Associate x3 in Toledo, OH","fills":[{"candidate_id":"W500K-7079","name":"Patrick Ross","reason":"Top-ranked candidate (score 0.69) verified via SQL with high availability (0.8645)."},{"candidate_id":"W500K-48488","name":"Olivia Y. Howard","reason":"Second-ranked candidate (score 0.67) verified via SQL with good availability (0.6458)."},{"candidate_id":"W500K-39023","name":"Deborah X. Sanchez","reason":"Third-ranked candidate (score 0.67) verified via SQL with good availability (0.6113)."}],"turns":4,"duration_secs":22.11,"pool_size":770,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.75–0.96)"}
{"at":"10:30","kind":"recurring","operation":"fill: Machine Operator x2 in Toledo, OH","fills":[{"candidate_id":"W500K-29298","name":"Robert W. Gonzalez","reason":"Top-ranked Machine Operator in Toledo, OH with high availability (0.8843) and reliability (0.8928), verified via SQL."},{"candidate_id":"W500K-19759","name":"Carmen Z. Rodriguez","reason":"Second-ranked Machine Operator in Toledo, OH with high availability (0.8207) and reliability (0.8284), verified via SQL."}],"turns":3,"duration_secs":18.139,"pool_size":997,"playbook_citations":["pb-seed-0bca7a3e7b162011"],"discovered_pattern":"Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"}
{"at":"14:00","kind":"emergency","operation":"fill: Loader x4 in Toledo, OH","fills":[{"candidate_id":"W500K-15305","name":"Mary R. Richardson","reason":"Top availability (0.988) verified in Toledo, OH"},{"candidate_id":"W500K-16975","name":"Brian X. Price","reason":"High availability (0.9755) verified in Toledo, OH"},{"candidate_id":"W500K-12325","name":"Raj Torres","reason":"Good availability (0.7847) verified in Toledo, OH"},{"candidate_id":"W500K-19495","name":"George V. Stewart","reason":"Sufficient availability (0.7322) verified in Toledo, OH"}],"turns":3,"duration_secs":25.559,"pool_size":380,"playbook_citations":["pb-seed-33f6591250bf3c3b"],"discovered_pattern":"Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: 6S (50%), mill (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"}
{"at":"15:45","kind":"misplacement","operation":"fill: Warehouse Associate x1 in Toledo, OH","fills":[{"candidate_id":"W500K-7079","name":"Patrick Ross","reason":"Verified via SQL as a Warehouse Associate in Toledo, OH with availability 0.8645 (>0.5)."}],"turns":3,"duration_secs":14.485,"pool_size":770,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (11 workers examined) · recurring certifications: Forklift (64%), OSHA-10 (55%) · archetype mostly: communicator · reliability median 0.78 (range 0.53–0.96)"}
@@ -0,0 +1,63 @@
# Client emails — Riverfront Steel, 2026-04-21
## 08:00 baseline_fill — Warehouse Associate x3
Subject: 3 Filled
Dear Riverfront Steel Team,
We are pleased to confirm that we have filled all three positions for Warehouse Associates as requested:
- Patrick Ross
- Olivia Y. Howard
- Deborah X. Sanchez
All workers will start their regular Monday morning shift at 08:00 AM, working an 8-hour shift.
Best regards,
Dispatch Team Lakehouse
## 10:30 recurring — Machine Operator x2
To: staffing@riverfrontsteel.example
From: dispatch@lakehouse.example
Subject: Confirmed
Dear Riverfront Steel Team,
We are pleased to confirm that we have filled both Machine Operator roles for your Tuesday/Thursday shifts starting at 11:00 AM. The workers assigned are:
- Robert W. Gonzalez
- Carmen Z. Rodriguez
Please note this is a recurring slot, and prior workers may still be available.
Best regards,
Lakehouse Dispatch
## 14:00 emergency — Loader x4
Subject: 4 Loader Crew Confirmed
Dear Riverfront Steel Team,
I am pleased to confirm that we have filled all four loader positions for your shift starting at 04:00 PM today:
- Mary R. Richardson
- Brian X. Price
- Raj Torres
- George V. Stewart
Please note the walkoff incident scenario; a replacement crew is needed by 16:00 sharp.
Best regards,
Dispatch Team Lakehouse
## 15:45 misplacement — Warehouse Associate x1
To: staffing@riverfrontsteel.example
From: dispatch@lakehouse.example
Subject: Fill Confirmed
We have filled 1 position for the remainder of the 08:00 shift as requested. Patrick Ross will be a Warehouse Associate. Please note that one worker from this fill did not show up; we are currently rebuilding the gap.
@@ -0,0 +1,6 @@
# Cross-day lesson — Riverfront Steel, 2026-04-21
_Generated by `gpt-oss:20b` in 5.1s. Based on 5 events + 2 mid-day checkpoints._
**
Before launching an expansion, always verify the pool size and certification status for the role; if the pool is unknown or certifications are missing, pre‑fetch the data or secure temporary hires to avoid a fail. For any misplacement or recurring assignment, cross‑check the booking system to confirm that staff such as Patrick Ross are not double‑booked. Maintain a buffer of at least three extra candidates for emergency roles to keep gaps at a minimum. This proactive verification will reduce drift risk and scheduling conflicts in future runs.
@@ -0,0 +1,87 @@
# Scenario retrospective — Riverfront Steel, 2026-04-21
Executor: `qwen3.5:latest` Reviewer: `qwen3:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:20b`
Prior lessons loaded into executor context: **0** (baseline — no prior T3 history)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 08:00 | baseline_fill | Warehouse Associate × 3 | 770 | ✓ 3 | 4 | 22.1 | 0 | 2 |
| 10:30 | recurring | Machine Operator × 2 | 997 | ✓ 2 | 3 | 18.1 | 1 | 2 |
| 12:15 | expansion | Forklift Operator × 5 | - | ✗ 0 | 0 | 42.0 | 0 | 1 |
| 14:00 | emergency | Loader × 4 | 380 | ✓ 4 | 3 | 25.6 | 1 | 4 |
| 15:45 | misplacement | Warehouse Associate × 1 | 770 | ✓ 1 | 3 | 14.5 | 0 | 1 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Patrick Ross | 08:00 | Warehouse Associate | Toledo, OH | no_show |
| undefined Olivia Y. Howard | 08:00 | Warehouse Associate | Toledo, OH | confirmed |
| undefined Deborah X. Sanchez | 08:00 | Warehouse Associate | Toledo, OH | confirmed |
| undefined Robert W. Gonzalez | 10:30 | Machine Operator | Toledo, OH | confirmed |
| undefined Carmen Z. Rodriguez | 10:30 | Machine Operator | Toledo, OH | confirmed |
| undefined Mary R. Richardson | 14:00 | Loader | Toledo, OH | confirmed |
| undefined Brian X. Price | 14:00 | Loader | Toledo, OH | confirmed |
| undefined Raj Torres | 14:00 | Loader | Toledo, OH | confirmed |
| undefined George V. Stewart | 14:00 | Loader | Toledo, OH | confirmed |
| undefined Patrick Ross | 15:45 | Warehouse Associate | Toledo, OH | confirmed |
## Gap signals
### double_book
- **08:00** — undefined Olivia Y. Howard already booked for 08:00
- **08:00** — undefined Deborah X. Sanchez already booked for 08:00
- **10:30** — undefined Robert W. Gonzalez already booked for 08:00
- **10:30** — undefined Carmen Z. Rodriguez already booked for 08:00
- **14:00** — undefined Mary R. Richardson already booked for 08:00
- **14:00** — undefined Brian X. Price already booked for 08:00
- **14:00** — undefined Raj Torres already booked for 08:00
- **14:00** — undefined George V. Stewart already booked for 08:00
- **15:45** — undefined Patrick Ross already booked for 08:00
### drift_or_tool
- **12:15** — aborted — 3 consecutive drift flags
### fairness
- _cross-event_ — Patrick Ross (undefined) booked 9 times today
### write_through_audit
- _post-run_ — playbook_memory has 1351 entries (ran 5 events, expected ≥ 4 new entries from this run)
## Workers touched across the week
11 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-7079 | Patrick Ross | 08:00 baseline_fill | booked |
| W500K-48488 | Olivia Y. Howard | 08:00 baseline_fill | booked |
| W500K-39023 | Deborah X. Sanchez | 08:00 baseline_fill | booked |
| W500K-29298 | Robert W. Gonzalez | 10:30 recurring | booked |
| W500K-19759 | Carmen Z. Rodriguez | 10:30 recurring | booked |
| 15305 | Mary R. Richardson | 14:00 emergency | booked |
| 16975 | Brian X. Price | 14:00 emergency | booked |
| 12325 | Raj Torres | 14:00 emergency | booked |
| 19495 | George V. Stewart | 14:00 emergency | booked |
| 7079 | Patrick Ross | 15:45 misplacement | booked |
| undefined | Patrick Ross | 08:00 | no_show |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **08:00 baseline_fill** (Warehouse Associate): Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.75–0.96)
- **10:30 recurring** (Machine Operator): Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)
- **12:15 expansion** (Forklift Operator): —
- **14:00 emergency** (Loader): Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: 6S (50%), mill (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)
- **15:45 misplacement** (Warehouse Associate): Across 25 similar past playbooks (11 workers examined) · recurring certifications: Forklift (64%), OSHA-10 (55%) · archetype mostly: communicator · reliability median 0.78 (range 0.53–0.96)
## Narrative
- 4/5 events reached consensus.
- Final roster: 10 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 11.
- Playbook citations across the day: 2 (proof the feedback loop fired across events).
- Dropped events: 12:15 expansion.
@@ -0,0 +1,188 @@
[
{
"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": true,
"fills": [
{
"candidate_id": "W500K-7079",
"name": "Patrick Ross",
"reason": "Top-ranked candidate (score 0.69) verified via SQL with high availability (0.8645)."
},
{
"candidate_id": "W500K-48488",
"name": "Olivia Y. Howard",
"reason": "Second-ranked candidate (score 0.67) verified via SQL with good availability (0.6458)."
},
{
"candidate_id": "W500K-39023",
"name": "Deborah X. Sanchez",
"reason": "Third-ranked candidate (score 0.67) verified via SQL with good availability (0.6113)."
}
],
"turns": 4,
"duration_secs": 22.11,
"gap_signals": [
"double_book: undefined Olivia Y. Howard already booked for 08:00",
"double_book: undefined Deborah X. Sanchez already booked for 08:00"
],
"sources_first_score": 0.6889494,
"sources_last_score": 0.64508283,
"pool_size": 770,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.75–0.96)"
},
{
"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": true,
"fills": [
{
"candidate_id": "W500K-29298",
"name": "Robert W. Gonzalez",
"reason": "Top-ranked Machine Operator in Toledo, OH with high availability (0.8843) and reliability (0.8928), verified via SQL."
},
{
"candidate_id": "W500K-19759",
"name": "Carmen Z. Rodriguez",
"reason": "Second-ranked Machine Operator in Toledo, OH with high availability (0.8207) and reliability (0.8284), verified via SQL."
}
],
"turns": 3,
"duration_secs": 18.139,
"gap_signals": [
"double_book: undefined Robert W. Gonzalez already booked for 08:00",
"double_book: undefined Carmen Z. Rodriguez already booked for 08:00"
],
"sources_first_score": 0.71900976,
"sources_last_score": 0.5399919,
"pool_size": 997,
"playbook_citations": [
"pb-seed-0bca7a3e7b162011"
],
"discovered_pattern": "Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"
},
{
"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": 42.022,
"error": "aborted — 3 consecutive drift flags",
"gap_signals": [
"drift_or_tool: aborted — 3 consecutive drift flags"
]
},
{
"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": true,
"fills": [
{
"candidate_id": "15305",
"name": "Mary R. Richardson",
"reason": "Top availability (0.988) verified in Toledo, OH"
},
{
"candidate_id": "16975",
"name": "Brian X. Price",
"reason": "High availability (0.9755) verified in Toledo, OH"
},
{
"candidate_id": "12325",
"name": "Raj Torres",
"reason": "Good availability (0.7847) verified in Toledo, OH"
},
{
"candidate_id": "19495",
"name": "George V. Stewart",
"reason": "Sufficient availability (0.7322) verified in Toledo, OH"
}
],
"turns": 3,
"duration_secs": 25.559,
"gap_signals": [
"double_book: undefined Mary R. Richardson already booked for 08:00",
"double_book: undefined Brian X. Price already booked for 08:00",
"double_book: undefined Raj Torres already booked for 08:00",
"double_book: undefined George V. Stewart already booked for 08:00"
],
"sources_first_score": 0.64419335,
"sources_last_score": 0.54439425,
"pool_size": 380,
"playbook_citations": [
"pb-seed-33f6591250bf3c3b"
],
"discovered_pattern": "Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: 6S (50%), mill (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"
},
{
"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",
"exclude_worker_ids": [
null,
null,
null
]
},
"ok": true,
"fills": [
{
"candidate_id": "7079",
"name": "Patrick Ross",
"reason": "Verified via SQL as a Warehouse Associate in Toledo, OH with availability 0.8645 (>0.5)."
}
],
"turns": 3,
"duration_secs": 14.485,
"gap_signals": [
"double_book: undefined Patrick Ross already booked for 08:00"
],
"sources_first_score": 0.6889494,
"sources_last_score": 0.6889494,
"pool_size": 770,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (11 workers examined) · recurring certifications: Forklift (64%), OSHA-10 (55%) · archetype mostly: communicator · reliability median 0.78 (range 0.53–0.96)"
}
]
@@ -0,0 +1,82 @@
[
{
"name": "Patrick Ross",
"booked_for": "08:00",
"role": "Warehouse Associate",
"city": "Toledo",
"state": "OH",
"status": "no_show"
},
{
"name": "Olivia Y. Howard",
"booked_for": "08:00",
"role": "Warehouse Associate",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Deborah X. Sanchez",
"booked_for": "08:00",
"role": "Warehouse Associate",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Robert W. Gonzalez",
"booked_for": "10:30",
"role": "Machine Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Carmen Z. Rodriguez",
"booked_for": "10:30",
"role": "Machine Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Mary R. Richardson",
"booked_for": "14:00",
"role": "Loader",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Brian X. Price",
"booked_for": "14:00",
"role": "Loader",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Raj Torres",
"booked_for": "14:00",
"role": "Loader",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "George V. Stewart",
"booked_for": "14:00",
"role": "Loader",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Patrick Ross",
"booked_for": "15:45",
"role": "Warehouse Associate",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1,56 @@
# SMS drafts — Riverfront Steel, 2026-04-21
## 08:00 baseline_fill — Warehouse Associate x3 in Toledo, OH
TO: Patrick Ross
Confirming your shift as a Warehouse Associate at Riverfront Steel in Toledo, OH starting at 08:00 AM today.
---
TO: Olivia Y. Howard
Your shift as a Warehouse Associate is confirmed for 08:00 AM at the Toledo, OH location today.
---
TO: Deborah X. Sanchez
Shift confirmed for you as a Warehouse Associate at Riverfront Steel in Toledo, OH starting at 08:00 AM today.
## 10:30 recurring — Machine Operator x2 in Toledo, OH
TO: Robert W. Gonzalez
Confirming your Machine Operator shift at Riverfront Steel in Toledo, OH starting 11:00 AM on Tuesday/Thursday. Still looking for workers!
---
TO: Carmen Z. Rodriguez
Your recurring Tuesday/Thursday Machine Operator shift at Riverfront Steel in Toledo, OH starts at 11:00 AM. Confirming your availability?
## 14:00 emergency — Loader x4 in Toledo, OH
TO: Mary R. Richardson
Confirming your shift as Loader starting 4:00 PM at Riverfront Steel in Toledo, OH. Please be on time.
---
TO: Brian X. Price
Can you cover the loader shift from 4:00 PM due to a walkoff incident? Thanks!
---
TO: Raj Torres
Replacement needed for loader shift at 4:00 PM today. Confirm your availability please.
---
TO: George V. Stewart
Confirming your shift as Loader starting 4:00 PM. Replacement required by 16:00 due to a walkoff incident.
## 15:45 misplacement — Warehouse Associate x1 in Toledo, OH
TO: Patrick Ross
Confirming your shift to cover the 08:00 - 16:00 gap at Riverfront Steel in Toledo, OH. Looking forward to your help!
---
TO: Patrick Ross
Confirming your shift from 08:00 to 16:00 today at our Toledo, OH location. Thanks for stepping in!