Skip to content

Test complete guidance delivery through process pipes - #296

Draft
nahiyankhan wants to merge 1 commit into
mainfrom
test/complete-cli-delivery
Draft

Test complete guidance delivery through process pipes#296
nahiyankhan wants to merge 1 commit into
mainfrom
test/complete-cli-delivery

Conversation

@nahiyankhan

Copy link
Copy Markdown
Collaborator

Category: infrastructure
User Impact: Strengthens evidence that guidance survives the CLI process boundary without adding truncation or changing runtime behavior.

Problem: Existing pipe regression coverage relied on output size and a final marker, which cannot detect missing content in the middle. Process delivery also needs to remain distinct from host receipt and model use.

Solution: Add 15 fixture-based tests that compare complete output or accepted material contents, including large Unicode packets, aggregate pulls, full menus, slow pipe readers, marker-shaped content, and explicit material outcomes. Document the tested boundary without claiming that every authored input survives loading/rendering or that the host/model received and used it.

Validation:

  • pnpm run quality:all: passed initially and again through the pre-push hook, including 241 tests across 19 files, package installation/import checks, release checks, workspace builds, and package validation.
  • pnpm check:terminology and git diff origin/main...HEAD --check: passed.
  • Existing lint warnings and two missing cover-policy warnings remain unchanged.

Changeset: patch documentation note added. No runtime, dependency, starter, output-format, or size-policy changes. Independent of the split Pass 1 fixes.

ghost Review: Not run: this slice changes tests and delivery-boundary documentation only; it changes no generation/review implementation or visual surface. Package validation passed in the full gate.

File changes
  • packages/ghost/test/producer-delivery.test.ts: seven subprocess tests compare complete Markdown/JSON content, full menu entries, cover/fallback/Skeleton content, explicit misses, and collision-safe material framing. Slow readers exercise pipe backpressure; expectations do not call the production formatter.
  • packages/ghost/test/material-delivery.test.ts: eight embedded tests check UTF-8 byte boundaries, complete large bundled text, explicit unavailable/reference states, shared-material carriers, and whole-text-or-rejection inspection behavior under existing limits.
  • packages/ghost/README.md: distinguish producer-output evidence from host transport and model application; do not substitute summaries for required content.
  • .changeset/document-delivery-evidence.md: release note for the delivery-boundary documentation.

Screenshots/Demos: N/A; no visual changes.

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