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:
@@ -0,0 +1 @@
|
||||
{"after_event":"14:30","event_kind":"expansion","ok":true,"model":"gpt-oss:20b","duration_secs":14.664,"risk":"Double-booking at 15:30","hint":"Verify 15:30 slot for Anna Rivera, Jack K. Ramirez, Thomas J. Lewis, Brenda A. Cox, Lisa O. Diaz before assigning new roles."}
|
||||
@@ -0,0 +1,2 @@
|
||||
{"at":"15:30","kind":"recurring","operation":"fill: Quality Tech x2 in Cleveland, OH","fills":[{"candidate_id":"W500K-11197","name":"Fatima Parker"},{"candidate_id":"W500K-27255","name":"Shirley H. Davis"}],"turns":3,"duration_secs":17.909,"pool_size":657,"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)"}
|
||||
{"at":"14:30","kind":"expansion","operation":"fill: Machine Operator x5 in Cleveland, OH","fills":[{"candidate_id":"W500K-8217","name":"Anna Rivera"},{"candidate_id":"W500K-39010","name":"Jack K. Ramirez"},{"candidate_id":"W500K-29571","name":"Thomas J. Lewis"},{"candidate_id":"W500K-33852","name":"Brenda A. Cox"},{"candidate_id":"W500K-28588","name":"Lisa O. Diaz"}],"turns":2,"duration_secs":14.348,"pool_size":600,"playbook_citations":[],"discovered_pattern":"Across 25 similar past playbooks (22 workers examined) · recurring certifications: OSHA-10 (45%) · archetype mostly: communicator · reliability median 0.82 (range 0.59–1.00)"}
|
||||
@@ -0,0 +1 @@
|
||||
# Client emails — Apex Warehouse, 2026-04-26
|
||||
@@ -0,0 +1,6 @@
|
||||
# Cross-day lesson — Apex Warehouse, 2026-04-26
|
||||
|
||||
_Generated by `gpt-oss:20b` in 6.5s. Based on 3 events + 1 mid-day checkpoints._
|
||||
|
||||
**
|
||||
When an expansion event is scheduled before a recurring event, always pre‑fetch the availability of every candidate slated for the recurring slot (e.g., Anna Rivera, Jack K. Ramirez, Thomas J. Lewis, Brenda A. Cox, Lisa O. Diaz) at the overlapping time. Verify that none of these candidates are already assigned to the expansion or any other role before committing them to the recurring slot. Adjust the expansion or recurring schedule if any overlap is detected, and keep the pool size and turns in mind to avoid overloading the same candidates. This prevents double‑booking and ensures a smooth fill.
|
||||
@@ -0,0 +1,65 @@
|
||||
[
|
||||
{
|
||||
"date": "2026-04-25",
|
||||
"client": "Midway Distribution",
|
||||
"cities": "Columbus",
|
||||
"states": "OH",
|
||||
"events_total": 2,
|
||||
"events_ok": 2,
|
||||
"checkpoint_count": 1,
|
||||
"model": "gpt-oss:20b",
|
||||
"cloud": false,
|
||||
"lesson": "** \nBefore 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.",
|
||||
"checkpoints": [
|
||||
{
|
||||
"after": "13:00",
|
||||
"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."
|
||||
}
|
||||
],
|
||||
"created_at": "2026-04-21T01:46:43.383Z",
|
||||
"file": "2026-04-25_Midway_Distribution_1776736003383.json"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,77 @@
|
||||
# Scenario retrospective — Apex Warehouse, 2026-04-26
|
||||
|
||||
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-25, 2026-04-23, 2026-04-23)
|
||||
|
||||
## Events
|
||||
|
||||
| At | Kind | Role / Count | Pool | Fills | Turns | Dur(s) | Cites | Gaps |
|
||||
|---|---|---|---|---|---|---|---|---|
|
||||
| 10:30 | baseline_fill | Receiving Clerk × 1 | - | ✗ 0 | 0 | 24.5 | 0 | 1 |
|
||||
| 15:30 | recurring | Quality Tech × 2 | 657 | ✓ 2 | 3 | 17.9 | 0 | 2 |
|
||||
| 14:30 | expansion | Machine Operator × 5 | 600 | ✓ 5 | 2 | 14.3 | 0 | 6 |
|
||||
|
||||
## Final roster
|
||||
|
||||
| Worker | Booked | Role | City, ST | Status |
|
||||
|---|---|---|---|---|
|
||||
| undefined Fatima Parker | 15:30 | Quality Tech | Cleveland, OH | confirmed |
|
||||
| undefined Shirley H. Davis | 15:30 | Quality Tech | Cleveland, OH | confirmed |
|
||||
| undefined Anna Rivera | 14:30 | Machine Operator | Cleveland, OH | confirmed |
|
||||
| undefined Jack K. Ramirez | 14:30 | Machine Operator | Cleveland, OH | confirmed |
|
||||
| undefined Thomas J. Lewis | 14:30 | Machine Operator | Cleveland, OH | confirmed |
|
||||
| undefined Brenda A. Cox | 14:30 | Machine Operator | Cleveland, OH | confirmed |
|
||||
| undefined Lisa O. Diaz | 14:30 | Machine Operator | Cleveland, OH | confirmed |
|
||||
|
||||
## Gap signals
|
||||
|
||||
### drift_or_tool
|
||||
- **10:30** — aborted — 3 consecutive drift flags
|
||||
|
||||
### double_book
|
||||
- **15:30** — undefined Shirley H. Davis already booked for 15:30
|
||||
- **14:30** — undefined Anna Rivera already booked for 15:30
|
||||
- **14:30** — undefined Jack K. Ramirez already booked for 15:30
|
||||
- **14:30** — undefined Thomas J. Lewis already booked for 15:30
|
||||
- **14:30** — undefined Brenda A. Cox already booked for 15:30
|
||||
- **14:30** — undefined Lisa O. Diaz already booked for 15:30
|
||||
|
||||
### artifact
|
||||
- **15:30** — undefined is not an object (evaluating 'f.reason.slice')
|
||||
- **14:30** — undefined is not an object (evaluating 'f.reason.slice')
|
||||
|
||||
### fairness
|
||||
- _cross-event_ — Fatima Parker (undefined) booked 7 times today
|
||||
|
||||
### write_through_audit
|
||||
- _post-run_ — playbook_memory has 1533 entries (ran 3 events, expected ≥ 2 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 |
|
||||
|---|---|---|---|
|
||||
| 11197 | Fatima Parker | 15:30 recurring | booked |
|
||||
| 27255 | Shirley H. Davis | 15:30 recurring | booked |
|
||||
| W500K-8217 | Anna Rivera | 14:30 expansion | booked |
|
||||
| W500K-39010 | Jack K. Ramirez | 14:30 expansion | booked |
|
||||
| W500K-29571 | Thomas J. Lewis | 14:30 expansion | booked |
|
||||
| W500K-33852 | Brenda A. Cox | 14:30 expansion | booked |
|
||||
| W500K-28588 | Lisa O. Diaz | 14:30 expansion | booked |
|
||||
|
||||
## Discovered patterns (meta-index)
|
||||
|
||||
What the system identified across semantically-similar past fills as each event ran:
|
||||
|
||||
- **10:30 baseline_fill** (Receiving Clerk): —
|
||||
- **15:30 recurring** (Quality Tech): 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)
|
||||
- **14:30 expansion** (Machine Operator): Across 25 similar past playbooks (22 workers examined) · recurring certifications: OSHA-10 (45%) · archetype mostly: communicator · reliability median 0.82 (range 0.59–1.00)
|
||||
|
||||
## Narrative
|
||||
|
||||
- 2/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).
|
||||
- Dropped events: 10:30 baseline_fill.
|
||||
@@ -0,0 +1,103 @@
|
||||
[
|
||||
{
|
||||
"event": {
|
||||
"kind": "baseline_fill",
|
||||
"at": "10:30",
|
||||
"role": "Receiving Clerk",
|
||||
"count": 1,
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"shift_start": "10:30 AM"
|
||||
},
|
||||
"ok": false,
|
||||
"fills": [],
|
||||
"turns": 0,
|
||||
"duration_secs": 24.53,
|
||||
"error": "aborted — 3 consecutive drift flags",
|
||||
"gap_signals": [
|
||||
"drift_or_tool: aborted — 3 consecutive drift flags"
|
||||
]
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "recurring",
|
||||
"at": "15:30",
|
||||
"role": "Quality Tech",
|
||||
"count": 2,
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"shift_start": "15:30 AM"
|
||||
},
|
||||
"ok": true,
|
||||
"fills": [
|
||||
{
|
||||
"candidate_id": "11197",
|
||||
"name": "Fatima Parker"
|
||||
},
|
||||
{
|
||||
"candidate_id": "27255",
|
||||
"name": "Shirley H. Davis"
|
||||
}
|
||||
],
|
||||
"turns": 3,
|
||||
"duration_secs": 17.909,
|
||||
"gap_signals": [
|
||||
"double_book: undefined Shirley H. Davis already booked for 15:30",
|
||||
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
|
||||
],
|
||||
"sources_first_score": 0.6697097,
|
||||
"sources_last_score": 0.5636376,
|
||||
"pool_size": 657,
|
||||
"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)"
|
||||
},
|
||||
{
|
||||
"event": {
|
||||
"kind": "expansion",
|
||||
"at": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"count": 5,
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"shift_start": "14:30 AM"
|
||||
},
|
||||
"ok": true,
|
||||
"fills": [
|
||||
{
|
||||
"candidate_id": "W500K-8217",
|
||||
"name": "Anna Rivera"
|
||||
},
|
||||
{
|
||||
"candidate_id": "W500K-39010",
|
||||
"name": "Jack K. Ramirez"
|
||||
},
|
||||
{
|
||||
"candidate_id": "W500K-29571",
|
||||
"name": "Thomas J. Lewis"
|
||||
},
|
||||
{
|
||||
"candidate_id": "W500K-33852",
|
||||
"name": "Brenda A. Cox"
|
||||
},
|
||||
{
|
||||
"candidate_id": "W500K-28588",
|
||||
"name": "Lisa O. Diaz"
|
||||
}
|
||||
],
|
||||
"turns": 2,
|
||||
"duration_secs": 14.348,
|
||||
"gap_signals": [
|
||||
"double_book: undefined Anna Rivera already booked for 15:30",
|
||||
"double_book: undefined Jack K. Ramirez already booked for 15:30",
|
||||
"double_book: undefined Thomas J. Lewis already booked for 15:30",
|
||||
"double_book: undefined Brenda A. Cox already booked for 15:30",
|
||||
"double_book: undefined Lisa O. Diaz already booked for 15:30",
|
||||
"artifact: undefined is not an object (evaluating 'f.reason.slice')"
|
||||
],
|
||||
"sources_first_score": 0.69787174,
|
||||
"sources_last_score": 0.61822087,
|
||||
"pool_size": 600,
|
||||
"playbook_citations": [],
|
||||
"discovered_pattern": "Across 25 similar past playbooks (22 workers examined) · recurring certifications: OSHA-10 (45%) · archetype mostly: communicator · reliability median 0.82 (range 0.59–1.00)"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,58 @@
|
||||
[
|
||||
{
|
||||
"name": "Fatima Parker",
|
||||
"booked_for": "15:30",
|
||||
"role": "Quality Tech",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Shirley H. Davis",
|
||||
"booked_for": "15:30",
|
||||
"role": "Quality Tech",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Anna Rivera",
|
||||
"booked_for": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Jack K. Ramirez",
|
||||
"booked_for": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Thomas J. Lewis",
|
||||
"booked_for": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Brenda A. Cox",
|
||||
"booked_for": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
},
|
||||
{
|
||||
"name": "Lisa O. Diaz",
|
||||
"booked_for": "14:30",
|
||||
"role": "Machine Operator",
|
||||
"city": "Cleveland",
|
||||
"state": "OH",
|
||||
"status": "confirmed"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
# SMS drafts — Apex Warehouse, 2026-04-26
|
||||
Reference in New Issue
Block a user