Repository navigation
Closed
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/testTest coverage, test infrastructure, or test-only fixesTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Problem
pm-stack/ready-for-agent/test-install.sh — the regression harness for install.sh — fails on current main at its very first case, so none of its six install scenarios can run.
Evidence (verified 2026-11-04, origin/main fd961f654)
Run on the laptop, twice, same result:
$ bash pm-stack/ready-for-agent/test-install.sh
installing ready-for-agent@1.1.0 (found: 1.0.0)
waiting for the harness UI...
ready-for-agent@1.1.0 is running after restart: http://127.0.0.1:6056
/tmp/tmp.XXX/package-change-active/deploy/install.sh: line 192: ./apply-config.sh: No such file or directory
FAIL: package-change-active: installer exited unsuccessfully
exit=1
Root cause, from the sources:
pm-stack/ready-for-agent/install.sh:192runs./apply-config.shunconditionally at the end of every verified-serving success path (added by the ready-for-agent: declare its configuration in-repo and surface dispatch state in the aggregator #1203 declarative-config change, commitdcea7fa21).pm-stack/ready-for-agent/test-install.shbuilds each case's deploy dir by copying only two files into it:install.shandsystemd/ready-for-agent.service. It never copiesapply-config.sh(orconfig.json), and provides no stub for it — so the success path the harness exists to exercise always dies at line 192.install.sh:31doescd "$(dirname "$0")", so the./call resolves inside the copied deploy dir, not the repo checkout.- The companion harness
test-apply-config.shpasses on the same tree, soapply-config.shitself is not the failure. - No PR CI covers
pm-stack/**(already tracked as ci: no pull_request workflow covers pm-stack/** — projector/aggregator changes merge with zero PR CI #2936), which is how this stayed red unnoticed.
Why it matters
test-install.sh is the only automated coverage for the installer's trickiest behavior — the #4839 pending-restart marker, restart-vs-start-vs-unchanged verification, and the clone-fail retry. With the harness red at case 1, all of that coverage is inert, and future installer changes have no working safety net.
Acceptance criteria
-
bash pm-stack/ready-for-agent/test-install.shpasses all six cases (package-change-active,unit-change-active,unchanged-active,inactive,first-install,clone-fail-retry) on currentmain. - The fix keeps the ready-for-agent: declare its configuration in-repo and surface dispatch state in the aggregator #1203 behavior covered: the harness asserts
apply-config.shis actually invoked on a successful install (e.g. the fixture copies the real script plusconfig.jsonwith its dependencies stubbed, or provides a recording stub) — simply deleting or skipping the call ininstall.shdoes not count. -
bash pm-stack/ready-for-agent/test-apply-config.shstill passes.
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codeeffort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/testTest coverage, test infrastructure, or test-only fixesTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobtask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
dezren39 commentedon Nov 4, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 4, 2026
🤖 Agent note · done
Triage verdict (2026-11-04T10:55Z): STILL LIVE on current main (8854bf7). Fresh
gh apireads confirmpm-stack/ready-for-agent/install.shstill runs./apply-config.shunconditionally on the verified-serving success path, andpm-stack/ready-for-agent/test-install.shstill copies onlyinstall.shandsystemd/ready-for-agent.serviceinto each case deploy dir — noapply-config.shcopy or stub. No hard-stop labels on issue #5368.Routing: follow-up small_fix task 9387 enqueued in queue repo-health-code-pilot (dedupe
repo-health:v1:fix:developing-today/code:issue:5368, packetpacket-5368-fix.json): fix the harness to provide apply-config.sh (real script + config.json with stubbed deps, or a recording stub) and assert it ran; do not delete/skip the call in install.sh. Labels normalized: status/needs-triage removed, effort/s added; kind/test, task/small-fix, priority/normal stand.dezren39 commentedon Nov 4, 2026
🤖 Agent note · handed off
184 remaining items
dezren39 commentedon Nov 7, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 10, 2026
🤖 Agent note · parked
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done
6d03b829d28ddf19035b892856ec97e891de635e; merged PR fix(pm-stack): deploy-install-smoke — aggregator unit via logical parent, ready fixture apply-config stub (#7680) #8110 supplies a recordingapply-config.shstub, asserted for each success scenario including clone-fail-retry.bash pm-stack/ready-for-agent/test-install.shpassed all six named cases;bash pm-stack/ready-for-agent/test-apply-config.shpassed. Python 3 was explicitly added to PATH: the initial restricted environment lacked it and caused clone-fail-retry to fail for environmental reasons. Closing as completed; no duplicate fix packet needed.dezren39 commentedon Nov 13, 2026
agent-note:v1
Agent: repo-worker-code / any-a
state: done (already_done)
issue: #5368
task: 9387
Verified already fixed: PR #8110 (merged 2026-11-10, merge commit 68dda49) supplies the recording apply-config.sh stub the harness was missing, and issue #5368 is CLOSED. Re-verified fresh on origin/main af5bffb in a clean laptop worktree: bash pm-stack/ready-for-agent/test-install.sh — all six cases PASS (package-change-active, unit-change-active, unchanged-active, inactive, first-install, clone-fail-retry); bash pm-stack/ready-for-agent/test-apply-config.sh — PASS. Task 9387 completes as already_done; the duplicate fix tasks for this issue (10467, 13099) already reached the same conclusion.