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 — deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on · Issue #6376 · developing-today/code

deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376

New issue
Copy link
New issue
Copy link
Closed
#6550
Closed
deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on#6376
#6550
Copy link
Labels
app/deployPackage/app: deploy (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Problem

pkgs/deploy/deploy.py (the deployment-architecture CLI, #5766 slice 1) silently ignores two classes of malformed arguments in main() (deploy.py:168-186):

  1. Anything after list is ignored. After the --registry extraction loop (deploy.py:172-178), main() checks only args[0] != "list" (deploy.py:186) and never inspects the rest. deploy --registry A list extra-junk and deploy --registry A list --dry-rnu both print the list and exit 0.
  2. A duplicate --registry silently overrides the first. The while "--registry" in args loop (deploy.py:172) assigns registry_path unconditionally on each pass, so the last occurrence wins with no error — the operator can be shown (and, in later slices, act on) a different registry than the one they named first.

Evidence (verified this run, laptop @ origin/main 03d1a21, probe ~/git/fleet/probe-deploy-argv)

Two one-service registries: A = svc-a (target laptop), B = svc-b (target sandbox).

  • Control python3 deploy.py --registry regA.json list → lists svc-a, exit 0.
  • ... list extra-junk → lists svc-a, exit 0 (stray argument ignored).
  • ... list --dry-rnu → lists svc-a, exit 0 (typo'd flag ignored).
  • --registry regA.json --registry regB.json list → lists svc-b, exit 0; reversed order → lists svc-a, exit 0 (last --registry wins, silently, either way).
  • Controls that do fail: unknown subcommand → exit 2; --registry=regA.json list (equals form) → exit 2 with the misleading message that --registry=regA.json "is not implemented in slice 1", because the token is treated as the subcommand name.

Why it matters

Slice 1 is read-only, so today the harm is a wrong-registry listing believed to be the requested one. But this parser is the foundation the later #5766 slices build on — the usage line already reserves deploy <target> [rollback|status] [--dry-run] — and this repo's standing lesson from that exact grammar is that silently ignored flags become dangerous the moment the verb gains effects: #3278 (claimant install: a typo'd --dry-rnu performed a real install) and #3287 (github-backup deploy: a typo'd flag performed a real deploy) were both this shape. The fleet CLI family has the same rule for its own parsers (#6139 duplicate scalar flags, #6134 argv ignored entirely). Fixing the parser now, while list is its only verb, is the cheap moment.

Acceptance criteria

  • deploy ... list <anything> exits 2 with a usage error naming the unexpected argument (after --registry extraction, list accepts no further arguments).
  • A second --registry occurrence exits 2 with an error naming the duplication, instead of last-wins.
  • The documented forms keep working: --registry before or after the subcommand, $DEPLOY_REGISTRY fallback, unknown subcommand still exit 2.
  • Tests pin all of the above (there is currently no test file for deploy.py; add one where the flake/other CLI suites keep theirs, or note the chosen home in the PR).
  • Nice-to-have, triage's call: --registry=PATH either works or its error stops calling the token a subcommand.

Activity

Next
  1. developing-today commented on Nov 5, 2026

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

    CODE-1892

  2. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/deployPackage/app: deploy (pkgs/ or apps/ in this repo)
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (lane B, new-issue-creator-code-b)
    • Session / ID: cron job new-issue-creator-code-b, run 2026-11-05 14:50 CST
    • Found via: filed this run
    • Task: Filed after verifying on the laptop @ origin/main 03d1a21 (probe ~/git/fleet/probe-deploy-argv): arguments after list are silently ignored and a duplicate --registry silently overrides the first in pkgs/deploy/deploy.py's parser.
    • Expectation: effort s — triage confirms the fix shape (reject trailing args after list; reject duplicate --registry), then route the small parser fix.
    • Links: queue packet packet-6376-triage.json (repo-health-code-pilot)
  4. 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 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-f
    • Session / ID: task 10766
    • Found via: queue claim
    • Task: Triage task 10766 for issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376 — verifying the deploy.py argv claims against current main, then routing the fix.
    • Expectation: triage (s) — findings comment posted and a scoped follow-up queued if the bug confirms.
    • Links: issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376
  6. 75 remaining items

  7. developing-today
    added
    status:in-review
    on Nov 6, 2026
  8. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  9. dezren39
    added 2 commits that reference this issue on Nov 8, 2026

    fix(deploy): reject trailing args and duplicate --registry (#6376)

    b613ca0

    test(deploy): property coverage for the argv parser (#6376)

    6a12741
  10. developing-today commented on Nov 8, 2026

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

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane code-l
    • Session / ID: task 13310
    • Found via: queue claim (direct lane)
    • Task: Shepherd PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 for issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376 — Codex P1 (property coverage for the rewritten argv parser) FIXED in 6a12741: new pkgs/deploy/test_argv_property.py (generated cases over all three value flags, both spellings, placement, duplicates, missing values; sequential model of the parser contract as oracle) wired as the deploy-argv-property nix check; replied on the Codex thread (discussion_r4506792228). Laptop verification: property holds 300 cases seed 6376 + 1000 cases seed 42; test_argv.py and test_dupkeys_property.py pass. Parked on CI: checks for head 6a12741 still pending at park time.
    • Expectation: on resume, fresh-check PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 CI (including deploy-argv-property); merge when green, then closing notes on issue Unowned PR batch from branch disposition (2026-11-07) #7297 and issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376
    • Links: PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550, issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376, issue Unowned PR batch from branch disposition (2026-11-07) #7297
  11. dezren39
    added a commit that references this issue on Nov 8, 2026

    Merge pull request #6550 from developing-today/queue/10768-6376-deplo…

    fb2874a
  12. dezren39
    closed this as completedin #6550on Nov 8, 2026
  13. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 8, 2026
  14. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (already done)

    • Agent: repo queue worker, lane code-d (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-d run 2026-11-09; task 10768
    • Found via: claimed task 10768 this shift; fresh revalidation before any work
    • Task: task 10768 for issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376 (small_fix — deploy.py silently ignores trailing args and duplicate --registry). Fresh evidence this shift: issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376 is CLOSED (state_reason=completed, closed 2026-11-08T16:13:41Z); its fix PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550 is MERGED (2026-11-08T16:13:40Z, merge sha fb2874a). The work is already landed, so task 10768 is completed with outcome already_done; no handoff, no new work.
    • Expectation: none — terminal.
    • Links: task 10768 · issue deploy(deploy.py): arguments after list are silently ignored and a duplicate --registry silently overrides the first — the typo-flag class, in the parser the activation slices will build on #6376 · PR fix(deploy): reject trailing args and duplicate --registry (#6376) #6550
  15. dezren39
    removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/deployPackage/app: deploy (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator 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.