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":"13:00","event_kind":"expansion","ok":true,"model":"gpt-oss:20b","duration_secs":14.332,"risk":"Risk of double booking existing workers","hint":"Check schedule for Diane Y. Wilson, Tyler V. Cox, Karen Hernandez, Joshua Y. Price before assigning new shifts; resolve artifact error in scheduling script."}
@@ -0,0 +1,2 @@
{"at":"09:30","kind":"baseline_fill","operation":"fill: Forklift Operator x1 in Columbus, OH","fills":[{"candidate_id":"W500K-13528","name":"Carlos White"}],"turns":3,"duration_secs":21.565,"pool_size":1200,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"}
{"at":"13:00","kind":"expansion","operation":"fill: Assembler x4 in Columbus, OH","fills":[{"candidate_id":"W500K-24724","name":"Diane Y. Wilson"},{"candidate_id":"W500K-28959","name":"Tyler V. Cox"},{"candidate_id":"W500K-4811","name":"Karen Hernandez"},{"candidate_id":"W500K-48462","name":"Joshua Y. Price"}],"turns":2,"duration_secs":12.412,"pool_size":540,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"}
@@ -0,0 +1 @@
# Client emails — Midway Distribution, 2026-04-25
@@ -0,0 +1,6 @@
# Cross-day lesson — Midway Distribution, 2026-04-25
_Generated by `gpt-oss:20b` in 6.5s. Based on 2 events + 1 mid-day checkpoints._
**
Before any expansion event, pull the current schedule for all workers you plan to assign—especially those recently filled in baseline events. Verify that none of those workers have overlapping shifts or pending assignments; if a conflict is found, reallocate or postpone the expansion. Also, run a quick validation of the scheduling script to catch artifact errors that could create duplicate entries before committing new assignments.
@@ -0,0 +1,65 @@
[
{
"date": "2026-04-23",
"client": "Summit Industrial",
"cities": "Cincinnati",
"states": "OH",
"events_total": 3,
"events_ok": 3,
"checkpoint_count": 1,
"model": "gpt-oss:20b",
"cloud": false,
"lesson": "** \nWhen an emergency adds forklift operators, pull the full schedule for all forklift staff in the location before assigning. Verify that no one is already booked for another forklift shift—if Jacob Kelly or Matthew P. Jones appear twice, reassign or adjust the shift. Ensure the `f.reason.slice` logic is robust; catch any slice errors and default to a safe value. Update the pool count immediately after each assignment to keep data current. This prevents double‑booking and keeps the pool accurate.",
"checkpoints": [
{
"after": "13:00",
"risk": "Double-booking in Cincinnati forklift ops",
"hint": "Check Jacob Kelly and Matthew P. Jones schedules; resolve f.reason.slice error."
}
],
"created_at": "2026-04-21T01:44:52.190Z",
"file": "2026-04-23_Summit_Industrial_1776735892190.json"
},
{
"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"
}
]
@@ -0,0 +1,65 @@
# Scenario retrospective — Midway Distribution, 2026-04-25
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-23, 2026-04-22)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 09:30 | baseline_fill | Forklift Operator × 1 | 1200 | ✓ 1 | 3 | 21.6 | 0 | 1 |
| 13:00 | expansion | Assembler × 4 | 540 | ✓ 4 | 2 | 12.4 | 0 | 5 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Carlos White | 09:30 | Forklift Operator | Columbus, OH | confirmed |
| undefined Diane Y. Wilson | 13:00 | Assembler | Columbus, OH | confirmed |
| undefined Tyler V. Cox | 13:00 | Assembler | Columbus, OH | confirmed |
| undefined Karen Hernandez | 13:00 | Assembler | Columbus, OH | confirmed |
| undefined Joshua Y. Price | 13:00 | Assembler | Columbus, OH | confirmed |
## Gap signals
### artifact
- **09:30** — undefined is not an object (evaluating 'f.reason.slice')
- **13:00** — undefined is not an object (evaluating 'f.reason.slice')
### double_book
- **13:00** — undefined Diane Y. Wilson already booked for 09:30
- **13:00** — undefined Tyler V. Cox already booked for 09:30
- **13:00** — undefined Karen Hernandez already booked for 09:30
- **13:00** — undefined Joshua Y. Price already booked for 09:30
### fairness
- _cross-event_ — Carlos White (undefined) booked 5 times today
### write_through_audit
- _post-run_ — playbook_memory has 1531 entries (ran 2 events, expected ≥ 2 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 |
|---|---|---|---|
| 13528 | Carlos White | 09:30 baseline_fill | booked |
| W500K-24724 | Diane Y. Wilson | 13:00 expansion | booked |
| W500K-28959 | Tyler V. Cox | 13:00 expansion | booked |
| W500K-4811 | Karen Hernandez | 13:00 expansion | booked |
| W500K-48462 | Joshua Y. Price | 13:00 expansion | booked |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **09:30 baseline_fill** (Forklift Operator): Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)
- **13:00 expansion** (Assembler): Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)
## Narrative
- 2/2 events reached consensus.
- Final roster: 5 bookings across 1 distinct workers.
- Workers touched (booked, failed, or otherwise decided): 5.
- Playbook citations across the day: 0 (proof the feedback loop fired across events).
@@ -0,0 +1,74 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "09:30",
"role": "Forklift Operator",
"count": 1,
"city": "Columbus",
"state": "OH",
"shift_start": "09:30 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "13528",
"name": "Carlos White"
}
],
"turns": 3,
"duration_secs": 21.565,
"gap_signals": [
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.71009,
"sources_last_score": 0.61387056,
"pool_size": 1200,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: flexible · reliability median 0.83 (range 0.59–1.00)"
},
{
"event": {
"kind": "expansion",
"at": "13:00",
"role": "Assembler",
"count": 4,
"city": "Columbus",
"state": "OH",
"shift_start": "13:00 AM"
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-24724",
"name": "Diane Y. Wilson"
},
{
"candidate_id": "W500K-28959",
"name": "Tyler V. Cox"
},
{
"candidate_id": "W500K-4811",
"name": "Karen Hernandez"
},
{
"candidate_id": "W500K-48462",
"name": "Joshua Y. Price"
}
],
"turns": 2,
"duration_secs": 12.412,
"gap_signals": [
"double_book: undefined Diane Y. Wilson already booked for 09:30",
"double_book: undefined Tyler V. Cox already booked for 09:30",
"double_book: undefined Karen Hernandez already booked for 09:30",
"double_book: undefined Joshua Y. Price already booked for 09:30",
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
],
"sources_first_score": 0.7383955,
"sources_last_score": 0.53000855,
"pool_size": 540,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (20 workers examined) · recurring certifications: OSHA-10 (50%) · archetype mostly: communicator · reliability median 0.83 (range 0.59–1.00)"
}
]
@@ -0,0 +1,42 @@
[
{
"name": "Carlos White",
"booked_for": "09:30",
"role": "Forklift Operator",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Diane Y. Wilson",
"booked_for": "13:00",
"role": "Assembler",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Tyler V. Cox",
"booked_for": "13:00",
"role": "Assembler",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Karen Hernandez",
"booked_for": "13:00",
"role": "Assembler",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
},
{
"name": "Joshua Y. Price",
"booked_for": "13:00",
"role": "Assembler",
"city": "Columbus",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1 @@
# SMS drafts — Midway Distribution, 2026-04-25