rehearsal healer: broker/* (and the other deployed-service trees) join HEAL_PRODUCT_SURFACE_GLOBS — rule 3 must be law in heal_rails, not advice in the prompt #1188
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The defect (phase-7 first drive, 2026-09-03)
The healer refused the #1178 red correctly under rule 3 (the fix lives in
broker/internal/broker/provider_do.go, the droplet-create path — what a deploy does). But the refusal came from the prompt's judgement: IDSS's mechanical surface declaration in.sandcastle/report-guard.shisinternal/* app/src/*, so a heal committing intobroker/would have PASSEDheal_railsand been pushed. Phase 5's lesson (GOTCHAS #115) was that rails, not prompts, are what the healer is measured against.The change
HEAL_PRODUCT_SURFACE_GLOBS='internal/* app/src/* broker/* agent/* control-plane/*'— the three deployed-binary trees (the broker at broker.idss.nz, the agent served pinned from get.idss.nz, the control-plane entrypoints) join the control plane and dashboard. Tests/fixtures under them stay exempt (the rail's own exemption). Pinned red-first by a new idss-owned offline testscripts/tests/report-guard-surface-test.sh: a healer commit touchingbroker/internal/x.gois refused with reasonproduct-behaviour surface;scripts/x.shstill heals.Origin: the phase-7 first-11-hours report, change 3. Claimed by the reporting session (agent-working).
Ruled by agent under ADR 0174 — veto anytime
Ruling:
ready-for-session(categoryenhancementalready present).Why this state. The change edits
.sandcastle/report-guard.sh— theHEAL_PRODUCT_SURFACE_GLOBSdeclaration — which lives under a protected path (PROTECTED_PATHS=".sandcastle .forgejo",.sandcastle/swarm-policy.sh:49). Rule 9 of.sandcastle/prompt-enrichments/rules.mdbars a swarm worker from touching a protected path (the before/after fingerprint of #445 would refuse the commit) and routes such machinery changes toready-for-session— an interactive session's standing. The new offline testscripts/tests/report-guard-surface-test.shis itself swarm-safe, but the guarded edit is not, so the whole ticket is session work. It is notready-for-agent: the swarm queue reads onlyready-for-agentand would be refused at the protected-path gate.Why a two-way door. A state label is revertible by a later label change; nothing is destroyed and no security posture widens. The routing is provable by the protected-path predicate itself (
.sandcastle/∈PROTECTED_PATHS) and, once written, byreport-guard-surface-test.sh. Not on the one-way-door list.Spec quality. Fully specified — exact glob change, red-first offline test named, the rail's tests/fixtures exemption preserved. A session can take it directly.
Note: already
agent-working(self-claimed by the filing session); this backfills the state role beneath that claim. The swarm ignoresagent-workingtickets regardless, so no double-work.Close report — landed
04aa72dfon main (Ruled by session under ADR 0174 — veto anytime). Two-way: labels, shell libs and a rail step after a successful install, all revertible by one commit; no spend, no posture change..sandcastle/report-guard.sh:HEAL_PRODUCT_SURFACE_GLOBS='internal/* app/src/* broker/* agent/* control-plane/*'— the three deployed-binary trees join the declaration; the comment names the #1178 lesson (refusal by prompt alone, rail would have passed a broker heal).Acceptance (offline,
scripts/tests/report-guard-surface-test.sh, 4 cases): sources report-guard.sh the way the reporter does and asserts all five globs; a healer commit intobroker/internal/broker/provider_do.gois REFUSED withproduct-behaviour surface, non-swarmable, reverted (this case was red before the change — the rail passed it);agent/cmd/agent/main.goandcontrol-plane/cmd/control-plane/main.gorefused likewise; abroker/*_test.goandscripts/lib/x.shstill heal (exemption intact, declaration not over-wide). Vendoredrehearsal-heal-lib-test(26) unchanged green.