Skip to content

State That a One-Off Is Detected and Reported, Never Corrected by Code #4210

Open

Description

@ptr727

Ask

Record a standing rule the maintainer stated on 2026-11-15, while answering #4158, and put it in GOVERNANCE.md "Design Before Code":

writing code to correct a one off is not worth it when that code never runs again, so detect and notify user to correct by hand, this applies to anything we do, e.g. detect wrong install method, or making changes to paths that can be fixed by hand

The rule to write

  • Where a defect is a one-off, a state that occurs once on a host or a repository and that correcting it once removes, the tooling detects it and tells the user how to correct it by hand. It writes no code that performs the correction.
  • The reason is that correction code for a one-off runs once and then never again, yet it is reviewed, tested and maintained for as long as it exists.
  • Examples the maintainer gave: a tool installed by the wrong method, and a path change the user can make by hand.
  • Detection stays automated, because a check that runs every time is what keeps the one-off from going unnoticed.

Done when

The rule is in "Design Before Code", with its reason. #4158 is implemented as detect-and-report. The implementing change lists any existing one-off correction code it finds, as candidates for removal rather than as a blocker.

Activity

  1. added
    enhancement
    prose
    on Nov 16, 2026
  2. ptr727 commented on Nov 22, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-22): the branch merged as #4346 and was cleaned up, so this claim holds no files.

    Backlog burndown claim (round 4, group 1, 2026-11-22): branch burndown/r4-one-off-and-reopens, issues #4210, #4175.

    Predicted files: GOVERNANCE.md, .agents/skills/branching-and-release-model/SKILL.md, .agents/skills/backlog-burndown/SKILL.md, and the generated include region in .agents/skills/fleet-code-review/SKILL.md. Generated trees .github/skills/ and .claude-plugin/ follow any .agents/skills/ edit.

    Grown set granted (2026-11-22): .agents/skills/add-host-tool/SKILL.md, which the #4210 rule puts in disagreement.

  3. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Released (2026-11-25): this group merged into develop as #4456 and its branch and worktree were cleaned up, so the claim holds no files.

    Backlog burndown claim (away run 2026-11-24, round 2, group 6): branch burndown/claude-codex-managed-copy, issues #4158 and #4210.

    #4210's one remaining item is #4158 implemented as detect-and-report, so the same change closes both.

    Predicted files:

    • host-setup/linux/install-agents.sh, a managed-copy record for claude and codex from each native installer, beside opencode's, with any other copy ahead of it on PATH reported and never removed.
    • host-setup/windows/install-agents.ps1, the same, with the record taking a path form where it now names an npm package.
    • tests/test_install_agents.py, the report path for each new managed copy on both scripts.
    • host-setup/linux/README.md, the install-agents.sh bullet that says opencode keeps the one managed copy.
    • host-setup/windows/README.md, the install-agents.ps1 bullet that says the same.
    • docs/host-setup.md, the agent-tools paragraph that says "opencode is the one that does".

    Per the maintainer's answer of 2026-11-15 on #4158: report only. No removal code, not even behind the interactive prompt.

    Parked (2026-11-24): waiting on decision #4402. Branch burndown/claude-codex-managed-copy holds no commits and is not pushed, and its worktree is left standing. State is on #4158.

    Resuming (2026-11-25, away run round 1, group F): decision #4402 is answered (closed, the maintainer's answer recorded on it 2026-11-24: option 1, mirror opencode exactly, report only). The group resumes on this branch with the same predicted files. The two README files feature/wsl-2299 once held were released by the maintainer on #2299 (2026-11-22). Per #4402, the worker also files the removal of the npm and bun upgrade paths as its own issue and lists it in its pull request body.

  4. ptr727 commented on Nov 24, 2026

    @ptr727
    OwnerAuthor

    Parked (away run 2026-11-24, round 2, group 6): waiting on #4402. This issue's one remaining item is #4158 implemented as detect-and-report, and that work is parked behind #4402. The state and what remains are on #4158.

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

    enhancementprose

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions