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:00","event_kind":"emergency","ok":true,"model":"gpt-oss:20b","duration_secs":13.379,"risk":"High drift risk for emergency packers","hint":"Check drift flags, adjust scheduling, and secure backup packer resources for Kansas City."}
{"after_event":"16:30","event_kind":"misplacement","ok":true,"model":"gpt-oss:20b","duration_secs":26.841,"risk":"Double booking risk detected","hint":"Verify Kenneth O. Stewart's schedule to prevent double booking."}
@@ -0,0 +1,3 @@
{"at":"14:00","kind":"baseline_fill","operation":"fill: Warehouse Associate x2 in Kansas City, MO","fills":[{"candidate_id":"W500K-25357","name":"Miguel H. Martinez"},{"candidate_id":"W500K-33377","name":"Olivia T. Stewart"}],"turns":4,"duration_secs":29.603,"pool_size":770,"playbook_citations":["pb-seed-c0049c128d8327d0"],"discovered_pattern":"Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · archetype mostly: communicator · reliability median 0.80 (range 0.59–1.00)"}
{"at":"17:30","kind":"recurring","operation":"fill: Loader x1 in Kansas City, MO","fills":[{"candidate_id":"W500K-301","name":"Charles Young"}],"turns":2,"duration_secs":9.925,"pool_size":567,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (54%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"}
{"at":"16:30","kind":"misplacement","operation":"fill: Assembler x1 in Kansas City, MO","fills":[{"candidate_id":"W500K-25208","name":"Kenneth O. Stewart"}],"turns":4,"duration_secs":34.022,"pool_size":930,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (29 workers examined) · recurring certifications: OSHA-10 (52%) · recurring skills: overhead crane (45%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)"}
@@ -0,0 +1 @@
# Client emails — Cornerstone Fabrication, 2026-05-06
@@ -0,0 +1,6 @@
# Cross-day lesson — Cornerstone Fabrication, 2026-05-06
_Generated by `gpt-oss:20b` in 6.8s. Based on 4 events + 2 mid-day checkpoints._
**
Before any emergency shift, pull at least two backup packers and verify their drift flags; keep the candidate pool above 500 to avoid zero turns. After a misplacement, immediately cross‑check the employee’s calendar to prevent double booking—lock the slot until the schedule is confirmed. Maintain a buffer of at least 200 candidates for high‑risk roles to absorb sudden failures. Log any drift or double‑booking incidents for post‑shift review.
@@ -0,0 +1,23 @@
[
{
"date": "2026-05-03",
"client": "Parallel Machining",
"cities": "Kansas City",
"states": "MO",
"events_total": 3,
"events_ok": 3,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** Before executing an expansion event, pull the latest worker availability snapshot and lock the required slots to prevent double‑booking. Verify that the pool count still covers the expansion demand after earlier baseline or recurring fills. Resolve any artifact errors in the scheduling system that could misreport availability. This pre‑emptive check stops conflicts and keeps the pool accurate for subsequent events.",
"checkpoints": [
{
"after": "09:00",
"risk": "Double-booking risk",
"hint": "Verify worker availability before booking; address artifact error to prevent scheduling conflicts."
}
],
"created_at": "2026-04-21T02:00:38.687Z",
"file": "2026-05-03_Parallel_Machining_1776736838687.json"
}
]
@@ -0,0 +1,72 @@
# Scenario retrospective — Cornerstone Fabrication, 2026-05-06
Executor: `qwen3.5:latest` Reviewer: `qwen3:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:20b`
Prior lessons loaded into executor context: **1** (from 2026-05-03)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 14:00 | baseline_fill | Warehouse Associate × 2 | 770 | ✓ 2 | 4 | 29.6 | 1 | 2 |
| 17:30 | recurring | Loader × 1 | 567 | ✓ 1 | 2 | 9.9 | 0 | 2 |
| 12:00 | emergency | Packer × 3 | - | ✗ 0 | 0 | 18.8 | 0 | 1 |
| 16:30 | misplacement | Assembler × 1 | 930 | ✓ 1 | 4 | 34.0 | 0 | 2 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Miguel H. Martinez | 14:00 | Warehouse Associate | Kansas City, MO | no_show |
| undefined Olivia T. Stewart | 14:00 | Warehouse Associate | Kansas City, MO | confirmed |
| undefined Charles Young | 17:30 | Loader | Kansas City, MO | confirmed |
| undefined Kenneth O. Stewart | 16:30 | Assembler | Kansas City, MO | confirmed |
## Gap signals
### double_book
- **14:00** — undefined Olivia T. Stewart already booked for 14:00
- **17:30** — undefined Charles Young already booked for 14:00
- **16:30** — undefined Kenneth O. Stewart already booked for 14:00
### artifact
- **14:00** — undefined is not an object (evaluating 'f.reason.slice')
- **17:30** — undefined is not an object (evaluating 'f.reason.slice')
- **16:30** — undefined is not an object (evaluating 'f.reason.slice')
### drift_or_tool
- **12:00** — aborted — 3 consecutive drift flags
### fairness
- _cross-event_ — Miguel H. Martinez (undefined) booked 3 times today
### write_through_audit
- _post-run_ — playbook_memory has 1550 entries (ran 4 events, expected ≥ 3 new entries from this run)
## Workers touched across the week
5 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-25357 | Miguel H. Martinez | 14:00 baseline_fill | booked |
| W500K-33377 | Olivia T. Stewart | 14:00 baseline_fill | booked |
| W500K-301 | Charles Young | 17:30 recurring | booked |
| W500K-25208 | Kenneth O. Stewart | 16:30 misplacement | booked |
| undefined | Miguel H. Martinez | 14:00 | no_show |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **14:00 baseline_fill** (Warehouse Associate): Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · archetype mostly: communicator · reliability median 0.80 (range 0.59–1.00)
- **17:30 recurring** (Loader): Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (54%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)
- **12:00 emergency** (Packer): —
- **16:30 misplacement** (Assembler): Across 25 similar past playbooks (29 workers examined) · recurring certifications: OSHA-10 (52%) · recurring skills: overhead crane (45%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)
## Narrative
- 3/4 events reached consensus.
- Final roster: 4 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 5.
- Playbook citations across the day: 1 (proof the feedback loop fired across events).
- Dropped events: 12:00 emergency.
@@ -0,0 +1,119 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "14:00",
"role": "Warehouse Associate",
"count": 2,
"city": "Kansas City",
"state": "MO",
"shift_start": "14:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-25357",
"name": "Miguel H. Martinez"
},
{
"candidate_id": "W500K-33377",
"name": "Olivia T. Stewart"
}
],
"turns": 4,
"duration_secs": 29.603,
"gap_signals": [
"double_book: undefined Olivia T. Stewart already booked for 14:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.8524607,
"sources_last_score": 0.6539901,
"pool_size": 770,
"playbook_citations": [
"pb-seed-c0049c128d8327d0"
],
"discovered_pattern": "Across 25 similar past playbooks (30 workers examined) · recurring certifications: OSHA-10 (53%) · archetype mostly: communicator · reliability median 0.80 (range 0.59–1.00)"
},
{
"event": {
"kind": "recurring",
"at": "17:30",
"role": "Loader",
"count": 1,
"city": "Kansas City",
"state": "MO",
"shift_start": "17:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-301",
"name": "Charles Young"
}
],
"turns": 2,
"duration_secs": 9.925,
"gap_signals": [
"double_book: undefined Charles Young already booked for 14:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.85797226,
"sources_last_score": 0.6168164,
"pool_size": 567,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (28 workers examined) · recurring certifications: OSHA-10 (54%) · recurring skills: overhead crane (43%) · archetype mostly: communicator · reliability median 0.80 (range 0.19–1.00)"
},
{
"event": {
"kind": "emergency",
"at": "12:00",
"role": "Packer",
"count": 3,
"city": "Kansas City",
"state": "MO",
"shift_start": "12:00 AM"
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 18.828,
"error": "aborted — 3 consecutive drift flags",
"gap_signals": [
"drift_or_tool: aborted — 3 consecutive drift flags"
]
},
{
"event": {
"kind": "misplacement",
"at": "16:30",
"role": "Assembler",
"count": 1,
"city": "Kansas City",
"state": "MO",
"shift_start": "16:30 AM",
"replaces_event": "14:00",
"exclude_worker_ids": [
null,
null
]
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-25208",
"name": "Kenneth O. Stewart"
}
],
"turns": 4,
"duration_secs": 34.022,
"gap_signals": [
"double_book: undefined Kenneth O. Stewart already booked for 14:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.6776089,
"sources_last_score": 0.60772276,
"pool_size": 930,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (29 workers examined) · recurring certifications: OSHA-10 (52%) · recurring skills: overhead crane (45%) · archetype mostly: communicator · reliability median 0.79 (range 0.19–1.00)"
}
]
@@ -0,0 +1,34 @@
[
{
"name": "Miguel H. Martinez",
"booked_for": "14:00",
"role": "Warehouse Associate",
"city": "Kansas City",
"state": "MO",
"status": "no_show"
},
{
"name": "Olivia T. Stewart",
"booked_for": "14:00",
"role": "Warehouse Associate",
"city": "Kansas City",
"state": "MO",
"status": "confirmed"
},
{
"name": "Charles Young",
"booked_for": "17:30",
"role": "Loader",
"city": "Kansas City",
"state": "MO",
"status": "confirmed"
},
{
"name": "Kenneth O. Stewart",
"booked_for": "16:30",
"role": "Assembler",
"city": "Kansas City",
"state": "MO",
"status": "confirmed"
}
]
@@ -0,0 +1 @@
# SMS drafts — Cornerstone Fabrication, 2026-05-06