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":6.528,"risk":"Zero candidate supply for Welder in Flint","hint":"For the next request, search Welder×3 in Saginaw, MI (≈30 mi) or expand role to Metal Fabricator in Flint, MI to ensure candidates."}
{"after_event":"15:30","event_kind":"misplacement","ok":true,"model":"gpt-oss:120b","duration_secs":4.771,"risk":"Zero supply for Electrician in Gary, IN","hint":"Pivot to Chicago, IL (≈40 min) for Electricians; if unavailable, broaden to Electrical Technician within 60 min radius."}
@@ -0,0 +1 @@
{"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.19,"pool_size":133,"playbook_citations":["pb-seed-dae18806a3d17f2f"],"discovered_pattern":"Across 25 similar past playbooks (36 workers examined) · recurring certifications: OSHA-10 (47%) · archetype mostly: flexible · reliability median 0.80 (range 0.19–1.00)"}
@@ -0,0 +1 @@
# Client emails — Ironclad Industrial, 2026-04-22
@@ -0,0 +1,5 @@
# Cross-day lesson — Ironclad Industrial, 2026-04-22
_Generated by `gpt-oss:120b` in 8.0s. Based on 5 events + 2 mid-day checkpoints._
Gary, IN has no Electricians in the current pool — pivot to Chicago, IL (≈40 mi) or Hammond, IN (≈10 mi) for the required 5 electricians and any single‑electrician misplacements. Flint, MI has zero Welder candidates — search first in Saginaw, MI (≈30 mi) for Welder×3 or broaden the request to Metal Fabricator in Flint to meet the headcount. Before launching a fill, pre‑load candidate lists for these alternate cities and verify role counts to avoid three consecutive drift flags. Also set the search radius to at least 60 mi for Electrical Technician roles when the primary city lacks supply.
@@ -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,74 @@
# 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 | 22.8 | 0 | 1 |
| 09:30 | expansion | Safety Coordinator × 8 | - | ✗ 0 | 0 | 31.8 | 0 | 1 |
| 11:45 | emergency | Welder × 3 | - | ✗ 0 | 0 | 18.8 | 0 | 1 |
| 14:00 | expansion | Tool & Die Maker × 4 | 133 | ✓ 4 | 2 | 13.2 | 1 | 4 |
| 15:30 | misplacement | Electrician × 1 | - | ✗ 0 | 0 | 93.8 | 0 | 1 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| 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 |
## Gap signals
### drift_or_tool
- **07:00** — aborted — 3 consecutive drift flags
- **09:30** — aborted — 3 consecutive drift flags
- **11:45** — aborted — 3 consecutive drift flags
- **15:30** — no consensus after 14 turns
### double_book
- **14:00** — undefined Jerry Thompson already booked for 14:00
- **14:00** — undefined Carolyn Lopez already booked for 14:00
- **14:00** — undefined Kyle H. Ramos already booked for 14:00
### artifact
- **14:00** — undefined is not an object (evaluating 'f.reason.slice')
### fairness
- _cross-event_ — Deborah D. Wilson (undefined) booked 4 times today
### write_through_audit
- _post-run_ — playbook_memory has 1567 entries (ran 5 events, expected ≥ 1 new entries from this run)
## Workers touched across the week
4 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-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 |
## 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): —
- **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: flexible · reliability median 0.80 (range 0.19–1.00)
- **15:30 misplacement** (Electrician): —
## Narrative
- 1/5 events reached consensus.
- Final roster: 4 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 4.
- Playbook citations across the day: 1 (proof the feedback loop fired across events).
- Dropped events: 07:00 baseline_fill, 09:30 expansion, 11:45 emergency, 15:30 misplacement.
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,34 @@
[
{
"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"
}
]
@@ -0,0 +1 @@
# SMS drafts — Ironclad Industrial, 2026-04-22