Repository navigation
Conversation
…annot bind its HTTP port
… reporting running (#981)
Decision takenQuestion. After launching the daemon, how long does Options.
Taken: 2. It is closest to today, because the CLI's start is already bounded ( Reverting means removing the deadline from the wait loop and its test. Written by an agent. |
Decision takenQuestion. During Options.
Taken: 2. It follows the maintainer's #981 decision: a daemon that ends while starting reports its own error. #710's test now expects option 2. Reverting means restoring #710's pass-through in Written by an agent. |
…t; the fixture trusts the exit code (#981)
Review ledgerRound 1: 8ae75fd {
"findings": [
{
"id": "R1",
"role": "code",
"class": "error on stopping daemon hides start cause",
"outcome": "fixed",
"path": "src/cli/environment.ts",
"round": "1",
"fix": "ab584d8de4224bad5427fa7886043aeb6bbcb0f2"
},
{
"id": "R2",
"role": "code",
"class": "testing 10",
"outcome": "fixed",
"path": "src/cli/index.test.ts",
"round": "1",
"fix": "ab584d8de4224bad5427fa7886043aeb6bbcb0f2"
},
{
"id": "R3",
"role": "code",
"class": "documentation 9",
"outcome": "fixed",
"path": "website/src/content/docs/docs/reference/errors.mdx",
"round": "1",
"fix": "ab584d8de4224bad5427fa7886043aeb6bbcb0f2"
},
{
"id": "R4",
"role": "spec",
"class": "assumption decides unspecified user-visible behaviour",
"outcome": "intentional",
"path": "src/cli/environment.ts",
"round": "1"
},
{
"id": "R5",
"role": "spec",
"class": "testing 7",
"outcome": "duplicate",
"canonicalId": "R4",
"path": "src/cli/index.test.ts",
"round": "1"
},
{
"id": "R6",
"role": "code",
"class": "test premise made false by PR",
"outcome": "fixed",
"path": "e2e/console/daemon-start-failure.spec.ts",
"round": "2",
"fix": "af921a62557af3e7a211321d4064290b6e9e7f21"
},
{
"id": "R7",
"role": "code",
"class": "testing 3",
"outcome": "nonblocking",
"path": "src/cli/environment.ts",
"round": "fix-check"
}
]
}Written by an agent. |
Review notesNot blocking and not verified. Each is one reviewer's claim.
Written by an agent. |
Closes #981
Status
Implement: done Review: fix-check passed, 0 open Hardware: n/a Gate: running
Next: gate
Done when:
running, emits nodaemon.started, and stops withhttp-start-failed(src/daemon/main.test.ts, "fails a start whose HTTP listener cannot bind before it reports running"), for both worker and gateway, with the bind held until convergence; mutation-probed in audit and review.simlock daemon starton a daemon that cannot bind printsDAEMON_STARTUP_FAILEDwith the daemon's own error, exit 1, neverDaemon running(e2e/start-refusal.test.tsande2e/console/daemon-start-failure.spec.ts, run green at af921a6).e2e/helpers/env.ts,http-daemon.ts,docs/internal/flows/startup.md,src/daemon/AGENTS.md,cli.mdx,errors.mdx); the stale-ref sweep was clean and the claims lens checked them.Assumptions
daemon startwaits forstartingto end — 90 s (STARTUP_READ_LIMIT_MS60 s plus 30 s), thenDAEMON_STARTUP_FAILED("still starting") with the daemon left running; bounded above the daemon's own startup read so a slow but healthy start is not failed, and a stuck one cannot hang the CLI (decided in delivery, pending the maintainer).Review
Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 4 blocking, 4 fixed, 1 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 31.3M.
Runs: 14. Cost USD: 5.7651. Agent seconds: 3299.
Assessment: complete
Rejected:
untilStartedguard infailStoppingStarthas no test of its own — [nonblocking] without it, only the error code changes, in a rare race.Written by an agent.