Skip to content

Flatten Ghost fingerprint packages#181

Merged
nahiyankhan merged 2 commits into
mainfrom
codex/flatten-ghost-package
Jun 24, 2026
Merged

Flatten Ghost fingerprint packages#181
nahiyankhan merged 2 commits into
mainfrom
codex/flatten-ghost-package

Conversation

@nahiyankhan

@nahiyankhan nahiyankhan commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Category: improvement
User Impact: Ghost packages are easier to read and configure because manifest, facets, and checks now live directly in the package directory.
Problem: The old .ghost/fingerprint/ plus optional config.yml layout split package identity, generation facets, local routing, and host-wrapper location overrides across too many concepts. That made exact package targeting and stack discovery harder to explain and easier to misuse.
Solution: Flatten packages to .ghost/{manifest,intent,inventory,composition,validate}.yml, remove config.yml and memory-dir behavior, keep exact --package <dir> for direct targets, and use GHOST_PACKAGE_DIR as the single env-only default for stack discovery and scoped packages.

Follow-up cleanup:

  • Treat .ghost/config.yml as fully removed outside historical/changelog text and negative tests.
  • Keep ghostDir semantics scoped to stack discovery package slots, while exact --package mode reports concrete package directories.
  • Add exact package examples using product-surface/, not .ghost.
  • Fix arbitrary YAML lint detection so normal YAML files are not guessed as validate.yml; schema-bearing Ghost YAML still routes to the right linter.

Validation:

  • pnpm check: passed
  • pnpm test: passed, 404 tests
  • pnpm build: passed in pre-push hook
  • node packages/ghost/dist/bin.js lint .ghost: passed, 0 issues
  • node packages/ghost/dist/bin.js verify .ghost --root .: passed, 0 issues

Changeset: added major changeset for @anarchitecture/ghost.

Ghost Review:

  • node packages/ghost/dist/bin.js check --base origin/main: passed, 0 findings
  • node packages/ghost/dist/bin.js review --base origin/main --format json: passed

Screenshots/Demos: N/A

@nahiyankhan nahiyankhan marked this pull request as ready for review June 24, 2026 12:58
@nahiyankhan nahiyankhan merged commit 22bf5df into main Jun 24, 2026
6 checks passed
@github-actions github-actions Bot mentioned this pull request Jun 24, 2026
nahiyankhan added a commit that referenced this pull request Jun 24, 2026
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