Skip to content

Reconcile live contract drift (#1091); generate the middleware recipe's modules from the cookbook (#1095) - #1103

Merged
jimhoyd merged 1 commit into
mainfrom
claude/drift-dedupe-1091-1095
Sep 30, 2026
Merged

jimhoyd merged 1 commit into
mainfrom
claude/drift-dedupe-1091-1095

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

Closes #1091
Part of #1095

#1091: live contract drift

  • docs/RUNTIME-IMPLEMENTATION.md RIM-EXT-HERMETIC-001 no longer lists the removed benchmark command. A new narrow test in test/runtime-implementation-contract.test.ts compares that card's "runs that replay requests" list with hermeticHostCommands and its local-review list with localReviewCommands minus the hermetic ones (both from cli-command-metadata.ts). It only reads that card, so historical notes about removed commands elsewhere are still allowed.
  • docs/FRAMEWORK.md: MCP streaming is admitted on node and vercel and refused on aws. Vercel delivery is delegated to the provider, and local adapter support is not proof of a provider deployment.
  • docs/FRAMEWORK.md opening: the closed Track full auth/admin spike release acceptance across extension repos #58 link is replaced by the readiness register. It still says plainly that no independent security review has been performed.
  • docs/RELEASE-OPERATIONS.md: removed the recovery branch for the nonexistent template job and release:template script.
  • llms-full.txt regenerated.

#1095 item 1: middleware recipe mirror

  • examples/cookbook/ is now the only authored copy of the 14 middleware modules. It is also the only authored copy of the 3 function modules the recipe already mirrored and the existing test already checked.
  • npm run docs:cookbook-index (scripts/build-cookbook-index.ts, the existing cookbook generator already in check:docs --check) now also regenerates the standalone copies in recipes/middleware/{middleware,functions}/ from the files listed in recipe.yaml. npm run check refuses a stale copy.
  • The copies stay committed and byte-identical. The container build copies recipes/ straight from the checkout and the source-tree recipe loader reads them too, so build-time-only generation would have needed Dockerfile and loader changes.
  • The mirror test in test/recipes.test.ts is kept. scripts/package-smoke.ts now also checks that every packed recipes/middleware/*/*.mjs equals the packed cookbook file.
  • Authored lines removed: 269 (259 middleware + 10 function lines). They are now generated rather than hand-maintained. Net repository lines are unchanged because the shipped copies must stay standalone.
  • Docs: docs/MIDDLEWARE-EXAMPLES.md, docs/RECIPES.md.

Items 2 (MCP run_tests vs run_test) and 3 (shared skill facts) are not changed here. The assessment is commented on #1095, and those items stay open.

Evidence

  • npm run typecheck, npm run typecheck:tooling: pass.
  • npm run verify: lint, check, build and tests all ran. There was one failure, test/sandbox-pool.test.ts "the deadline kills the worker with 504…" (a timing test in an area this PR does not touch). It passed 12/12 when rerun on its own. npm run verify:workspaces passed on its own.
  • npm run test:package: pass (packed archive, including the new recipe mirror check).

🤖 Generated with Claude Code

…ipe's modules from the cookbook

#1091: drop the removed `benchmark` command from RIM-EXT-HERMETIC-001 and assert
that card's command lists against cli-command-metadata.ts; FRAMEWORK.md states
MCP streaming is admitted on node and vercel and refused on aws, and links the
readiness register instead of closed #58 while keeping the unperformed-review
limitation; RELEASE-OPERATIONS.md loses the nonexistent release:template
recovery branch; llms-full.txt regenerated.

#1095 item 1: examples/cookbook is the one authored copy of the 14 middleware
modules (and the 3 function modules the recipe shares). npm run
docs:cookbook-index regenerates recipes/middleware's standalone copies and
npm run check refuses a stale one; package smoke checks the packed copies
equal the packed cookbook.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jimhoyd
jimhoyd enabled auto-merge (squash) September 30, 2026 20:59
@jimhoyd
jimhoyd merged commit a8675a1 into main Sep 30, 2026
43 of 45 checks passed
@jimhoyd
jimhoyd deleted the claude/drift-dedupe-1091-1095 branch September 30, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant