Skip to content

Cold review of operational incident sensing

Record metadata
title: Cold review of operational incident sensing
status: resting
priority: 1
anchors: setup#13, setup#37, p61..p62
needs: shell
needs_owner:

Question

Does the operational incident mechanism introduced at c5f0823 preserve consequential failure evidence, make it available to other participants, and clear its pressure correctly, without imposing needless reporting, blocking safe departures or enlarging the custodian's authority? The owner has approved using this mechanism now and requested one high-priority independent stress test alongside its use; the review is not an introduction or adoption gate.

Why it matters

The swarm must be able to learn from operational failures that would otherwise disappear with archived conversations. A defective reporting mechanism could itself produce pressure, lose evidence, or turn housekeeping into supervision. This is a bounded meta-level review of the mechanism, not an investigation of every reported incident.

Leads

  • Read the exact implementation in tools/swarm.py (load_incidents, sense, ranked, suggest, brief, status), the incident format, and the departure and custody paragraphs in AGENTS.md and CLAUDE.md.
  • The implementation was inspected but not executed by its author. Reports on other branches are not sensed until integrated into the reader's checkout. Review receipts are separate from the original evidence. A tracked incident is not a repaired incident.
  • Related lines: session custody, commands as conditions, medium and authority. Do not reopen their broader questions in this review.

Where it stands

One cold review and fixture stress test done (pass of 28 November, claude-code). Verdict: works as intended for well-formed reports; needs two small sensing corrections, neither urgent and neither a reason to pause use. The lifecycle (report without a hold, grouping of independent occurrences, clearing by a valid receipt, refusal of malformed receipts, recurrence restoring pressure, originals untouched, pressure never drawn as an assignment) behaved as the README says in a disposable fixture. The defects: a malformed report leaves an illegible pressure that nothing can ever clear, because reports are immutable; and reports or receipts with the wrong name are silently unseen. Both need the tools hold. Harness behaviour (denied publication, custodian relay, archival) was read, not exercised. A cold reading (28 November, claude-code) re-ran the two defects against the code and confirmed both; the lifecycle cases 1–6 it checked by reading the code only. The mechanism is now in use: two merge-wrong-base reports (19:03Z, 19:12Z) are on the medium and sensed as one grouped incident pressure. Both sensor defects were then corrected in tools/swarm.py under the tools hold (pass of 28 November, 19:31Z) and checked in a fixture: a valid receipt now clears a malformed report's own format problems (an invalid receipt still leaves them), and strays() now names a non-.md file in incidents/ and a review-* file with no report beside it (which covers both an orphan receipt and a report misnamed review-*). A cold reading of that fix (28 November, claude-code) re-ran cases 7 and 8 in a fixture and confirmed both corrections, with no report or receipt on the medium newly flagged. The line's question is answered; only two cosmetic edges remain, neither losing evidence. Resting since a consolidation note of 28 November (about 21:00Z): all five reports on the medium then had valid receipts, no incident or illegible pressure came from incidents/, and neither cosmetic edge had been met in practice. Reopen if one is met, or if a new sensing failure is found.

Threads

  • One bounded cold review and stress test, at most one normal contribution. In a disposable local copy or fixture, test the lifecycle of a synthetic permission-denied report (including a worker that never acquired a hold), a second independent occurrence of the same kind, a valid review receipt, a malformed receipt, and a later recurrence. Verify grouped pressure in brief/status, clearing only when accounted for, preservation of original evidence, and that the pressure does not automatically assign work. Read the departure rules for denied publication, relay by a custodian and archival: check for deadlocks, reporting burden, permission bypass, and accidental research coordination; distinguish observed fixture results from untested harness behaviour. Check the stated cross-branch visibility limitation against the code, without building a new sensor. Deliver a compact verdict (works as intended / needs correction), evidence from the fixture and at most the smallest necessary corrections or follow-up threads. Record a pass and journal, release and depart. Do not edit production tools or protocol without their own holds, create real incident reports from test data, launch sessions, or turn this into a campaign. If no material defect is found, say so; the usual independent reading can check the result later. Do not treat the review's completion as a prerequisite for using the incident mechanism.

  • Let a valid receipt clear a malformed report's own format problems (needs tools). In load_incidents, the report's parse problems are appended before the receipt is consulted and are kept even when reviewed is true; since reports are never edited, the illegible pressure is permanent. Smallest fix: when the receipt is valid, drop the report's own problems (keep any receipt problems). Fixture case 7 in the pass reproduces it; the reading reproduced it independently.

  • Sense misnamed incident files (needs tools). incidents/*.txt (or any non-.md) and a report whose own name begins review- are skipped without a word; a receipt whose report does not exist (orphan, or a report renamed) is also silent. strays() already does this for lines/ and journal/; one more loop there would cover it.
  • Watch whether the mechanism is used at all. Answered by the reading: two well-formed reports landed within about three hours of c5f0823. At this pass, about 95 minutes after c5f0823, there were no reports on any of the remote branches. The two journal entries since then that mention refusals concern source access, rightly not incidents. A later reader with more history can say whether silence means no failures or under-reporting; do not build a sensor for it yet.

  • Read the 19:31Z fix cold. Re-run fixture cases 7 and 8 against load_incidents and the incidents/ loop in strays, and check that no existing well-formed report or receipt on the medium is newly flagged.

  • (Deferred, not answered; optional, cosmetic; needs tools.) A subdirectory in incidents/ is flagged with the message for a non-.md file ("is not read as an incident report"), which is true but names the wrong remedy; and a receipt for a report misnamed review-x.md (that is, review-review-x.md) is itself silent, though the misnamed report is flagged, so the chain is still visible at its root. Fix only if either is met in practice.

Passes

2026-11-28 | chatgpt | note

The owner clarified: “we will use this, but we should also try to stress test it as well (not block its intro)”. The P1 review therefore runs alongside ordinary use, not as an approval gate. Its scope remains one contribution.

2026-11-28 | claude-code | pass

A cold review of the incident mechanism of c5f0823, read from tools/swarm.py (parse_marked, load_incidents, sense, RANK, ranked, suggest, cmd_check), incidents/README.md, journal/README.md and the departure and custody paragraphs of AGENTS.md and CLAUDE.md, and tested in a disposable fixture: a git archive of this branch at its current head, unpacked in a scratch directory with its own empty git, and the tool's own load_state, sense, ranked and suggest called against it, plus status --stdout --offline. No synthetic file reached the medium. What follows is observed in the fixture unless marked as read only.

The lifecycle, case by case (observed).

  1. A permission-denied report written with no hold produced one incident pressure, take=False, ranked first after owner (RANK index 1). suggest never drew it. It appeared in status under the same wording, which ends "Not an assignment."
  2. A second, independent report of the same kind grouped into the same pressure: "2 unreviewed operational report(s)", both names listed (up to three are named, then "...").
  3. A valid receipt (review-<name>, report: matching, disposition: tracked, non-empty body) removed that report from the count; the other kept the pressure alive.
  4. Three malformed receipts for the second report were each refused: an unknown disposition (fixed), an empty body, and a report: field naming another file. Each left the report unreviewed and added an illegible pressure naming the receipt. A valid transient receipt then cleared the pressure completely.
  5. A later report of the same kind brought the pressure back with a count of one: the earlier receipts did not absorb it. Recurrence is visible, as the README promises.
  6. The original reports were unchanged throughout; a receipt is a separate file, so evidence and its review never overwrite each other.

So for well-formed reports the mechanism does what the README says: no hold to report, grouping by kind, clearing only when a valid receipt accounts for a report, recurrence restored, and no assignment.

Two defects (observed).

  • A malformed report can never stop being illegible. A report with no field block (case 7) gave three illegible pressures (no block, invalid kind, missing operation) and counted as kind unclassified. A valid receipt cleared its incident pressure but not the three illegible ones, because load_incidents appends the report's parse problems before looking at the receipt and keeps them regardless. Since reports "are never edited or deleted", nothing can relieve those pressures, against the rule that every pressure "disappears when that is done". The smallest fix is to drop the report's own problems once a valid receipt exists. It needs the tools hold, so it is left as a thread.
  • Misnamed files are silently unseen. A report saved as .txt, a report whose own name begins review-, and a receipt whose report does not exist (case 8: an orphan, as a renamed report would leave) produced nothing at all. The file stays in git, so nothing is destroyed; it is simply never sensed. strays() already warns about misplaced files in lines/ and journal/; the same few lines for incidents/ would close this. Left as a thread.

Not a defect, noted. kind is free text; permission-denied and permission-refused would form two groups. The README already asks for the same kind "where possible", and a reviewer can mark one duplicate. Two reviewers writing a receipt for the same report make the same filename; the second push meets an add/add conflict, which settles it as a hold would. cmd_check does not read incidents at all (its five invariants are texts, the unpushed journal, identity and holds), so a malformed report or receipt cannot block a merge or a departure (read, and consistent with the fixture).

Cross-branch visibility (read, then observed). load_incidents reads ROOT / "incidents" only, the working checkout; holds, by contrast, are read across branches (brief reported "holds read on 14 branch(es)"). The README's statement that reports on other branches are seen only once integrated is therefore accurate. Listing incidents/ on every remote branch after a fetch found no report on any of them: at this review, about 95 minutes after c5f0823, the mechanism had not yet been used. The two journal entries since then that mention refusals concern source access, which is research, not an operational incident. Whether silence means no failures or under-reporting is a question for later, with more history.

Departure, relay and archive rules (read only; harness not exercised). No deadlock found. A worker whose publication is refused puts the sanitised report in its final message as incidents: unpersisted; the custodian may relay it only by a route it is already permitted to use, saying it was relayed; if that also fails, the session is left unarchived and the exception reported, inside the two-hour cleanup bound of CLAUDE.md. That can leave a session open but never loops. Burden on a worker with nothing to report is one phrase, incidents: none. The rules forbid retrying a denied command or seeking permission to report, and the custodian is told not to trawl transcripts or diagnose, so the relay cannot turn into supervision or research collection. What none of this tests is whether a cloud custodian can actually read a departed sibling's final message: that is harness behaviour and remains untested.

Verdict. Works as intended for well-formed reports; needs two small corrections in the sensor (both threads above, both under tools). Neither is a reason to pause reporting.

2026-11-28 | claude-code | reading

A targeted cold reading of the pass above, from tools/swarm.py at this branch's head (load_incidents, lines 502–528; the incident part of sense, 591–603; strays, 531–555), incidents/README.md, and a disposable fixture (a git archive of the head in a scratch directory, with load_incidents called there). Scope: the two claimed defects and the cross-branch claim, which are what could change the verdict; cases 1–6 were checked against the code by reading, not re-run.

Defect 1 holds (observed). A report with no field block and a valid tracked receipt came back reviewed: True with its three problems intact; sense adds an illegible pressure for every entry in problems before it tests reviewed (593–594), so the pressure survives review. The README says reports "are never edited or deleted", so nothing can relieve it. One refinement the pass did not draw: an invalid receipt is not stuck in the same way, since the README forbids editing reports, not receipts, and a corrected receipt clears it. The proposed fix (drop the report's own problems once the receipt is valid) is still the smallest.

Defect 2 holds (observed). A well-formed report saved as .txt and a receipt naming a non-existent report both produced nothing: the glob is *.md and receipts are only ever looked up from a report (517), never enumerated. strays has no incidents/ loop.

Cross-branch claim holds (read). load_incidents reads ROOT / "incidents" alone.

What changed since the pass (observed). The "is it used at all?" thread has its answer: two merge-wrong-base reports, both well formed, are now on the medium and are grouped by this fixture and by brief into one pressure. That thread is ticked. Whether those two are accounted for is ordinary incident review, outside this line.

Unchecked. Re-running cases 1–6; the harness's relay and archival behaviour. Verdict unchanged: works for well-formed reports; two small tools corrections outstanding.

2026-11-28 | claude-code | pass

Both sensor corrections made, under the tools hold, in tools/swarm.py.

load_incidents. When the receipt is valid, the report's own parse problems are discarded (problems = []); when it is not, they are kept and the invalid-receipt problem is added, as before. A receipt is still the only thing that can account for a report, so this widens nothing: it only lets the one available remedy relieve the pressure it was meant to relieve.

strays. A new loop over incidents/ names two cases the glob used to pass over in silence: any file other than README.md without the .md suffix, and a review-<x> file whose <x> does not exist. The second covers an orphan or mistyped receipt and also a report whose own name begins review-, since such a report is read as a receipt and has no report beside it; one message says both. Dot-files are skipped, as in lines/.

Fixture (observed). In a scratch copy of the tracked tree with the new tool: a report with no field block plus a valid tracked receipt produced no pressure at all (previously three illegible); a second blockless report with a receipt of disposition fixed kept its three problems, the invalid-receipt problem and an unclassified incident pressure; zz-note.txt and an orphan review-gone.md each gave one illegible naming the file. On the real checkout check is ok and brief shows no new illegible for incidents/, so no report or receipt already on the medium is affected.

Not done. Kind synonyms (permission-denied against permission-refused) remain a reviewer's matter, as the first pass judged. Two unreviewed reports on the medium (failed-persistence, permission-denied) are ordinary incident review, outside this line.

2026-11-28 | claude-code | reading

A targeted cold reading of the 19:31Z correction, from tools/swarm.py at this branch's head (load_incidents, 593–621; the incidents/ loop of strays, 636–643) and a disposable fixture (a git archive of the head in a scratch directory with its own empty git; load_incidents and strays called there). Scope: the two corrections and the claim that nothing on the medium is newly flagged; the earlier lifecycle cases 1–6 were not re-run.

Case 7 holds (observed). A report with no field block and a valid tracked receipt came back reviewed: True, problems: [], so sense adds nothing for it. The same with a receipt of disposition fixed kept the three format problems plus "invalid review receipt", unreviewed. The discard happens only on the branch where the receipt is valid (line 616), and a receipt with its own parse errors is never valid, so no receipt problem can be swallowed.

Case 8 holds (observed). zz-note.txt and an orphan review-gone.md each produced one stray naming the file; a report misnamed review-x.md was flagged as a receipt without its report, as the pass says.

Two edges, neither losing evidence (observed). A subdirectory incidents/zz-dir is flagged with the non-.md message, accurate but not the right remedy. A receipt review-review-x.md for the misnamed review-x.md is silent, because its target exists; the misnamed report is flagged, so the chain is visible at its root. Left as one optional thread.

On the medium (observed). In the real checkout, strays() returns nothing under incidents/ and no incident entry has problems; check is ok. The two merge-wrong-base reports are reviewed; three later reports (corrupted-write, failed-persistence, permission-denied) are well formed and unreviewed, which is ordinary incident review outside this line.

Verdict. The correction does what it claims. The line's question is answered.

2026-11-28 | claude-code | note

Consolidation under sprawl pressure, from the line's account and the current medium. Checked (observed): tools/swarm.py strays, lines 636–643, is as the last reading describes, so both cosmetic edges still exist; incidents/ holds five reports, each with a receipt (dispositions tracked ×3, resolved, duplicate), no subdirectory and no review-review-* file, so neither edge has been met. The review asked one bounded question, and two passes and two readings have answered it: the mechanism works, and its two real defects are corrected and read cold. The one open thread is deferred, not answered: its own wording asks for a fix only if an edge is met in practice. Disposition: resting, so that the line stops drawing routine attention. No evidence, pass or thread is removed. Reopen on a met edge or a new sensing failure.