Skip to content

planning: a wayfind map's dossier branch has no deleter unless the map goes straight to decompose #17037

Closed

Description

@kyle-sexton

Problem

A /planning:wayfind map's dossier branch (the branch that holds the map's shared files) is deleted by the container close ritual only when the map is the container's source item:

  • plugins/work-items/skills/decompose/context/container-lifecycle.md, "Dossier branches go with the close": the run deletes the container's own branch "and the one a /planning:wayfind map's closing comment names when that map is this container's source item (its parent ...)".
  • The same file, "Publish. Container first.": the container gets --parent "<source-item-id>" only "When the source is a tracker item".

plugins/planning/skills/wayfind/SKILL.md (destination table, step 8) gives the container that parent on one route only: a map that "goes straight to /work-items:decompose #<map-number>". On every other destination nothing deletes the branch, although the line under the table says to keep it "until the destination's container closes, then delete it":

Destination Why no deleter
A set of build items through /planning:plan The plan receives the decisions as text, so decompose's source is a document and the container has no parent
A PRD Same: decisions passed as text
One change No container exists
A decision record No container exists
A general summary No container exists

PR #16907 named the plan-route gap in its body.

Options

  • (a) Carry the map's key into the plan (and PRD) so decompose sets --parent to the map, and delete at map close on the three routes that create no container. Recommended: it reuses the existing ritual and its report-only cases (basis: judgment).
  • (b) Delete at map close on every route except straight-to-decompose.

Done when

  • Every destination in wayfind's table has a stated point at which the dossier branch is deleted or reported, and the line under the table matches it.
  • An eval case covers one route that has no container and one that goes through /planning:plan.

Source: workshop 03 (planning) close-out audit.

Activity

  1. added
    needs-triage
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: wayfind SKILL.md, decompose SKILL.md and container-lifecycle text, a new shared work-items reference file, and a new eval case. Anyone running /planning:wayfind or /work-items:decompose reads or runs these.
    Reversible: yes; revert the text and eval changes. A dossier branch deleted by the step has to be restored from its commits.
    Open questions: none

    Understood: a wayfind map's dossier branch has no deleter on every route except straight-to-decompose. The owner's recorded decision picks option A, amended so every destination has a deletion or report point:

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.

    Q124 (REVISED A)

    Option A, amended so that every destination has a deletion or report point (the issue's Done-when).
    (1) Plan and PRD task descriptions carry a Source map: #<n> line. Decompose reads it as data. It accepts the line only when the named item carries the wayfind map label, not merely when it is a bare number, and then treats the map as the source item. With a container, the container gets --parent <map>, and decompose posts the **Spec container:** comment on the map, which container-lifecycle.md:130-131 expects the map to hold. The container close then deletes the map's branch ("Dossier branches go with the close").
    [quote truncated; the full decision is at the link]

    #17037 (comment)

    That decision, with the confirmed done-when in the later comment, settles the open questions. No duplicate found.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 18, 2026
  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Every wayfind destination gets a stated dossier-branch deletion or report point, most likely option (a): plan and PRD routes carry the map key so decompose parents the container to the map, and the no-container routes handle the branch at map close.

    Related work

    Open questions

    1. Does the owner confirm option (a), or choose option (b)? No Decision recorded comment exists and the issue's recommendation has basis judgment.
      RECOMMENDED: Option (a): carry the map key into plan and PRD so decompose sets --parent to the map, and handle the branch at map close on the no-container routes. Basis: judgment
    2. On the no-container routes (one change, decision record, general summary), should map close delete the branch itself or only report it? container-lifecycle.md forbids unattended deletion and wayfind step 8 can run in a lane.
      RECOMMENDED: Delete only when attended, after the show-and-ask step; unattended runs list the branch in the closing comment as due for deletion. Basis: plugins/work-items/skills/decompose/context/container-lifecycle.md:143
    3. For the one-change route, the item from /work-items:track add is a plain item with no container. Should deletion wait for that item's close or happen at map close?
      RECOMMENDED: Handle it at map close (delete attended, report unattended), since no close ritual exists for plain items. Basis: 17013
    4. How does the plan carry the map key? /planning:plan and /planning:prd receive decisions as text, so decompose sees a document source. Should the key be a stated field in the task description that decompose reads to set --parent?
      RECOMMENDED: Put a 'Source map: #<number>' line in the task description, and have decompose parent the container to it when present. Basis: plugins/planning/skills/wayfind/SKILL.md:347

    Sources read

    • plugins/planning/skills/wayfind/SKILL.md:335-353: step 8 destination table; the dossier branch is kept until the destination's container closes, then deleted, with no per-route deleter
    • plugins/work-items/skills/decompose/context/container-lifecycle.md:126-146: the close ritual deletes the container's branch and the map's branch only when the map is the source item; never deletes unattended
    • plugins/planning/evals/wayfind-build-set-closes-to-plan-and-keeps-dossier-branch/prompt.md: existing eval for the plan route that keeps the branch; it must be reconciled with any change

    To answer, post a comment that starts with this line:

    **Decision recorded.** <answer>
    

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  6. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.

    Q124 (REVISED A)

    Option A, amended so that every destination has a deletion or report point (the issue's Done-when).
    (1) Plan and PRD task descriptions carry a Source map: #<n> line. Decompose reads it as data. It accepts the line only when the named item carries the wayfind map label, not merely when it is a bare number, and then treats the map as the source item. With a container, the container gets --parent <map>, and decompose posts the **Spec container:** comment on the map, which container-lifecycle.md:130-131 expects the map to hold. The container close then deletes the map's branch ("Dossier branches go with the close").
    (2) When decompose publishes from a map, either straight from #<map> or through Source map:, and the user declines the container (the default), no close ritual will ever run: "Decomposed parent close" excludes wayfind maps. So decompose runs the dossier-branch step for the map's branch at the end of publish. This deletes the branch before the items ship. That is acceptable on the grounds the issue already accepts for the one-change route: no container will exist, and an attended deletion needs the user's yes after the unreachable commits are shown.
    (3) On the one-change, decision-record and general-summary routes, map close runs the same step.
    (4) The step is the existing one at every site:

    • Attended: show the unreachable commits and the files they change, ask once, and delete only what the user confirms.
    • Unattended: never delete; list the branch as due.
    • Report-only in every mode: more than one matching branch, or a branch that is the head of an open PR.
      Every site cites one shared copy of the step, never a duplicate: move the step to a work-items reference/ file or expose it through a work-items action. Then a work-items: container close offers to delete one of two ambiguous dossier branches, which the ritual forbids #17043 tightening reaches every site.
      (5) Update wayfind SKILL.md:352-353 to match, and keep the eval build-set-closes-to-plan-and-keeps-dossier-branch.

    Basis

    • plugins/work-items/skills/decompose/context/container-lifecycle.md:128-147 at origin/main:
    • The step deletes the container's own branch, plus the map's branch only when the map is the container's parent and holds the **Spec container:** comment (130-131).
    • More than one match, or the head of an open PR: report only ("neither deletes ... asks whether to, nor offers").
    • Attended: show, ask once, delete only what is confirmed. Unattended: "never delete one".
      The cited range :141-147 still matches.
    • plugins/work-items/reference/issue-conventions.md:78-84 ("Decomposed parent close": "A wayfind map ... is out of scope ... /planning:wayfind closes it") plus decompose SKILL.md:176-179 (container default no). Together they leave no deleter for a no-container decompose from a map; amendment (2) fills that gap.
    • plugins/planning/skills/wayfind/SKILL.md:347 and :352-353 say "Keep the map's dossier branch ... until the destination's container closes, then delete it". The plan-route eval asserts "Output does not delete the dossier branch when the map closes" (plugins/planning/skills/wayfind/evals/evals.json:366-373). B would reverse that stated design.
    • git ls-remote --heads origin "dossier/*" this session returns 1 branch, dossier/15651-integrate-all-code-is-slop-talk. Map Map: integrate the 'All Code Is Slop (Except Mine)' talk into plugins and skills #15651 closed 2026-11-13T11:28Z, so a leaked branch exists on the remote today.

    Dissent considered

    B has fewer moving parts (no new Source map: field). B also leaves the straight-to-decompose route with no container unhandled, and it reverses SKILL.md:352 and that eval.

  7. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    Confirmed done-when for the decision above (owner direction of 2026-11-20 recorded there).

    • plugins/planning/skills/wayfind/SKILL.md step 8 gives the plan and PRD task descriptions it hands to /planning:plan and /planning:prd a Source map: #<n> line.
    • plugins/work-items/skills/decompose/SKILL.md reads a Source map: line as data, accepts it only when the named item carries the wayfind map label, and then treats the map as the source item.
    • With a container, decompose gives the container --parent <map> and adds the **Spec container:** comment to the map item, so the container close deletes the map's dossier branch.
    • When decompose publishes from a map, straight from #<map> or through Source map:, and the user declines the container, decompose runs the dossier-branch step for the map's branch at the end of publish.
    • On the one-change, decision-record and general-summary routes, wayfind's map close runs the same dossier-branch step.
    • The dossier-branch step lives in one shared copy, a work-items reference/ file or a work-items action, and every site (container close, decompose publish, wayfind map close) cites it instead of copying it; wayfind cites no path under plugins/work-items/skills/decompose/context/.
    • The shared step keeps today's behavior: attended, it shows the unreachable commits and the files they change, asks once, and deletes only what the user confirms; unattended, it never deletes and lists the branch as due; more than one matching branch, or a branch that is the head of an open pull request, is report-only in every mode.
    • The text under wayfind's destination table states the deletion or report point for every destination row, matching the steps above.
    • The eval case plugins/planning/evals/wayfind-build-set-closes-to-plan-and-keeps-dossier-branch/ is kept.
    • A new eval case folder under plugins/planning/evals/ covers a route that creates no container (one change, decision record or general summary), and its graders check that map close runs the dossier-branch step.
  8. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"900bd7d3df686935d14cdb7f3ab83f38d4ce8f97c6e454cadd29fe3c8911bb7e","body_sha256":"4f3a87e0a4e611ea99b0ccc088188766471aef6538e5191ad38b0e78d13ba388"}

  9. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"900bd7d3df686935d14cdb7f3ab83f38d4ce8f97c6e454cadd29fe3c8911bb7e","body_sha256":"4f3a87e0a4e611ea99b0ccc088188766471aef6538e5191ad38b0e78d13ba388"}

  10. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
  11. github-actions commented on Nov 21, 2026

    @github-actions
    Contributor
    No description provided.
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

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions