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:15","event_kind":"expansion","ok":false,"model":"gpt-oss:20b","duration_secs":14.223,"hint":"(T3 unavailable)","risk":"generate returned empty text from gpt-oss:20b: {\"text\":\"\",\"model\":\"gpt-oss:20b\","}
{"after_event":"15:45","event_kind":"misplacement","ok":false,"model":"gpt-oss:20b","duration_secs":15.447,"hint":"(T3 unavailable)","risk":"generate returned empty text from gpt-oss:20b: {\"text\":\"\",\"model\":\"gpt-oss:20b\","}
@@ -0,0 +1 @@
{"at":"12:15","kind":"expansion","operation":"fill: Forklift Operator x5 in Toledo, OH","fills":[{"candidate_id":"W500K-22375","name":"Matthew P. Garcia","reason":"Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."},{"candidate_id":"W500K-19588","name":"Maria K. Cruz","reason":"Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."},{"candidate_id":"W500K-37736","name":"Jennifer K. Robinson","reason":"Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."},{"candidate_id":"W500K-3150","name":"Brenda Gutierrez","reason":"Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."},{"candidate_id":"W500K-28024","name":"Nancy W. Ward","reason":"Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."}],"turns":6,"duration_secs":21.998,"pool_size":687,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"}
@@ -0,0 +1,20 @@
# Client emails — Riverfront Steel, 2026-04-21
## 12:15 expansion — Forklift Operator x5
Subject: 5 Workers Confirmed
Dear Riverfront Steel Team,
We are pleased to confirm that we have filled all 5 positions for Forklift Operators as requested. The workers starting at 01:00 PM today are:
- Matthew P. Garcia
- Maria K. Cruz
- Jennifer K. Robinson
- Brenda Gutierrez
- Nancy W. Ward
This is in support of the new warehouse location opening, requiring a five-worker team.
Best regards,
Dispatch Team Lakehouse
@@ -0,0 +1,6 @@
# Cross-day lesson — Riverfront Steel, 2026-04-21
_Generated by `gpt-oss:20b` in 14.2s. Based on 5 events + 2 mid-day checkpoints._
**
Before any baseline, recurring, or emergency fill, query the pool size and turn count; missing data causes the job to fail. Replicate the expansion logic that pulls pool and turns for all event types. If the GPT‑OSS model is unavailable, switch to a local fallback or log a warning instead of returning empty risk text. Validate that gaps are accounted for before committing the fill to avoid single‑gap failures.
@@ -0,0 +1,76 @@
# Scenario retrospective — Riverfront Steel, 2026-04-21
Executor: `mistral:latest` Reviewer: `qwen2.5:latest` Draft: `qwen2.5:latest` Overview(T3): `gpt-oss:20b`
Prior lessons loaded into executor context: **0** (baseline — no prior T3 history)
## Events
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|---|---|---|---|---|---|---|---|---|
| 08:00 | baseline_fill | Warehouse Associate × 3 | - | ✗ 0 | 0 | 47.6 | 0 | 1 |
| 10:30 | recurring | Machine Operator × 2 | - | ✗ 0 | 0 | 29.5 | 0 | 1 |
| 12:15 | expansion | Forklift Operator × 5 | 687 | ✓ 5 | 6 | 22.0 | 0 | 4 |
| 14:00 | emergency | Loader × 4 | - | ✗ 0 | 0 | 92.4 | 0 | 1 |
| 15:45 | misplacement | Warehouse Associate × 1 | - | ✗ 0 | 0 | 100.9 | 0 | 1 |
## Final roster
| Worker | Booked | Role | City, ST | Status |
|---|---|---|---|---|
| undefined Matthew P. Garcia | 12:15 | Forklift Operator | Toledo, OH | confirmed |
| undefined Maria K. Cruz | 12:15 | Forklift Operator | Toledo, OH | confirmed |
| undefined Jennifer K. Robinson | 12:15 | Forklift Operator | Toledo, OH | confirmed |
| undefined Brenda Gutierrez | 12:15 | Forklift Operator | Toledo, OH | confirmed |
| undefined Nancy W. Ward | 12:15 | Forklift Operator | Toledo, OH | confirmed |
## Gap signals
### drift_or_tool
- **08:00** — no consensus after 14 turns
- **10:30** — invalid JSON from executor: JSON Parse error: Expected '}' | raw: {"kind":"tool_call","tool":"hybrid_search",
"args":{"index_name":"workers_500k_v1","sql_filter":"role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND playbook_citations > 0",
"rationale":"Narrow down candidates to Machine Operators in Toledo, OH w
- **14:00** — no consensus after 14 turns
- **15:45** — no consensus after 14 turns
### double_book
- **12:15** — undefined Maria K. Cruz already booked for 12:15
- **12:15** — undefined Jennifer K. Robinson already booked for 12:15
- **12:15** — undefined Brenda Gutierrez already booked for 12:15
- **12:15** — undefined Nancy W. Ward already booked for 12:15
### fairness
- _cross-event_ — Matthew P. Garcia (undefined) booked 5 times today
### write_through_audit
- _post-run_ — playbook_memory has 1164 entries (ran 5 events, expected ≥ 1 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-22375 | Matthew P. Garcia | 12:15 expansion | booked |
| W500K-19588 | Maria K. Cruz | 12:15 expansion | booked |
| W500K-37736 | Jennifer K. Robinson | 12:15 expansion | booked |
| W500K-3150 | Brenda Gutierrez | 12:15 expansion | booked |
| W500K-28024 | Nancy W. Ward | 12:15 expansion | booked |
## Discovered patterns (meta-index)
What the system identified across semantically-similar past fills as each event ran:
- **08:00 baseline_fill** (Warehouse Associate): —
- **10:30 recurring** (Machine Operator): —
- **12:15 expansion** (Forklift Operator): Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)
- **14:00 emergency** (Loader): —
- **15:45 misplacement** (Warehouse Associate): —
## Narrative
- 1/5 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).
- Dropped events: 08:00 baseline_fill, 10:30 recurring, 14:00 emergency, 15:45 misplacement.
@@ -0,0 +1,137 @@
[
{
"event": {
"kind": "baseline_fill",
"at": "08:00",
"role": "Warehouse Associate",
"count": 3,
"city": "Toledo",
"state": "OH",
"shift_start": "08:00 AM",
"scenario_note": "Regular Monday morning shift, 8-hour."
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 47.571,
"error": "no consensus after 14 turns",
"gap_signals": [
"drift_or_tool: no consensus after 14 turns"
]
},
{
"event": {
"kind": "recurring",
"at": "10:30",
"role": "Machine Operator",
"count": 2,
"city": "Toledo",
"state": "OH",
"shift_start": "11:00 AM",
"scenario_note": "Recurring Tuesday/Thursday slot — prior workers may still be available."
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 29.546,
"error": "invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND playbook_citations > 0\",\n\"rationale\":\"Narrow down candidates to Machine Operators in Toledo, OH w",
"gap_signals": [
"drift_or_tool: invalid JSON from executor: JSON Parse error: Expected '}' | raw: {\"kind\":\"tool_call\",\"tool\":\"hybrid_search\",\n\"args\":{\"index_name\":\"workers_500k_v1\",\"sql_filter\":\"role = 'Machine Operator' AND city = 'Toledo' AND state = 'OH' AND CAST(availability AS DOUBLE) > 0.5 AND playbook_citations > 0\",\n\"rationale\":\"Narrow down candidates to Machine Operators in Toledo, OH w"
]
},
{
"event": {
"kind": "expansion",
"at": "12:15",
"role": "Forklift Operator",
"count": 5,
"city": "Toledo",
"state": "OH",
"shift_start": "01:00 PM",
"scenario_note": "New warehouse location opening, five-worker team needed."
},
"ok": true,
"fills": [
{
"candidate_id": "W500K-22375",
"name": "Matthew P. Garcia",
"reason": "Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."
},
{
"candidate_id": "W500K-19588",
"name": "Maria K. Cruz",
"reason": "Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."
},
{
"candidate_id": "W500K-37736",
"name": "Jennifer K. Robinson",
"reason": "Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."
},
{
"candidate_id": "W500K-3150",
"name": "Brenda Gutierrez",
"reason": "Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."
},
{
"candidate_id": "W500K-28024",
"name": "Nancy W. Ward",
"reason": "Meets the criteria of being a Forklift Operator in Toledo, OH with availability and reliability above the specified thresholds."
}
],
"turns": 6,
"duration_secs": 21.998,
"gap_signals": [
"double_book: undefined Maria K. Cruz already booked for 12:15",
"double_book: undefined Jennifer K. Robinson already booked for 12:15",
"double_book: undefined Brenda Gutierrez already booked for 12:15",
"double_book: undefined Nancy W. Ward already booked for 12:15"
],
"sources_first_score": 0.6336688,
"sources_last_score": 0.55183524,
"pool_size": 687,
"playbook_citations": [],
"discovered_pattern": "Across 25 similar past playbooks (6 workers examined) · recurring certifications: Forklift (67%), OSHA-10 (50%) · recurring skills: mill (50%), 6S (50%) · archetype mostly: leader · reliability median 0.83 (range 0.75–0.96)"
},
{
"event": {
"kind": "emergency",
"at": "14:00",
"role": "Loader",
"count": 4,
"city": "Toledo",
"state": "OH",
"shift_start": "04:00 PM same day",
"deadline": "16:00",
"scenario_note": "Walkoff incident — replacement crew needed by 16:00 sharp."
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 92.425,
"error": "no consensus after 14 turns",
"gap_signals": [
"drift_or_tool: no consensus after 14 turns"
]
},
{
"event": {
"kind": "misplacement",
"at": "15:45",
"role": "Warehouse Associate",
"count": 1,
"city": "Toledo",
"state": "OH",
"shift_start": "remainder of 08:00 shift",
"scenario_note": "One worker from the 08:00 fill didn't show; rebuild the gap.",
"replaces_event": "08:00"
},
"ok": false,
"fills": [],
"turns": 0,
"duration_secs": 100.945,
"error": "no consensus after 14 turns",
"gap_signals": [
"drift_or_tool: no consensus after 14 turns"
]
}
]
@@ -0,0 +1,42 @@
[
{
"name": "Matthew P. Garcia",
"booked_for": "12:15",
"role": "Forklift Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Maria K. Cruz",
"booked_for": "12:15",
"role": "Forklift Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Jennifer K. Robinson",
"booked_for": "12:15",
"role": "Forklift Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Brenda Gutierrez",
"booked_for": "12:15",
"role": "Forklift Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
},
{
"name": "Nancy W. Ward",
"booked_for": "12:15",
"role": "Forklift Operator",
"city": "Toledo",
"state": "OH",
"status": "confirmed"
}
]
@@ -0,0 +1,26 @@
# SMS drafts — Riverfront Steel, 2026-04-21
## 12:15 expansion — Forklift Operator x5 in Toledo, OH
TO: Matthew P. Garcia
Confirming your shift as a Forklift Operator at Riverfront Steel's new warehouse in Toledo, OH starting 1:00 PM.
---
TO: Maria K. Cruz
You're scheduled to start your shift at 1:00 PM today at our new warehouse location in Toledo, OH.
---
TO: Jennifer K. Robinson
Confirming your shift as a Forklift Operator at Riverfront Steel's new warehouse opening in Toledo, OH starting 1:00 PM.
---
TO: Brenda Gutierrez
Your shift starts at 1:00 PM today at our new warehouse location for Riverfront Steel in Toledo, OH.
---
TO: Nancy W. Ward
Confirming your shift as a Forklift Operator at Riverfront Steel's new warehouse opening in Toledo, OH starting 1:00 PM.