Skip to content

List automatic guidance by ID in gather - #322

Draft
nahiyankhan wants to merge 1 commit into
experiment/universal-cascadefrom
fix/gather-automatic-ids
Draft

nahiyankhan wants to merge 1 commit into
experiment/universal-cascadefrom
fix/gather-automatic-ids

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Important

Draft. Do not merge before #319. This builds on #319 and targets its branch, so the diff shows only this change. Once #319 merges, retarget to main if GitHub does not do it automatically, rebase, and run the validation below before marking it ready for review.

Problem

With paired packages from #319, ghost gather prints every automatic guidance body under ### Automatically included on pull. ghost pull then delivers the same bodies again, because automatic guidance is part of every pull. One gather and pull cycle carries the whole automatic closure twice, and the menu grows with the core instead of staying a list of choices.

Change

  • Gather lists automatic guidance by ID with its Applies when payload, in bare-pull order. It adds one line telling the agent that every pull delivers these in full and not to request them by ID. This matches how the cover is already handled.
  • Gather JSON automatic entries drop body, and GhostGatherResult.automatic becomes CatalogMenuEntry[]. feat(ghost): add universal guidance packages #319 has not shipped, so no released API changes.
  • schema.md and ground.md describe the new menu.
  • The cascade test now asserts that both formats list the automatic IDs in order and contain none of their bodies, and that bare pull still delivers them.

Validation before marking ready

  • feat(ghost): add universal guidance packages #319 merged; this PR retargeted to main and rebased
  • pnpm test and pnpm check pass after the rebase
  • Run a validation on a real paired package (fingerprint plus universal), comparing the feat(ghost): add universal guidance packages #319 menu with this one:
    • total words across one gather and pull cycle, which should drop by the size of the automatic closure
    • agents still apply the automatic guidance in the output, including in sessions that gather but never pull
    • selection from the remaining menu is unchanged
  • Record the result in this PR before switching it from draft

🤖 Generated with Claude Code

Gather printed every automatic body under "Automatically included on
pull", and pull then delivered the same bodies again, so one gather and
pull cycle carried the core twice. Gather now lists automatic IDs with
their `for` payloads, matching how the cover is handled, and pull stays
the only place bodies are delivered. The JSON `automatic` entries drop
`body` accordingly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant