Make context the node retrieval field - #252
Merged
Merged
Conversation
Co-authored-by: Goose <opensource@block.xyz> Ai-assisted: true
Co-authored-by: Goose <opensource@block.xyz> Ai-assisted: true
Co-authored-by: Goose <opensource@block.xyz> Ai-assisted: true
nahiyankhan
approved these changes
Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Category: improvement
User Impact: Agents can use clearer
contextfrontmatter to decide which brand guidance applies without silently losing retrieval coverage.Problem: Node retrieval currently reads
description, so authors cannot rename the field tocontextwithout producing blank gather menus. A fingerprint-only migration would validate successfully while quietly making nodes undiscoverable.Solution: Make
contextcanonical throughout schema, catalog, gather, pull, review, serialization, validation, docs, and repo-owned packages. Keepdescriptionas a deprecated compatibility alias for one release, warn on its use, and serialize it back ascontextso existing packages remain retrievable during migration.Validation:
pnpm check: passedpnpm exec vitest run packages/ghost/test packages/context-control/test: passed, 180 passed and 1 skippedpnpm test: 203 passed and 1 skipped; one unrelated local environment failure insteering-controlbecauseprocess.execPathcontains a space andghostBin.split()attempts to execute/Users/chai/Library/Applicationghost validateforapps/docs/.ghostandpackages/vessel-light/.ghost: passed with no warningsghost validateforpackages/vessel-react/.ghost: passed with its existingcover-undeclaredwarningChangeset: added as a minor release because this introduces the public
contextretrieval capability.ghost Review:
ghost check --base main: not available in the current CLI; deterministic package and repository checks ran throughpnpm checkghost review --base main --include-memory: not available in the current CLI shape; review packet behavior is covered by the Ghost test suiteFile changes
.changeset/node-context-retrieval.mdRecords the new public node retrieval capability as a minor release.
packages/ghost/src/ghost-core/node/Adds canonical
contextschema and types, accepts deprecateddescription, and migrates the alias during serialization.packages/ghost/src/ghost-core/catalog/Resolves node context with canonical precedence and emits it through gather menu entries while retaining transition aliases.
packages/ghost/src/embed/andpackages/ghost/src/commands/Uses context in gather selection instructions, coverage, menu output, and pull packets; keeps deprecated JSON compatibility fields for one release.
packages/ghost/src/scan/fingerprint-package-lint.tsWarns when context is missing and when deprecated description frontmatter needs migration.
packages/ghost/src/review/Carries context through review baselines and material-backed review nodes.
packages/ghost/src/init-payloads/,packages/vessel-light/.ghost/,packages/vessel-react/{.ghost,fingerprint}/, andapps/docs/.ghost/Migrates repo-owned node frontmatter to
context; check documents retain their separatedescriptionschema.packages/ghost/src/skill-bundle/,README.md, anddocs/purposes.mdDocuments context as the retrieval payload and the one-release compatibility window.
packages/context-control/Updates the retrieval benchmark, model prompt, and viewer to evaluate node context.
apps/docs/src/Updates public examples and gather demonstrations to show context.
packages/ghost/test/Covers canonical context, deprecated alias reads, precedence, migration serialization, lint warnings, coverage, gather, pull, and embed output.
Screenshots/Demos: N/A; this changes framework terminology and output contracts without changing the rendered design.