Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.584
Choose a base ref
...
head repository: ptr727/ProjectTemplate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.0.587
Choose a head ref
  • 4 commits
  • 18 files changed
  • 2 contributors

Commits on Sep 8, 2026

  1. Make a Parked Decision Something the Session Still Owes the User (#1435)

    Relates #1433, #1315, #1316, #1434, #1436.
    
    A question an agent files as an issue instead of asking is recorded and
    never asked again. Nothing
    said it was still owed, nothing reported how many were waiting, and
    nothing put them back in front of
    the maintainer. Twenty-six had accumulated here, the oldest filed on
    2026-08-11, and none had ever
    received a maintainer answer. Each session filed correctly and moved on.
    Presenting the accumulation
    was the step nobody owned.
    
    ## Merge dependency, stated first because it decides when this should
    land
    
    **This rule enumerates the fleet's `decision` label, and that label
    exists on this repository and on
    none of the other 24 in the registry.** `repo-config/labels.json`
    declares the whole fleet set and
    `repo-config/configure.sh apply owner/repo release|operational` creates
    it, but that has never been
    run for labels downstream, and nothing in `spec/`, `registry/`,
    `AUDIT.md`, `scripts/`, `STANDUP.md`
    or `RESYNC.md` provisions or audits it. Verified across all six
    surfaces, and live:
    `gh issue list --repo ptr727/PlexCleaner --label decision --state open`
    returns nothing and exits
    zero.
    
    The section is `fidelity: verbatim`, `appliesTo: "*"`, so it ships
    byte-identical into every fleet
    repository. Until the rollout runs, a downstream session enumerates an
    empty queue and reports it as
    healthy, which is the failure this rule exists to prevent arriving
    through the provisioning layer
    rather than the rule text. Nothing this branch ships is broken where it
    ships, since the hub has the
    label. **The rollout is tracked on #1434, with #1315 covering the label
    set generally.** Landing this
    before that rollout is a maintainer decision rather than an oversight.
    
    ## What changes
    
    Two bullets in `GOVERNANCE.md` "Communicating with the User", which the
    `agent-conduct` Skill already
    carries whole as a generated include:
    
    - **A question filed as an issue is parked rather than asked, and it
    stays owed.** Where the work
    cannot continue, the existing interactive-prompt bullet governs and the
    question is asked where the
    work stops. Wherever the answer is recorded rather than asked, including
    a question asked once and
    deferred, the issue carries the `decision` label and states the choices
    it is between where the
      filing session knows them.
    - **The session that writes a handoff presents the parked queue in the
    same act.** It binds to writing
    the handoff rather than to the session ending, because a session also
    ends by interruption, where no
    agent acts at all. The session enumerates this repository's open issues
    carrying the label, states
    the count, and asks one question per parked decision carrying that
    decision's own answers as its
    options. An issue that states no choices is put as the open question it
    is, never as invented
    options. An item leaves the queue by losing the label, and the issue
    closes only where it held
      nothing but the question.
    
    Beside them, in the Skill and the fleet map:
    
    - The trigger description gains the fourth moment and a `Before Writing
    a Handoff` section, so a
    session that is ending finds its moment rather than hunting under
    `Before Assuming`.
    - The irreversible-step list goes from four steps to the six
    `host-setup/agent-safety/claude/claude-md-safety.md` names, adding
    force-pushing and changing branch
    protection. An agent about to force-push was reading the carried list
    and finding force-push absent
      from the steps that stop.
    - A pronoun in the preamble read as an instruction not to load the
    always-on `AGENTS.md` layer, which
      inverts the rule. Both referents are now named.
    - `README.md` sent an open question that is not yet a defect to
    Discussions, which would route a
      parked decision where no label query reaches it.
    
    `AGENTS.md` "Session Scope" names the parked-decision account as a fifth
    handoff item and points,
    rather than restating. An earlier revision imported only the recording
    half, and a whole-unit read
    showed why that was wrong: it produces a complete-looking checklist
    whose sole duty is writing a
    number into a file, which is the park-instead-of-ask failure this rule
    exists to stop, reproduced
    inside the rule's own rollout.
    
    ## Verification
    
    All gates green: `build_dist.py --check`, `repo_gate.py`,
    `prose_lint.py` on both CI invocations,
    `spec/validate.py`, `docker_lint.py`, `canonical_review.py check`,
    `markdownlint-cli2`.
    
    Seventeen adversarial passes ran over the changed units and the branch
    diff, on the strongest
    available tier, each whole-unit read taking the unit's full text rather
    than the diff. They raised
    roughly fifty findings, most against text this change wrote.
    
    Three claims were deleted rather than reworded, each after failing
    review twice on the same
    over-claim: that `decision` was a label in every carrier's own set, that
    a session had nowhere else to
    learn the label name, and that an item omitted from a presentation is
    omitted again by every session
    after. The last was false in two successive rewordings, and its true
    form duplicated a claim made
    three sentences earlier, so the sentence is gone. **Every deletion made
    the text more true rather than
    less binding**, and the normative statement has not changed since the
    first draft. What kept failing
    was rationale.
    
    One finding was declined with evidence: the trigger phrase "about to
    claim work is done, verified,
    green, or fixed" was flagged as comma-heavy, and `local-strict-review`
    quotes it verbatim, so
    rewording it would break a live cross-reference.
    
    ## Known and filed, not fixed here
    
    - Roughly forty-five wording and completeness findings against the two
    bullets, on the `GOVERNANCE.md`
      "Communicating with the User" unit tracker.
    - The parked-queue bullet is 2426 characters against 1175 for the
    longest bullet already in that
    section. Measured and filed as evidence on #1316, which defines the
    normative-statement format, with
    this bullet nominated as a pilot candidate. The maintainer's decision is
    that it ships at this length
      and is reshaped there rather than hand-shaped ahead of the format.
    - `backlog-burndown` files the most parked questions in the fleet and
    never applies the label, so its
    questions are invisible to this enumeration. Tracked on #1436, along
    with its ranking of
      `decision`-labelled issues it cannot work.
    - `TODO.md` holds seven clusters at `State: decision`, which this rule's
    count does not cover.
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    ## Summary by CodeRabbit
    
    - **Documentation**
    - Updated guidance for handling parked questions and decision handoffs.
    - Clarified use of the shared `decision` label for questions awaiting
    resolution.
    - Added rules for presenting, prioritizing, and removing answered or
    superseded decisions from the queue.
      - Clarified when decision issues may be closed.
    - Expanded irreversible-action guidance to include force-pushing and
    branch-protection changes.
    - Updated repository documentation to reflect the revised labeling and
    handoff process.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    
    ---------
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    ptr727 and claude authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    82758ed View commit details
    Browse the repository at this point in the history
  2. Give the Include Mechanism a Declared Destination List, and Point Whe…

    …re Three Surfaces Restated (#1441)
    
    Relates #1317, #1237, #1435, #1440.
    
    Two steps of #1317, scoped by the #1440 assessment: lift
    `build_dist.py`'s include **destination**
    restriction, then convert the restatements on the three uncarried
    surfaces that drifted on #1435.
    
    The first landed as scoped. The second did not survive contact, and what
    it turned into is the more
    useful half of this pull request.
    
    ## The mechanism
    
    `filled_lines()` refused an include region in any file outside
    `skill_documents()`, so only
    `.agents/skills/**/*.md` could hold one. The restriction was on the
    destination, never on the source,
    which has always accepted any authored file under the root.
    `INCLUDE_DESTINATIONS` replaces it: a
    declared tuple of files the walk visits in addition to the skills tree,
    so `--check` holds a region
    there to its source exactly as it holds one in a skill.
    
    A destination is held to the same path rules a source is (no symlink, no
    generated tree, spelled as
    the tree spells it), and then to the carry manifest.
    `manifest_carried_destination()` refuses a
    destination whose bytes `spec/files.json` carries, reading an entry's
    `path`, its `sections`, its
    `reference`, a carrying `fidelity`, and any `trees` source. A carrier
    receives the filled text either
    way, so markers reaching one are not the problem; the mirrors already
    carry live markers to every
    repository and are safe doing it because `regenerate()` rebuilds them
    wholesale on every run. A
    carried authored file is copied rather than rebuilt, so a region in one
    would put generated text into
    a file that repository holds as its own.
    
    Discovery would have spared the maintenance and is wrong here: whether a
    file may hold generated text
    is a judgment about where that text ends up, not a property of where the
    file sits.
    
    ## The tuple ships empty, and that is the finding
    
    Measured across every heading body in the tree: outside the seven
    regions already generated, **no
    restatement anywhere in this repository is copy-shaped.** The largest
    non-generated overlap between
    any two sections is two sentences.
    
    The seven passages that drifted on #1435 are a contributor-facing
    routing sentence in `README.md`, a
    taxonomy paragraph in `repo-config/README.md`, and a design-record block
    in `docs/fleet-map.md`. Each
    adapts one rule for a different audience rather than copying it. An
    include fills a region with a
    heading's whole body, so converting them would have dropped 6.4 KB of
    `GOVERNANCE.md` into a README
    bullet. #1317 says to decide per restatement, pointer or include. All
    seven decide pointer.
    
    So the mechanism lands with no in-tree user, deliberately and with the
    measurement recorded, and the
    tuple is where the first copy-shaped restatement gets named.
    
    ## The pointer sweep
    
    `README.md` keeps the routing that is its own subject, that a parked
    question is filed as an issue
    rather than raised in Discussions, and stops restating the queue
    mechanics `GOVERNANCE.md`
    "Communicating with the User" sets.
    
    `repo-config/README.md` keeps the taxonomy and points for when the
    `decision` marker goes on and comes
    off. Its `gate` and `decision` bullets now carry
    `repo-config/labels.json`'s own wording rather than a
    paraphrase of it; those two were the only bullets whose prose and data
    had drifted apart.
    
    `docs/fleet-map.md` stated the `agent-conduct` trigger set in two
    places, in the G12 resolution and in
    the "Proposed Skills" block that section calls the contract its skill
    implements. G12 names that block
    now instead of re-enumerating it.
    
    `scripts/README.md` and the `skill-lifecycle` skill both still said the
    fill lands in `.agents/skills/`
    itself. The skill is carried verbatim fleet-wide, so that would have
    shipped stale.
    
    ## Verification
    
    All gates green: `build_dist.py --check`, 1164 unit tests, `ruff format`
    and `check`, `mypy`,
    `prose_lint.py` diff-scoped and whole-tree, `repo_gate.py` on all three
    checks, `spec/validate.py`,
    `canonical_review.py check`, and `docker_lint.py`'s seven linters.
    
    Seven adversarial passes ran over the branch diff and four over
    `.agents/skills/skill-lifecycle/SKILL.md > The Pipeline`, the carried
    unit this change moves. The final
    pass over each reports no false statement and no bug. Every earlier pass
    found something real.
    
    Behavior is measured rather than reasoned about: eleven tree-source
    spellings including both root
    forms, both wrong-typed fidelities, three missing-key shapes, both
    spellings of a presence
    declaration, all four `reference` targets, and the sibling-prefix
    non-match. Every new test fails when
    its own fix is reverted, checked one at a time.
    
    ## Found by review, not by me
    
    Worth stating plainly, because it is the evidence for the rule this pull
    request builds. Three separate
    rounds fixed one rule on some of its surfaces and left its siblings,
    which is the defect class #1317
    exists to remove, reproduced inside the change that removes it. Two
    bugs, one regression introduced
    while fixing a non-problem, and three tests that could not fail were all
    caught by a pass rather than
    by the round that wrote them. The code converged in two rounds;
    everything after was prose and test
    assertions claiming more than had been verified.
    
    ## Known and filed, not fixed here
    
    `is_stale()` never checks the plugin tree's own root entries, so a stray
    file beside `skills/` passes
    `--check` while the same file in `.github/skills/` is caught. The
    generated-tree symlink cases are
    undocumented. The source-path rules are stated incompletely, the
    "regenerating changes the bytes of
    every including unit" claim is over-broad, `--report`'s non-zero exit
    has five causes where one is
    named, and `skills_install.py` exits 0 having installed only the overlay
    half when `claude` is absent.
    The `resolve()`-then-write TOCTOU window, unreachable while the tuple is
    empty. The three new exit-2
    causes have no test asserting `main()` returns 2. The refusal offers a
    remedy that is closed for a
    manifest-carried file, and `tree_source()` returns `None` for a missing
    `source` where its sibling
    raises.
    
    
    <!-- This is an auto-generated comment: release notes by coderabbit.ai
    -->
    
    ## Summary by CodeRabbit
    
    - **New Features**
    - Distribution builds now support generated include regions in declared
    documentation destinations, including recursive includes.
    - Destination paths and manifests are validated before content is
    generated or mirrored.
    
    - **Bug Fixes**
    - Invalid, missing, unreadable, or disallowed destination configurations
    now fail clearly instead of being silently accepted.
      - Consistency checks detect unvisited or undeclared include regions.
    
    - **Documentation**
    - Updated guidance for skill lifecycle workflows, governance labels,
    parked questions, generated includes, destination rules, and validation
    outcomes.
    
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->
    
    ---------
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    ptr727 and claude authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    3b43a67 View commit details
    Browse the repository at this point in the history
  3. Refuse a Tree Source Reducing to the Repository Root, and Blame the S…

    …ource Rather Than the Destination (#1443)
    
    Relates #1317, #1442.
    
    Answers the one finding Copilot raised on the `develop -> main`
    promotion pull request #1442. A
    finding there needs its own feature branch, since the promotion PR's
    head is `develop`.
    
    ## The defect
    
    `tree_source()` reduced `""`, `"."`, `"./"`, `"/"`, `"//"` and
    whitespace to an empty result, and
    `manifest_carried_destination()` read that as the repository root
    declared as a carried tree. Every
    declared destination was then refused with a message saying it is
    carried to other repositories,
    which blames the destination when the source is what needs fixing.
    
    No tree may name the repository root: `spec/validate.py` says so in its
    own words ("must be below
    the repository root") and `scripts/carry.py` enforces it by comparing
    `PurePosixPath` objects. So
    the empty reduction is refused by its own name now, and the caller's
    root-tree branch goes with it,
    having been reachable only from a manifest this refuses first.
    
    ## The correction inside this branch
    
    The first commit's message said such a source is one "which its schema
    forbids". That is false for
    exactly the inputs it fires on. `spec/files.schema.json` constrains a
    tree source as
    `{"type": "string", "minLength": 1, "not": {"const": "."}}`, so it
    forbids `""` and `"."` and
    nothing else, while `"./"` and `".///."` are schema-valid, reduce the
    same way, and are the only two
    spellings that reach the guard in a repository `spec/validate.py`
    already passes. The message would
    have sent a maintainer to re-read a schema permitting what they wrote.
    
    The second commit says the reduction instead, which is what the code
    decides, and names the
    schema's two forbidden spellings as the subset they are. The docstring
    and the test's own name and
    docstring carried the same claim and moved in the same edit.
    
    ## Verification
    
    All gates green: `build_dist.py --check`, 1166 unit tests, ruff format
    and check, mypy,
    `prose_lint.py`, `repo_gate.py`, `spec/validate.py`,
    `canonical_review.py check`.
    
    Two adversarial passes ran over the branch diff. The first found the
    false schema claim above. The
    second reports no false statement and no bug, and proved the change is
    not a behavior regression by
    differencing the old and new `tree_source()` over 3,906 generated
    spellings: they differ on 133
    inputs, all of them cases where the old function returned `""`, and
    agree exactly on every input
    carrying a real segment. The removed root-tree branch was proved
    unreachable over 9,331 spellings
    rather than assumed.
    
    Against the real manifest nothing moves: its one tree source is
    `.github/skills`, all four
    `reference` targets still refuse, and `README.md`, `docs/fleet-map.md`
    and `repo-config/README.md`
    still admit.
    
    ## Known and not fixed here
    
    `spec/validate.py` compares a tree source to `"."` as a raw string, so
    `"./"` and `".///."` pass it
    and pass its `is_dir` test, while `carry.py` refuses both. A manifest
    author gets a green validator
    and a failing carrier. Pre-existing, and this branch closes it only for
    `build_dist.py`'s own
    consumer.
    
    ---------
    
    Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
    ptr727 and claude authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    7ad3644 View commit details
    Browse the repository at this point in the history
  4. Promote develop to main: a declared destination list for includes, an…

    …d the parked-decision rule (#1442)
    
    Promotes two changes from `develop`.
    
    ## #1441: a declared destination list for the include mechanism, and
    pointers where three surfaces restated
    
    Relates #1317, #1237, #1440.
    
    `build_dist.py` filled an include region only in a file under
    `.agents/skills/`. The restriction
    was on the destination, never on the source, and it is why the hub
    surfaces that restate a rule
    could not be generated from that rule's home. `INCLUDE_DESTINATIONS`
    replaces it, with a
    destination held to the same path rules a source is and then to the
    carry manifest, so a file
    `spec/files.json` carries content from can never be one.
    
    The tuple ships empty, which is the measured finding rather than an
    omission. Across every heading
    body in the tree, no restatement outside the seven regions already
    generated is copy-shaped, the
    largest overlap between any two sections being two sentences. The seven
    passages that drifted on
    #1435 each adapt one rule for a different audience, so all seven became
    pointers.
    
    `repo-config/README.md`'s `gate` and `decision` bullets now carry
    `repo-config/labels.json`'s own
    wording rather than a paraphrase, `docs/fleet-map.md` no longer states
    the `agent-conduct` trigger
    set twice, and `scripts/README.md` and the `skill-lifecycle` skill no
    longer say the fill lands in
    `.agents/skills/` itself.
    
    ## #1435: a parked decision is something the session still owes the user
    
    Relates #1433, #1315, #1316, #1434, #1436.
    
    Two bullets in `GOVERNANCE.md` "Communicating with the User", carried
    whole into `agent-conduct`:
    a question filed as an issue is parked rather than asked and stays owed,
    and the session that
    writes a handoff presents the parked queue in the same act.
    
    **Merge dependency this promotion inherits.** That rule enumerates the
    fleet's `decision` label,
    which exists on this repository and on none of the other 24 in the
    registry. Until the rollout
    tracked on #1434 runs, a downstream session enumerates an empty queue
    and reports it as healthy.
    Nothing shipping here is broken where it ships, since the hub has the
    label, and landing it ahead
    of that rollout is a maintainer decision rather than an oversight. It
    was stated on #1435 and is
    restated here because promotion is where it reaches the carriers.
    
    ## Verification
    
    Every gate green on `develop`: `build_dist.py --check`, 1165 unit tests,
    ruff format and check,
    mypy, `prose_lint.py` diff-scoped and whole-tree, `repo_gate.py` on all
    three checks,
    `spec/validate.py`, `canonical_review.py check`, and `docker_lint.py`'s
    seven linters.
    
    #1441 took three review rounds and ten local adversarial passes. Copilot
    and CodeRabbit each found
    one real defect, and both were defects a local pass had already found
    and filed as unreachable
    rather than fixed. That is recorded on the pull request because it is
    the useful part: in a check
    whose only job is to refuse, upstream validation making a defect
    unreachable ranks it lower and
    does not close it.
    
    CodeRabbit is rate limited and did not review the last two heads of
    #1441. It is advisory here, so
    its absence blocked nothing, and Copilot covered the final head at full
    file coverage.
    
    ## Not merged by this pull request
    
    Nothing in #1317 beyond the two steps above. The include mechanism has
    no in-tree user yet, by
    decision, and the remaining restatement classes are their own pull
    requests.
    ptr727 authored Sep 8, 2026
    Configuration menu
    Copy the full SHA
    6c88850 View commit details
    Browse the repository at this point in the history
Loading