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 @@
{"after_event":"11:30","event_kind":"expansion","ok":true,"model":"gpt-oss:20b","duration_secs":13.321,"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."}
@@ -0,0 +1,3 @@
{"at":"09:00","kind":"baseline_fill","operation":"fill: Forklift Operator x1 in Cleveland, OH","fills":[{"candidate_id":"W500K-9810","name":"Amanda Edwards"}],"turns":4,"duration_secs":30.492,"pool_size":1176,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (13 workers examined) · recurring certifications: OSHA-10 (69%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)"}
{"at":"09:00","kind":"recurring","operation":"fill: Assembler x1 in Cleveland, OH","fills":[{"candidate_id":"W500K-35240","name":"Betty K. Bennett"}],"turns":2,"duration_secs":11.163,"pool_size":911,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (14 workers examined) · recurring certifications: OSHA-10 (64%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)"}
{"at":"11:30","kind":"expansion","operation":"fill: Assembler x5 in Cleveland, OH","fills":[{"candidate_id":"W500K-8211","name":"Zachary Davis"},{"candidate_id":"W500K-46732","name":"Nicholas K. Hill"},{"candidate_id":"W500K-23030","name":"Susan U. Carter"},{"candidate_id":"W500K-15922","name":"Kevin K. Mendoza"},{"candidate_id":"W500K-27715","name":"Miguel Z. Hall"}],"turns":2,"duration_secs":12.695,"pool_size":559,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"}
@@ -0,0 +1 @@
# Client emails — Centennial Packaging, 2026-04-22
@@ -0,0 +1,6 @@
# Cross-day lesson — Centennial Packaging, 2026-04-22
_Generated by `gpt-oss:20b` in 5.5s. Based on 3 events + 1 mid-day checkpoints._
**
Before 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.
@@ -0,0 +1,80 @@
[
{
"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"
},
{
"date": "2026-04-21",
"client": "Riverfront Steel",
"cities": "Toledo",
"states": "OH",
"events_total": 5,
"events_ok": 5,
"checkpoint_count": 2,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nBefore assigning any expansion or emergency shift, pull the current availability of all required roles from the central schedule and lock those slots to prevent overlap. For high‑volume roles such as Forklift Operator, confirm no conflict with earlier baseline or recurring bookings. When a misplacement occurs, cross‑check the specific candidate’s calendar (e.g., Patrick Ross) to avoid double‑booking and validate artifact data before re‑assigning. Keep pool counts comfortably above the required number to buffer against last‑minute gaps.",
"checkpoints": [
{
"after": "12:15",
"risk": "Forklift Operator double booking risk",
"hint": "Verify Toledo forklift operator availability before assigning new shift; avoid overlapping with 08:00 bookings."
},
{
"after": "15:45",
"risk": "Potential double-booking of Patrick Ross",
"hint": "Check Patrick Ross schedule before assigning to avoid double-booking; verify artifact data integrity for new assignments."
}
],
"created_at": "2026-04-21T01:30:53.606Z",
"file": "2026-04-21_Riverfront_Steel_1776735053606.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": "** \nWhen expanding a shift that requires multiple forklift operators, pull a fresh subset of operators from the pool that excludes those already assigned to the Toledo shift; maintain a temporary exclusion list to avoid duplicate assignments. For any misplacement or re‑assignment, lock the worker’s schedule before assigning a new shift to prevent double‑booking—especially for high‑demand staff like Ryan Hughes. Verify the pool size and current turns before processing an emergency request; if the pool is insufficient, trigger a contingency plan. Keep a real‑time log of all assignments to catch overlaps early.",
"checkpoints": [
{
"after": "12:15",
"risk": "Duplicate worker assignments risk",
"hint": "Avoid double booking: use different forklift operators for Toledo shift."
},
{
"after": "15:45",
"risk": "Double-book Ryan Hughes",
"hint": "Verify Ryan Hughes' schedule before assigning any new shift to avoid overlapping bookings."
}
],
"created_at": "2026-04-21T01:26:26.982Z",
"file": "2026-04-21_Riverfront_Steel_1776734786982.json"
}
]
@@ -0,0 +1,74 @@
# Scenario retrospective — Centennial Packaging, 2026-04-22
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-21, 2026-04-21, 2026-04-21)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 09:00 | baseline_fill | Forklift Operator × 1 | 1176 | ✓ 1 | 4 | 30.5 | 0 | 1 |
| 09:00 | recurring | Assembler × 1 | 911 | ✓ 1 | 2 | 11.2 | 0 | 2 |
| 11:30 | expansion | Assembler × 5 | 559 | ✓ 5 | 2 | 12.7 | 0 | 6 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Amanda Edwards | 09:00 | Forklift Operator | Cleveland, OH | confirmed |
| undefined Betty K. Bennett | 09:00 | Assembler | Cleveland, OH | confirmed |
| undefined Zachary Davis | 11:30 | Assembler | Cleveland, OH | confirmed |
| undefined Nicholas K. Hill | 11:30 | Assembler | Cleveland, OH | confirmed |
| undefined Susan U. Carter | 11:30 | Assembler | Cleveland, OH | confirmed |
| undefined Kevin K. Mendoza | 11:30 | Assembler | Cleveland, OH | confirmed |
| undefined Miguel Z. Hall | 11:30 | Assembler | Cleveland, OH | confirmed |
## Gap signals
### artifact
- **09:00** — undefined is not an object (evaluating 'f.reason.slice')
- **09:00** — undefined is not an object (evaluating 'f.reason.slice')
- **11:30** — undefined is not an object (evaluating 'f.reason.slice')
### double_book
- **09:00** — undefined Betty K. Bennett already booked for 09:00
- **11:30** — undefined Zachary Davis already booked for 09:00
- **11:30** — undefined Nicholas K. Hill already booked for 09:00
- **11:30** — undefined Susan U. Carter already booked for 09:00
- **11:30** — undefined Kevin K. Mendoza already booked for 09:00
- **11:30** — undefined Miguel Z. Hall already booked for 09:00
### fairness
- _cross-event_ — Amanda Edwards (undefined) booked 7 times today
### write_through_audit
- _post-run_ — playbook_memory has 1488 entries (ran 3 events, expected ≥ 3 new entries from this run)
## Workers touched across the week
7 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 |
|---|---|---|---|
| 9810 | Amanda Edwards | 09:00 baseline_fill | booked |
| W500K-35240 | Betty K. Bennett | 09:00 recurring | booked |
| W500K-8211 | Zachary Davis | 11:30 expansion | booked |
| W500K-46732 | Nicholas K. Hill | 11:30 expansion | booked |
| W500K-23030 | Susan U. Carter | 11:30 expansion | booked |
| W500K-15922 | Kevin K. Mendoza | 11:30 expansion | booked |
| W500K-27715 | Miguel Z. Hall | 11:30 expansion | booked |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **09:00 baseline_fill** (Forklift Operator): Across 25 similar past playbooks (13 workers examined) · recurring certifications: OSHA-10 (69%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)
- **09:00 recurring** (Assembler): Across 25 similar past playbooks (14 workers examined) · recurring certifications: OSHA-10 (64%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)
- **11:30 expansion** (Assembler): Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)
## Narrative
- 3/3 events reached consensus.
- Final roster: 7 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 7.
- Playbook citations across the day: 0 (proof the feedback loop fired across events).
@@ -0,0 +1,108 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "09:00",
"role": "Forklift Operator",
"count": 1,
"city": "Cleveland",
"state": "OH",
"shift_start": "09:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "9810",
"name": "Amanda Edwards"
}
],
"turns": 4,
"duration_secs": 30.492,
"gap_signals": [
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.65547246,
"sources_last_score": 0.59657586,
"pool_size": 1176,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (13 workers examined) · recurring certifications: OSHA-10 (69%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)"
},
{
"event": {
"kind": "recurring",
"at": "09:00",
"role": "Assembler",
"count": 1,
"city": "Cleveland",
"state": "OH",
"shift_start": "09:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-35240",
"name": "Betty K. Bennett"
}
],
"turns": 2,
"duration_secs": 11.163,
"gap_signals": [
"double_book: undefined Betty K. Bennett already booked for 09:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.69122416,
"sources_last_score": 0.64895684,
"pool_size": 911,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (14 workers examined) · recurring certifications: OSHA-10 (64%) · archetype mostly: communicator · reliability median 0.89 (range 0.59–1.00)"
},
{
"event": {
"kind": "expansion",
"at": "11:30",
"role": "Assembler",
"count": 5,
"city": "Cleveland",
"state": "OH",
"shift_start": "11:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-8211",
"name": "Zachary Davis"
},
{
"candidate_id": "W500K-46732",
"name": "Nicholas K. Hill"
},
{
"candidate_id": "W500K-23030",
"name": "Susan U. Carter"
},
{
"candidate_id": "W500K-15922",
"name": "Kevin K. Mendoza"
},
{
"candidate_id": "W500K-27715",
"name": "Miguel Z. Hall"
}
],
"turns": 2,
"duration_secs": 12.695,
"gap_signals": [
"double_book: undefined Zachary Davis already booked for 09:00",
"double_book: undefined Nicholas K. Hill already booked for 09:00",
"double_book: undefined Susan U. Carter already booked for 09:00",
"double_book: undefined Kevin K. Mendoza already booked for 09:00",
"double_book: undefined Miguel Z. Hall already booked for 09:00",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.7955998,
"sources_last_score": 0.53438586,
"pool_size": 559,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (15 workers examined) · recurring certifications: OSHA-10 (60%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"
}
]
@@ -0,0 +1,58 @@
[
{
"name": "Amanda Edwards",
"booked_for": "09:00",
"role": "Forklift Operator",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Betty K. Bennett",
"booked_for": "09:00",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Zachary Davis",
"booked_for": "11:30",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Nicholas K. Hill",
"booked_for": "11:30",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Susan U. Carter",
"booked_for": "11:30",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Kevin K. Mendoza",
"booked_for": "11:30",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
},
{
"name": "Miguel Z. Hall",
"booked_for": "11:30",
"role": "Assembler",
"city": "Cleveland",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1 @@
# SMS drafts — Centennial Packaging, 2026-04-22