You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: cover PID collisions in harness ancestry detection - #6484
The developer asked to re-run validation on three open upstream pull requests on kunchenguid/firstmate whose earlier no-mistakes runs were cancelled when the local no-mistakes was upgraded to v1.89.0 on 2026-10-07 (the daemon restart cancelled all open runs, which now show as failed):
test: cover PID collisions in harness ancestry detection #6484 (test: cover dash-leading process-name PID collisions; head branch fm/upstream-pr-6456; UNSTABLE): the test's fake ps labels PID 5252 as -codex for every caller, although only the separate fm_harness_pid_alive 5252 liveness probe needs that label. When the OS assigns PID 5252 to a real ancestor of the test process, the ancestry walk selects it rather than the expected PID 4242. Scope the fake -codex label to the liveness probe and assert a forced PID-collision case, as the existing pull request does.
Each pull request should end with a fresh passing no-mistakes run whose attestation names its current head and green checks.
What Changed
Scope the fake -codex process label to liveness probes while modeling PID 5252 as an ordinary ancestor during ancestry walks.
Add logging and assertions for the forced PID-collision case to ensure PID 4242 is selected.
Risk Assessment
✅ Low: The change is a narrowly scoped test-fixture strengthening that logs and verifies the forced PID-5252 ancestry query without changing production behavior.
Testing
Ran the focused session-lock identity scenarios against the real bin scripts with disposable fake ps data, captured reviewer-visible output, and confirmed both the liveness and forced-collision cases pass. The broader focused suite completed once; a separate rerun timed out in an unrelated later test, so that intermittent timeout is recorded as a warning.
Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario
Result
Live
Evidence
Dash-leading -codex liveness probe
✅ pass
live
bash tests/.fm-secondmate-harness.identity.test.sh output in fm-secondmate-identity-target.log
Forced PID 5252 ancestry collision
✅ pass
live
bash tests/.fm-secondmate-harness.identity.test.sh output in fm-secondmate-identity-target.log
⚠️tests/fm-secondmate-harness.test.sh - The broader fm-secondmate harness script completed once, but a separate rerun exceeded the 300-second command limit while stalled after unrelated B17; the isolated identity regression completed successfully.
Live validation: ✅ go - 2 of 2 scenarios driven live against the product
Scenario
Result
Live
Evidence
Dash-leading -codex liveness probe
✅ pass
live
bash tests/.fm-secondmate-harness.identity.test.sh output in fm-secondmate-identity-target.log
Forced PID 5252 ancestry collision
✅ pass
live
bash tests/.fm-secondmate-harness.identity.test.sh output in fm-secondmate-identity-target.log
Intent
The developer asked to re-run validation on three open upstream pull requests on kunchenguid/firstmate whose earlier no-mistakes runs were cancelled when the local no-mistakes was upgraded to v1.89.0 on 2026-10-07 (the daemon restart cancelled all open runs, which now show as failed):
Each pull request should end with a fresh passing no-mistakes run whose attestation names its current head and green checks.
What Changed
-codexprocess label to liveness probes while modeling PID 5252 as an ordinary ancestor during ancestry walks.Risk Assessment
✅ Low: The change is a narrowly scoped test-fixture strengthening that logs and verifies the forced PID-5252 ancestry query without changing production behavior.
Testing
Ran the focused session-lock identity scenarios against the real bin scripts with disposable fake ps data, captured reviewer-visible output, and confirmed both the liveness and forced-collision cases pass. The broader focused suite completed once; a separate rerun timed out in an unrelated later test, so that intermittent timeout is recorded as a warning.
bash tests/.fm-secondmate-harness.identity.test.shoutput infm-secondmate-identity-target.logbash tests/.fm-secondmate-harness.identity.test.shoutput infm-secondmate-identity-target.logEvidence: Targeted session-lock identity regression output
Source: Targeted session-lock identity regression output
Pipeline
Updates from git push no-mistakes
✅ **Intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
tests/fm-secondmate-harness.test.sh- The broader fm-secondmate harness script completed once, but a separate rerun exceeded the 300-second command limit while stalled after unrelated B17; the isolated identity regression completed successfully.bash tests/.fm-secondmate-harness.identity.test.shoutput infm-secondmate-identity-target.logbash tests/.fm-secondmate-harness.identity.test.shoutput infm-secondmate-identity-target.logbash tests/fm-secondmate-harness.test.sh(completed successfully once)bash tests/.fm-secondmate-harness.identity.test.sh(isolated targeted identity regression)git status --short✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.