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":"10:30","event_kind":"emergency","ok":true,"model":"gpt-oss:20b","duration_secs":29.24,"risk":"Worker double-booking risk","hint":"Avoid assigning Malik King, Miguel Morris, Lauren H. Moore to overlapping slots."}
{"after_event":"13:30","event_kind":"misplacement","ok":true,"model":"gpt-oss:20b","duration_secs":25.656,"risk":"Double-booking Mei X likely","hint":"Verify Mei X availability before assigning Shipping Clerk in Cincinnati; ensure f.reason handling is fixed to avoid undefined errors."}
@@ -0,0 +1,4 @@
{"at":"13:00","kind":"baseline_fill","operation":"fill: Material Handler x2 in Cincinnati, OH","fills":[{"candidate_id":"W500K-33620","name":"Jennifer C. Morales"},{"candidate_id":"W500K-26312","name":"Christine A. Miller"}],"turns":3,"duration_secs":24.958,"pool_size":1066,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"}
{"at":"14:30","kind":"recurring","operation":"fill: Assembler x2 in Cincinnati, OH","fills":[{"candidate_id":"W500K-23650","name":"Amy Q. Lewis"},{"candidate_id":"W500K-38133","name":"Cynthia R. Anderson"}],"turns":2,"duration_secs":10.642,"pool_size":869,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"}
{"at":"10:30","kind":"emergency","operation":"fill: Material Handler x3 in Cincinnati, OH","fills":[{"candidate_id":"W500K-10726","name":"Malik King"},{"candidate_id":"W500K-2559","name":"Miguel Morris"},{"candidate_id":"W500K-29283","name":"Lauren H. Moore"}],"turns":2,"duration_secs":11.257,"pool_size":717,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"}
{"at":"13:30","kind":"misplacement","operation":"fill: Shipping Clerk x1 in Cincinnati, OH","fills":[{"candidate_id":"W500K-31665","name":"Mei X. Jimenez"}],"turns":3,"duration_secs":28.47,"pool_size":579,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"}
@@ -0,0 +1 @@
# Client emails — Great Lakes Mfg, 2026-04-21
@@ -0,0 +1,6 @@
# Cross-day lesson — Great Lakes Mfg, 2026-04-21
_Generated by `gpt-oss:20b` in 7.3s. Based on 4 events + 2 mid-day checkpoints._
**
Before assigning any shift, query each candidate’s calendar for overlapping slots, especially for workers flagged in risk lists (e.g., Malik King, Miguel Morris, Lauren H. Moore, Mei X). Reject any assignment that would create a double‑booking and log a warning if a risk worker is already scheduled. For misplacement events, verify that the `f.reason` field is defined to avoid undefined errors. Pre‑fetch the updated pool counts after each event to keep the pool accurate for subsequent assignments. This prevents worker conflicts and runtime errors in future runs.
@@ -0,0 +1,70 @@
[
{
"date": "2026-04-23",
"client": "Horizon Supply",
"cities": "Toledo",
"states": "OH",
"events_total": 1,
"events_ok": 1,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nWhen executing a `baseline_fill`, always guard against missing `f.reason` before calling `slice`. Add a null check (e.g., `if (f.reason) { … }`) or pre‑fetch the field during data load. Log a warning and skip the slice if `f.reason` is undefined to avoid runtime JS errors and keep the pool count accurate.",
"checkpoints": [
{
"after": "14:00",
"risk": "Potential JS error in baseline_fill",
"hint": "Validate f.reason exists for Quality Tech Toledo before calling slice; add null guard to prevent JS error."
}
],
"created_at": "2026-04-21T01:36:12.165Z",
"file": "2026-04-23_Horizon_Supply_1776735372165.json"
},
{
"date": "2026-04-22",
"client": "Centennial Packaging",
"cities": "Cleveland",
"states": "OH",
"events_total": 3,
"events_ok": 3,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore running an expansion event, query the current pool for the role and subtract any workers already assigned in earlier shifts; if the remaining pool is less than the requested number, reallocate or reduce the expansion. Implement a pre‑check that flags potential double bookings and forces reassignment of at least one role. Validate all worker references to avoid undefined references in scheduling logic. This prevents overlapping assignments and ensures the pool count remains accurate.",
"checkpoints": [
{
"after": "11:30",
"risk": "Double booking risk for Assembler workers",
"hint": "Reassign at least one of the five Assembler roles to avoid double booking with the 09:00 shift; review scheduling logic for undefined worker references."
}
],
"created_at": "2026-04-21T01:35:16.915Z",
"file": "2026-04-22_Centennial_Packaging_1776735316915.json"
},
{
"date": "2026-04-21",
"client": "Riverfront Steel",
"cities": "Toledo",
"states": "OH",
"events_total": 5,
"events_ok": 4,
"checkpoint_count": 2,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore 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.",
"checkpoints": [
{
"after": "12:15",
"risk": "Forklift Operator drift risk in Toledo",
"hint": "Verify forklift operator certifications in Toledo; consider temporary hires if drift persists."
},
{
"after": "15:45",
"risk": "Double-booking risk for Patrick Ross",
"hint": "Verify Patrick Ross’s schedule before assigning; use the booking system to prevent overlapping shifts."
}
],
"created_at": "2026-04-21T01:13:14.575Z",
"file": "2026-04-21_Riverfront_Steel_1776733994575.json"
}
]
@@ -0,0 +1,81 @@
# Scenario retrospective — Great Lakes Mfg, 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: **3** (from 2026-04-23, 2026-04-22, 2026-04-21)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 13:00 | baseline_fill | Material Handler × 2 | 1066 | ✓ 2 | 3 | 25.0 | 0 | 2 |
| 14:30 | recurring | Assembler × 2 | 869 | ✓ 2 | 2 | 10.6 | 0 | 3 |
| 10:30 | emergency | Material Handler × 3 | 717 | ✓ 3 | 2 | 11.3 | 0 | 4 |
| 13:30 | misplacement | Shipping Clerk × 1 | 579 | ✓ 1 | 3 | 28.5 | 0 | 2 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Jennifer C. Morales | 13:00 | Material Handler | Cincinnati, OH | no_show |
| undefined Christine A. Miller | 13:00 | Material Handler | Cincinnati, OH | confirmed |
| undefined Amy Q. Lewis | 14:30 | Assembler | Cincinnati, OH | confirmed |
| undefined Cynthia R. Anderson | 14:30 | Assembler | Cincinnati, OH | confirmed |
| undefined Malik King | 10:30 | Material Handler | Cincinnati, OH | confirmed |
| undefined Miguel Morris | 10:30 | Material Handler | Cincinnati, OH | confirmed |
| undefined Lauren H. Moore | 10:30 | Material Handler | Cincinnati, OH | confirmed |
| undefined Mei X. Jimenez | 13:30 | Shipping Clerk | Cincinnati, OH | confirmed |
## Gap signals
### double_book
- **13:00** — undefined Christine A. Miller already booked for 13:00
- **14:30** — undefined Amy Q. Lewis already booked for 13:00
- **14:30** — undefined Cynthia R. Anderson already booked for 13:00
- **10:30** — undefined Malik King already booked for 13:00
- **10:30** — undefined Miguel Morris already booked for 13:00
- **10:30** — undefined Lauren H. Moore already booked for 13:00
- **13:30** — undefined Mei X. Jimenez already booked for 13:00
### artifact
- **13:00** — undefined is not an object (evaluating 'f.reason.slice')
- **14:30** — undefined is not an object (evaluating 'f.reason.slice')
- **10:30** — undefined is not an object (evaluating 'f.reason.slice')
- **13:30** — undefined is not an object (evaluating 'f.reason.slice')
### fairness
- _cross-event_ — Jennifer C. Morales (undefined) booked 7 times today
### write_through_audit
- _post-run_ — playbook_memory has 1525 entries (ran 4 events, expected ≥ 4 new entries from this run)
## Workers touched across the week
9 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 |
|---|---|---|---|
| 33620 | Jennifer C. Morales | 13:00 baseline_fill | booked |
| 26312 | Christine A. Miller | 13:00 baseline_fill | booked |
| W500K-23650 | Amy Q. Lewis | 14:30 recurring | booked |
| W500K-38133 | Cynthia R. Anderson | 14:30 recurring | booked |
| W500K-10726 | Malik King | 10:30 emergency | booked |
| W500K-2559 | Miguel Morris | 10:30 emergency | booked |
| W500K-29283 | Lauren H. Moore | 10:30 emergency | booked |
| 31665 | Mei X. Jimenez | 13:30 misplacement | booked |
| undefined | Jennifer C. Morales | 13:00 | no_show |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **13:00 baseline_fill** (Material Handler): Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)
- **14:30 recurring** (Assembler): Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)
- **10:30 emergency** (Material Handler): Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)
- **13:30 misplacement** (Shipping Clerk): Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)
## Narrative
- 4/4 events reached consensus.
- Final roster: 8 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 9.
- Playbook citations across the day: 0 (proof the feedback loop fired across events).
@@ -0,0 +1,142 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "13:00",
"role": "Material Handler",
"count": 2,
"city": "Cincinnati",
"state": "OH",
"shift_start": "13:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "33620",
"name": "Jennifer C. Morales"
},
{
"candidate_id": "26312",
"name": "Christine A. Miller"
}
],
"turns": 3,
"duration_secs": 24.958,
"gap_signals": [
"double_book: undefined Christine A. Miller already booked for 13:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.68624544,
"sources_last_score": 0.64102143,
"pool_size": 1066,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"
},
{
"event": {
"kind": "recurring",
"at": "14:30",
"role": "Assembler",
"count": 2,
"city": "Cincinnati",
"state": "OH",
"shift_start": "14:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-23650",
"name": "Amy Q. Lewis"
},
{
"candidate_id": "W500K-38133",
"name": "Cynthia R. Anderson"
}
],
"turns": 2,
"duration_secs": 10.642,
"gap_signals": [
"double_book: undefined Amy Q. Lewis already booked for 13:00",
"double_book: undefined Cynthia R. Anderson already booked for 13:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.8198779,
"sources_last_score": 0.6185224,
"pool_size": 869,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"
},
{
"event": {
"kind": "emergency",
"at": "10:30",
"role": "Material Handler",
"count": 3,
"city": "Cincinnati",
"state": "OH",
"shift_start": "10:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-10726",
"name": "Malik King"
},
{
"candidate_id": "W500K-2559",
"name": "Miguel Morris"
},
{
"candidate_id": "W500K-29283",
"name": "Lauren H. Moore"
}
],
"turns": 2,
"duration_secs": 11.257,
"gap_signals": [
"double_book: undefined Malik King already booked for 13:00",
"double_book: undefined Miguel Morris already booked for 13:00",
"double_book: undefined Lauren H. Moore already booked for 13:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.613479,
"sources_last_score": 0.5301549,
"pool_size": 717,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"
},
{
"event": {
"kind": "misplacement",
"at": "13:30",
"role": "Shipping Clerk",
"count": 1,
"city": "Cincinnati",
"state": "OH",
"shift_start": "13:30 AM",
"replaces_event": "13:00",
"exclude_worker_ids": [
null,
null
]
},
"ok": true,
"fills": [
{
"candidate_id": "31665",
"name": "Mei X. Jimenez"
}
],
"turns": 3,
"duration_secs": 28.47,
"gap_signals": [
"double_book: undefined Mei X. Jimenez already booked for 13:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.63140756,
"sources_last_score": 0.5673077,
"pool_size": 579,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (17 workers examined) · recurring certifications: OSHA-10 (53%) · recurring skills: 6S (41%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"
}
]
@@ -0,0 +1,66 @@
[
{
"name": "Jennifer C. Morales",
"booked_for": "13:00",
"role": "Material Handler",
"city": "Cincinnati",
"state": "OH",
"status": "no_show"
},
{
"name": "Christine A. Miller",
"booked_for": "13:00",
"role": "Material Handler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Amy Q. Lewis",
"booked_for": "14:30",
"role": "Assembler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Cynthia R. Anderson",
"booked_for": "14:30",
"role": "Assembler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Malik King",
"booked_for": "10:30",
"role": "Material Handler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Miguel Morris",
"booked_for": "10:30",
"role": "Material Handler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Lauren H. Moore",
"booked_for": "10:30",
"role": "Material Handler",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
},
{
"name": "Mei X. Jimenez",
"booked_for": "13:30",
"role": "Shipping Clerk",
"city": "Cincinnati",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1 @@
# SMS drafts — Great Lakes Mfg, 2026-04-21