GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies · Issue #5421 · developing-today/code

fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421

New issue
Copy link
New issue
Copy link
Closed
#5467
Closed
fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies#5421
#5467
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Nov 4, 2026
Issue body actions

Finding

pm-stack/ready-for-agent/apply-config.sh (added by PR #3311, for #1203) decides dry-run mode with Python truthiness on the raw environment string:

  • apply-config.sh:28 — export DRY_RUN="${DRY_RUN:-}"
  • apply-config.sh:38 — dry_run = bool(os.environ.get("DRY_RUN"))

bool("0") and bool("false") are True in Python, so DRY_RUN=0 ./apply-config.sh — or an ambient DRY_RUN=false in the caller's environment — runs as a dry run: every mutation becomes a DRY-RUN would ... print, the script exits 0, and the final line reads ready-for-agent config applied (dry run). Nothing is registered, configured, or unpaused, and nothing fails.

This matters because the same PR wired ./apply-config.sh into pm-stack/ready-for-agent/install.sh to run on every install run after the harness is verified serving. An operator or unit environment that carries a conventional false-y DRY_RUN=0 therefore silently defeats the declarative config (#1203) forever: the harness settings (including the fleet's mergePolicy: OFF human-merge posture) never converge, with a success exit and no error anywhere.

Verified live on current main (991bb49, 2026-11-04): lines 28 and 38 above are unchanged from the PR. The PR's own test, pm-stack/ready-for-agent/test-apply-config.sh, covers DRY_RUN=1 (mutates nothing) and unset (applies) only — no false-y value is pinned.

Evidence

  • Source PR: feat(pm-stack): declarative ready-for-agent config + aggregator dispatch source (#1203) #3311 feat(pm-stack): declarative ready-for-agent config + aggregator dispatch source (#1203), merged 8ee2e1c; apply-config.sh introduced in commit dcea7fa.
  • pm-stack/ready-for-agent/apply-config.sh:38 on main: dry_run = bool(os.environ.get("DRY_RUN")).
  • Contrast with the fleet's dry-run semantics findings in the dangerous direction (sync-models: unrecognized arguments are silently ignored — a typo'd --dry-rnu rewrites the live OpenCode config in place (and reloads opencode) #3297, github-backup(worker deploy): unrecognized arguments are silently ignored — a typo'd --dry-rnu performs a real deploy (upload + secret reset) #3287): there an unrecognised flag meant a real mutation; here a recognised false-y value silently means no mutation, reported as success.

Acceptance criteria

  • Only an explicit truthy value (1, and if supported true) enables dry-run; 0, false, no, empty, and unset all apply for real (case-insensitive where applicable).
  • test-apply-config.sh gains a case proving a false-y DRY_RUN value (e.g. DRY_RUN=0) actually sends mutations to the stub harness.
  • The script header documents the accepted dry-run values.
  • Existing test cases (dry-run mutates nothing; first apply registers/configures/unpauses; second apply is a no-op) still pass.

Found by the pr-diff-review job reviewing PR #3311; triage first against current main before fixing.

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 4, 2026
  2. developing-today commented on Nov 4, 2026

    @developing-today
    developing-todayBot
    on Nov 4, 2026 – with developing.today
    Contributor
    More actions

    CODE-1315

  3. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 4, 2026
  4. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: pr-diff-review job
    • Session / ID: cron job pr-diff-review, run 2026-11-04T05:24:07-06:00
    • Found via: filed this run
    • Task: Filed this issue from reviewing PR feat(pm-stack): declarative ready-for-agent config + aggregator dispatch source (#1203) #3311 (merged 8ee2e1c) — apply-config.sh:38 decides dry-run via bool(os.environ.get("DRY_RUN")), so DRY_RUN=0/false previews instead of applying, exits 0, and install.sh's every-run apply silently never converges the harness config. Verified unchanged on current main 991bb49 this run; the PR's test covers DRY_RUN=1 and unset only.
    • Expectation: effort s — triage verifies against current main, then the fix pins the accepted dry-run values (1/true only) plus a false-y-value test case in test-apply-config.sh. Done when DRY_RUN=0 actually mutates the stub harness in tests and the header documents the values.
    • Links: triage packet enqueued to queue repo-health-code-pilot this run; evidence in the issue body.
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 4, 2026
  6. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged

    • Agent: queue worker (repo-worker-code), lane code-t
    • Session / ID: task 9432 (repo-health-code-pilot, triage)
    • Found via: queue claim
    • Task: Triage issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421 — apply-config.sh DRY_RUN truthiness
    • Verdict: CONFIRMED LIVE on current main (fef03dd). pm-stack/ready-for-agent/apply-config.sh still computes dry_run = bool(os.environ.get("DRY_RUN")) in its embedded Python, so DRY_RUN=0 and DRY_RUN=false are truthy: the script prints mutations instead of sending them, exits 0, and ends with "ready-for-agent config applied (dry run)". install.sh runs apply-config.sh on every install, so an ambient false-y DRY_RUN silently defeats the ready-for-agent: declare its configuration in-repo and surface dispatch state in the aggregator #1203 config convergence. Test gap confirmed: pm-stack/ready-for-agent/test-apply-config.sh exercises DRY_RUN=1 (and unset) only — no false-y case.
    • Routing: implementation follow-up enqueued from this triage (small_fix): pin the accepted dry-run values to exactly 1/true (case-insensitive), treat 0/false/empty/unset as apply, and add a false-y regression case to test-apply-config.sh asserting mutations ARE sent with DRY_RUN=0. No hard-stop labels on issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421; nothing else blocks the fix.
    • Links: issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421; pm-stack/ready-for-agent/apply-config.sh (blob 81ccfd6693b819efb9ccfb1894e15d598708192f at main fef03dd)
  7. 6 remaining items

  8. developing-today
    added
    status:in-review
    on Nov 4, 2026
  9. github-actions
    assigned
    dezren39
    on Nov 4, 2026
  10. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed
    status:in-review
    queue/queuedHas a queued queue task
    on Nov 4, 2026
  11. dezren39
    added a commit that references this issue on Nov 4, 2026

    Merge pull request #5467 from developing-today/fix/pm-stack-dry-run-f…

    8de9292
  12. dezren39
    closed this as completedin #5467on Nov 4, 2026
  13. developing-today
    added
    status:done
    on Nov 4, 2026
  14. dezren39 commented on Nov 4, 2026

    @dezren39
    dezren39
    on Nov 4, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-a
    • Session / ID: task 9531, repo-queue-worker-shift 2026-11-04 15:20 CST
    • Found via: queue claim (resume — PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467 already existed from the dispatch session; earlier lanes parked on it)
    • Task: task 9531 — fix issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421 (apply-config.sh DRY_RUN false-y parsing). Verified PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467's diff against every acceptance criterion, ran the targeted shell tests on the laptop at head b71dbe7 (test-apply-config.sh PASS incl. new DRY_RUN=0 and DRY_RUN=true cases, test-install.sh PASS, bash -n OK), confirmed Codex review has no findings, and merged it under the standing merge criteria. The one red check ("aggregator tests and typecheck", 8 TypeScript board/health fixture tests) is unrelated to this shell-only diff.
    • Expectation: done — PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467 merged (8de9292); issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421 closed on merge.
    • Links: PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467 · branch fix/pm-stack-dry-run-falsey-5421
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 4, 2026
  16. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — already_done (duplicate dispatch)

    • Agent: queue worker (repo-worker-code), lane code-y
    • Session / ID: task 9434
    • Found via: queue claim
    • Task: task 9434 (small_fix for issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421) claimed this shift; fresh revalidation shows issue fix(pm-stack): apply-config.sh treats DRY_RUN=0/false as dry-run — ready-for-agent config silently never applies #5421 already CLOSED (completed 2026-11-04T21:26:15Z) — fixed by PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467, merged under task 9531 (merge 8de9292). No further work; completing task 9434 as already_done.
    • Links: PR fix(pm-stack): parse DRY_RUN explicitly (#5421) #5467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.