Repository navigation
Conversation
|
|
Speaking as Kun's firstmate: First stamp this fetch vs tip HEAD contract-class: restore — landed path should keep durable deliverables, not generated launch scaffolds; force/held successor-read path preserved as already specified. VISION: scripts own mechanics; unlanded/held refusal path strengthened; no new captain-facing surface. Blockers (author): NM |
|
Speaking as Kun's firstmate: whole thread re-read (body + prior stamp + Greptile P1s). Diff vs main HEAD contract-class: restore — landed teardown should keep durable deliverables, not generated launch scaffolds; force/held successor-read path preserved as already specified. VISION (per-rule)
Waiting on author for: (1) no-mistakes attest, (2) serial-3 fix or green re-run, (3) address Greptile P1 lock/spawn races. No Firstmate flag. |
4a41ee8 to
0fd12c6
Compare
|
Speaking as Kun's firstmate: re-stamp after new head Attestation: MISSING. NM FAILURE. Lint 1 FAILURE ( contract-class: restore — landed teardown should drop generated launch scaffolds while keeping durable deliverables; force/held successor-read path preserved. VISION (per-rule)
Waiting on you: attestation via |
A landed ship or scout close left brief.md and launch-brief.md in the task data directory. Teardown now removes those generated launch inputs, along with ship instructions and render temps, and keeps the report and other durable records. A forced discard and a captain-held retain still leave the briefs so a later spawn of the same id can read them. Co-authored-by: AnPod <[email protected]>
A manual backlog never records the held-task retain, so landed teardown was deleting brief.md even while that hold was still open. Ask the same open question at removal time and keep the briefs unless the read proves the item is not held. Co-authored-by: AnPod <[email protected]>
Take the per-task spawn lock (try-acquire, never wait) before removing generated launch inputs so a concurrent fresh spawn keeps its brief.md and render temps; a busy lock leaves the inputs with a warning and teardown still succeeds. Enumerate the render-temp sweep into a manifest so find's exit status is checked, and keep the task record for retry when enumeration or removal fails.
Greptile P1s on kunchenguid#6102: take .spawn-$ID.lock before the meta lock and hold it through brief cleanup and record removal. Contention or unverifiable acquisition refuses teardown so inputs and metadata remain for retry, instead of racing a same-id spawn or skipping cleanup.
The landed-teardown brief cleanup looked up captain holds before checking that the task directory still existed, so a relay-disabled unmarked teardown invoked tasks-axi (tests/fm-public-followup.test.sh "relay-disabled unmarked teardown must not invoke tasks-axi"). Check for the directory first and cover the no-directory case.
0fd12c6 to
cfc956d
Compare
|
Speaking as Kun's firstmate: re-stamp for the new head New commit: Gates on this head:
contract-class: restore (unchanged). Landed teardown should drop generated launch inputs and keep durable deliverables. The force and held paths that a successor spawn reads from stay as specified. VISION (per rule): unchanged. One captain/one interface, authority explicit, scripts own the mechanics (exact teardown file policy), restart is a non-event (spawn lock held through cleanup), delegation with a spine (held and unlanded work kept), fleet outlives any vendor, and scope all align. What unblocks it: fix the serial-5 remote-retirement/backlog-handoff case, then run |
Landed teardown of a ship or scout now removes generated launch inputs from
data/<id>/:brief.md,launch-brief.md,ship-instructions.md, and their in-progress render temps.report.md,contributions.json, and any other durable task file stay.A
--forcediscard and a held-task retain still leave the briefs, because a later spawn of that same id readsbrief.md. A manual backlog does not record that retain, so teardown asks the same open question and keeps the briefs unless the read proves the item is not held.Fixes #5290.
Test plan
tests/fm-teardown.test.shcovers landed removal, a refused teardown,--force, a held retain, a manual backlog with and without a hold, and scout report retentionbin/fm-lint.sh bin/fm-teardown.sh tests/fm-teardown.test.sh