Skip to content

#44 keep marker: start-time identity on the two-read check + a true total close budget (follow-up to PR #66) #67

Closed

Description

@nachumi-a2zoperations

Follow-up to PR #66 (Refs #44, stage 3 piece (b), keep marker, observe only). Fable-3's delta read of #66 at af41fdc passed with two should-fix (note ~/nacho-run/fable3-orca-66-delta.md, md5 adb015ae). The Reviewer PASSed af41fdc with 0 blockers. Per the lane rule these go into ONE follow-up issue, with no head change on #66.

  1. S1, process identity in the two-read check. On macOS the marker read is ps -wwo command= -p <pid>, then ps -wwE -o command= -p <pid>, matching only after the plain line. The comparison is a character prefix with no start-time identity, so (a) a command line that changed into an extension of the old one, or (b) a reused pid with the same command line, reads through as true. That errs safe today (observe only, and a true only ever keeps a process), but it must be fixed before any stage acts on the marker. Fix: read lstart= on both reads and compare it with the entry's startedAt, with a row for each case. Otherwise, reword the limit in code, doc and body.
  2. S2, the close budget. MARKER_CLOSE_BUDGET_MS (5 s) is checked only before each pid, so the worst case is about 9 s (5 s plus two 2 s reads), not "5 s total". Fix: bound the whole close, or state the real worst case in code and doc, with a row.

Done when: a PR (Fixes this issue) on blowzer/fork-only with failing-first rows, Node 24 (PATH=$HOME/.local/node/node-v24.22.1-darwin-arm64/bin:$PATH per run), ci/local + ci/issue-link, a Fable-3 read, and a Reviewer PASS. This must land before any #44 stage uses the marker to decide a kill.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions