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":"11:45","event_kind":"emergency","ok":true,"model":"gpt-oss:120b","duration_secs":4.806,"risk":"Zero welder supply in Flint, MI","hint":"Pivot Flint MI → Saginaw MI (≈30 mi) for Welder candidates with availability >0.7."}
{"after_event":"15:30","event_kind":"misplacement","ok":true,"model":"gpt-oss:120b","duration_secs":4.372,"risk":"Double‑booking risk for Barbara R. Price","hint":"If the next request is an Electrician in Gary, assign a different electrician or pivot to Hammond IN (≈15 min drive) to avoid the existing double‑booked slot."}
@@ -0,0 +1,3 @@
{"at":"09:30","kind":"expansion","operation":"fill: Safety Coordinator x8 in Peoria, IL","fills":[{"candidate_id":"W500K-36666","name":"Ivan G. Castillo"},{"candidate_id":"W500K-30806","name":"Rachel W. Wilson"},{"candidate_id":"W500K-20630","name":"Lisa M. Smith"},{"candidate_id":"W500K-666","name":"Linda Cooper"},{"candidate_id":"W500K-10439","name":"Jessica Phillips"},{"candidate_id":"W500K-36667","name":"Michael A. Davis"},{"candidate_id":"W500K-30807","name":"Sarah J. Brown"},{"candidate_id":"W500K-20631","name":"David R. Miller"}],"turns":3,"duration_secs":22.376,"pool_size":41,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (46%) · archetype mostly: communicator · reliability median 0.77 (range 0.19–1.00)"}
{"at":"14:00","kind":"expansion","operation":"fill: Tool & Die Maker x4 in Grand Rapids, MI","fills":[{"candidate_id":"W500K-49117","name":"Deborah D. Wilson"},{"candidate_id":"W500K-4243","name":"Jerry Thompson"},{"candidate_id":"W500K-14314","name":"Carolyn Lopez"},{"candidate_id":"W500K-15737","name":"Kyle H. Ramos"}],"turns":2,"duration_secs":13.592,"pool_size":133,"playbook_citations":["pb-seed-dae18806a3d17f2f","pb-seed-699dc90b9b30143f"],"discovered_pattern":"Across 25 similar past playbooks (36 workers examined) · recurring certifications: OSHA-10 (47%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"}
{"at":"15:30","kind":"misplacement","operation":"fill: Electrician x1 in South Bend, IN","fills":[{"candidate_id":"W500K-30931","name":"Barbara R. Price"}],"turns":3,"duration_secs":19.907,"pool_size":189,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.34–1.00)"}
@@ -0,0 +1,62 @@
# Client emails — Ironclad Industrial, 2026-04-22
## 09:30 expansion — Safety Coordinator x8
Subject: Confirmed - Safety Coordinators
Dear Ironclad Industrial Team,
I am pleased to confirm that we have filled all 8 positions for Safety Coordinators as requested:
- Ivan G. Castillo
- Rachel W. Wilson
- Lisa M. Smith
- Linda Cooper
- Jessica Phillips
- Michael A. Davis
- Sarah J. Brown
- David R. Miller
Shifts will commence at 09:30 AM today.
Given the rarity of this role, we recommend confirming or exploring multi-city sourcing options to ensure continuity.
Best regards,
Dispatch Team
Lakehouse Example
## 14:00 expansion — Tool & Die Maker x4
Subject: Confirmation - Tool & Die Maker
Dear Ironclad Industrial Team,
I am pleased to confirm that we have filled all 4 positions with Tool & Die Makers as requested:
- Deborah D. Wilson
- Jerry Thompson
- Carolyn Lopez
- Kyle H. Ramos
Shift starts at 14:00 PM today.
Please note the scarcity of Tool & Die Maker candidates, with only a few available in Grand Rapids (9000 total). All filled roles have an availability > 0.5 and reliability > 0.75, ensuring smooth operations.
Best regards,
Dispatch Team
Lakehouse Example
## 15:30 misplacement — Electrician x1
To: staffing@ironcladindustrial.example
From: dispatch@lakehouse.example
Subject: Confirmed
Dear IronClad Industrial Staffing Team,
We are pleased to confirm that we have filled 1 position for an Electrician role. Barbara R. Price will start her shift at 15:30 PM. Due to the absence of Electricians in Gary, IN, we have pivoted to South Bend, IN, to ensure timely service.
Best regards,
LakeHouse Dispatch
@@ -0,0 +1,5 @@
# Cross-day lesson — Ironclad Industrial, 2026-04-22
_Generated by `gpt-oss:120b` in 9.1s. Based on 5 events + 2 mid-day checkpoints._
Gary, IN has zero Electrician supply – for any Electrician request there pivot immediately to Hammond, IN (≈15 min) or Chicago, IL (≈40 mi) to satisfy the needed count. Flint, MI has zero Welder supply – redirect Welder requests to Saginaw, MI (≈30 mi), where candidates with >0.7 availability exist. Load the candidate pools for Hammond, Chicago, and Saginaw at shift start so the system can draw from them without triggering drift flags. Keep an eye on double‑booking (e.g., Barbara R. Price) and assign a different resource or alternate city when a similar role reappears. This pre‑emptive pivoting eliminates aborts and preserves turn efficiency.
@@ -0,0 +1,70 @@
[
{
"date": "2026-05-10",
"client": "Midway Distribution",
"cities": "Chicago",
"states": "IL",
"events_total": 3,
"events_ok": 2,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"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."
}
],
"created_at": "2026-04-21T02:14:12.176Z",
"file": "2026-05-10_Midway_Distribution_1776737652176.json"
},
{
"date": "2026-05-08",
"client": "Summit Industrial",
"cities": "Detroit",
"states": "MI",
"events_total": 2,
"events_ok": 2,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nWhen a recurring shift precedes a baseline‑fill, pre‑fetch the candidate’s calendar for both slots to avoid double‑booking. Always populate the `f.reason` field for every assignment to prevent artifact errors. In this run, Sarah D. Cook was at risk; check her calendar before assigning her to the 13:00 shift. Keep pool counts and turns updated after each fill to maintain accurate metrics.",
"checkpoints": [
{
"after": "10:30",
"risk": "Double-booking risk for Sarah",
"hint": "Check Sarah D. Cook's calendar before assigning to the next shift; ensure f.reason is defined to avoid artifact errors."
}
],
"created_at": "2026-04-21T02:10:51.019Z",
"file": "2026-05-08_Summit_Industrial_1776737451019.json"
},
{
"date": "2026-05-05",
"client": "Midway Distribution",
"cities": "Indianapolis",
"states": "IN",
"events_total": 4,
"events_ok": 3,
"checkpoint_count": 2,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore running an expansion, pre‑fetch local Packer data (or fallback to the nearest city) and validate that the executor returns well‑formed JSON; this prevents the “Missing local Packer data” failure. \nWhen an emergency request arrives, immediately cross‑check the 16:00 schedule to ensure no worker is assigned twice, and correct any artifact errors in the scheduling logic that could cause double‑booking. \nImplement automated checks that flag duplicate assignments and missing data before the agent commits to a fill.",
"checkpoints": [
{
"after": "10:30",
"risk": "Missing local Packer data",
"hint": "Add Indianapolis Packer records to the index or fallback to nearest city; verify executor returns valid JSON before execution."
},
{
"after": "12:00",
"risk": "16:00 double-booking risk",
"hint": "Verify no worker is assigned twice for 16:00; fix artifact error in scheduling logic."
}
],
"created_at": "2026-04-21T02:04:50.585Z",
"file": "2026-05-05_Midway_Distribution_1776737090585.json"
}
]
@@ -0,0 +1,96 @@
# Scenario retrospective — Ironclad Industrial, 2026-04-22
Executor: `qwen3.5:latest` Reviewer: `qwen3:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:120b (cloud)`
Prior lessons loaded into executor context: **3** (from 2026-05-10, 2026-05-08, 2026-05-05)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 07:00 | baseline_fill | Electrician × 5 | - | ✗ 0 | 0 | 23.2 | 0 | 1 |
| 09:30 | expansion | Safety Coordinator × 8 | 41 | ✓ 8 | 3 | 22.4 | 0 | 7 |
| 11:45 | emergency | Welder × 3 | - | ✗ 0 | 0 | 21.7 | 0 | 1 |
| 14:00 | expansion | Tool & Die Maker × 4 | 133 | ✓ 4 | 2 | 13.6 | 2 | 4 |
| 15:30 | misplacement | Electrician × 1 | 189 | ✓ 1 | 3 | 19.9 | 0 | 1 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Ivan G. Castillo | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Rachel W. Wilson | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Lisa M. Smith | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Linda Cooper | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Jessica Phillips | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Michael A. Davis | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Sarah J. Brown | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined David R. Miller | 09:30 | Safety Coordinator | Peoria, IL | confirmed |
| undefined Deborah D. Wilson | 14:00 | Tool & Die Maker | Grand Rapids, MI | confirmed |
| undefined Jerry Thompson | 14:00 | Tool & Die Maker | Grand Rapids, MI | confirmed |
| undefined Carolyn Lopez | 14:00 | Tool & Die Maker | Grand Rapids, MI | confirmed |
| undefined Kyle H. Ramos | 14:00 | Tool & Die Maker | Grand Rapids, MI | confirmed |
| undefined Barbara R. Price | 15:30 | Electrician | South Bend, IN | confirmed |
## Gap signals
### drift_or_tool
- **07:00** — aborted — 3 consecutive drift flags
- **11:45** — aborted — 3 consecutive drift flags
### double_book
- **09:30** — undefined Rachel W. Wilson already booked for 09:30
- **09:30** — undefined Lisa M. Smith already booked for 09:30
- **09:30** — undefined Linda Cooper already booked for 09:30
- **09:30** — undefined Jessica Phillips already booked for 09:30
- **09:30** — undefined Michael A. Davis already booked for 09:30
- **09:30** — undefined Sarah J. Brown already booked for 09:30
- **09:30** — undefined David R. Miller already booked for 09:30
- **14:00** — undefined Deborah D. Wilson already booked for 09:30
- **14:00** — undefined Jerry Thompson already booked for 09:30
- **14:00** — undefined Carolyn Lopez already booked for 09:30
- **14:00** — undefined Kyle H. Ramos already booked for 09:30
- **15:30** — undefined Barbara R. Price already booked for 09:30
### fairness
- _cross-event_ — Ivan G. Castillo (undefined) booked 13 times today
### write_through_audit
- _post-run_ — playbook_memory has 1570 entries (ran 5 events, expected ≥ 3 new entries from this run)
## Workers touched across the week
13 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-36666 | Ivan G. Castillo | 09:30 expansion | booked |
| W500K-30806 | Rachel W. Wilson | 09:30 expansion | booked |
| W500K-20630 | Lisa M. Smith | 09:30 expansion | booked |
| W500K-666 | Linda Cooper | 09:30 expansion | booked |
| W500K-10439 | Jessica Phillips | 09:30 expansion | booked |
| W500K-36667 | Michael A. Davis | 09:30 expansion | booked |
| W500K-30807 | Sarah J. Brown | 09:30 expansion | booked |
| W500K-20631 | David R. Miller | 09:30 expansion | booked |
| W500K-49117 | Deborah D. Wilson | 14:00 expansion | booked |
| W500K-4243 | Jerry Thompson | 14:00 expansion | booked |
| W500K-14314 | Carolyn Lopez | 14:00 expansion | booked |
| W500K-15737 | Kyle H. Ramos | 14:00 expansion | booked |
| 30931 | Barbara R. Price | 15:30 misplacement | booked |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **07:00 baseline_fill** (Electrician): —
- **09:30 expansion** (Safety Coordinator): Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (46%) · archetype mostly: communicator · reliability median 0.77 (range 0.19–1.00)
- **11:45 emergency** (Welder): —
- **14:00 expansion** (Tool & Die Maker): Across 25 similar past playbooks (36 workers examined) · recurring certifications: OSHA-10 (47%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)
- **15:30 misplacement** (Electrician): Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.34–1.00)
## Narrative
- 3/5 events reached consensus.
- Final roster: 13 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 13.
- Playbook citations across the day: 2 (proof the feedback loop fired across events).
- Dropped events: 07:00 baseline_fill, 11:45 emergency.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,106 @@
[
{
"name": "Ivan G. Castillo",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Rachel W. Wilson",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Lisa M. Smith",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Linda Cooper",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Jessica Phillips",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Michael A. Davis",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Sarah J. Brown",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "David R. Miller",
"booked_for": "09:30",
"role": "Safety Coordinator",
"city": "Peoria",
"state": "IL",
"status": "confirmed"
},
{
"name": "Deborah D. Wilson",
"booked_for": "14:00",
"role": "Tool & Die Maker",
"city": "Grand Rapids",
"state": "MI",
"status": "confirmed"
},
{
"name": "Jerry Thompson",
"booked_for": "14:00",
"role": "Tool & Die Maker",
"city": "Grand Rapids",
"state": "MI",
"status": "confirmed"
},
{
"name": "Carolyn Lopez",
"booked_for": "14:00",
"role": "Tool & Die Maker",
"city": "Grand Rapids",
"state": "MI",
"status": "confirmed"
},
{
"name": "Kyle H. Ramos",
"booked_for": "14:00",
"role": "Tool & Die Maker",
"city": "Grand Rapids",
"state": "MI",
"status": "confirmed"
},
{
"name": "Barbara R. Price",
"booked_for": "15:30",
"role": "Electrician",
"city": "South Bend",
"state": "IN",
"status": "confirmed"
}
]
@@ -0,0 +1,66 @@
# SMS drafts — Ironclad Industrial, 2026-04-22
## 09:30 expansion — Safety Coordinator x8 in Peoria, IL
TO: Ivan G. Castillo
CONFIRMING your shift at Ironclad Industrial in Peoria, IL starting at 9:30 AM. Thank you for your dedication!
---
TO: Rachel W. Wilson
Your shift starts at 9:30 AM today. Please confirm availability.
---
TO: Lisa M. Smith
Shift confirmed for you at 9:30 AM. Looking forward to your contribution!
---
TO: Linda Cooper
Confirming your 9:30 AM shift. Thank you for your commitment!
---
TO: Jessica Phillips
Your shift is confirmed starting at 9:30 AM. See you there!
---
TO: Michael A. Davis
Shift confirmed for you at 9:30 AM. Thanks for your support!
---
TO: Sarah J. Brown
Confirming your shift at 9:30 AM today. Looking forward to working with you!
---
TO: David R. Miller
Your shift is confirmed starting at 9:30 AM. See you there!
## 14:00 expansion — Tool & Die Maker x4 in Grand Rapids, MI
TO: Deborah D. Wilson
Hi Deborah! Confirming your shift as a Tool & Die Maker starting at 2 PM in Grand Rapids, MI. Thanks!
---
TO: Jerry Thompson
Hello Jerry! Your shift as a Tool & Die Maker starts at 2 PM today in Grand Rapids, MI. Confirmed?
---
TO: Carolyn Lopez
Carolyn, confirming your shift as a Tool & Die Maker from 2 PM onwards in Grand Rapids, MI. Thanks for your help!
---
TO: Kyle H. Ramos
Hi Kyle! Your shift as a Tool & Die Maker starts at 2 PM today in Grand Rapids, MI. Confirmed?
## 15:30 misplacement — Electrician x1 in South Bend, IN
TO: Barbara R. Price
Confirming your shift as an Electrician starting at 15:30 PM in South Bend, IN for [cloud-rescue 6.2s]. Looking forward to your support!