Skip to content

docs(solutions): substrate-first inert→live seam-swap pattern (compliance arc)#953

Merged
ericodom merged 1 commit into
mainfrom
docs/inert-first-seam-swap-multi-pr-pattern
May 8, 2026
Merged

docs(solutions): substrate-first inert→live seam-swap pattern (compliance arc)#953
ericodom merged 1 commit into
mainfrom
docs/inert-first-seam-swap-multi-pr-pattern

Conversation

@ericodom
Copy link
Copy Markdown
Contributor

@ericodom ericodom commented May 8, 2026

Summary

New knowledge-track architecture-pattern doc capturing the meta-pattern that shipped the master compliance arc (~17 PRs over 2 days, 2026-05-07 → 2026-05-08).

Extends the existing inert-to-live-seam-swap-pattern-2026-04-25.md (Python-module scoped) with two dimensions:

  1. Substrate-first multi-layer ordering — DB schema → Terraform/IAM → Lambda shell → consumer code. The 2026-04-25 doc covered factory closures + seam_fn defaults at the Python-module scope; this doc generalizes to multi-layer infrastructure arcs.
  2. Throw-don't-no-op rule for stubs — the inert state must be operator-visible (DLQ depth alarm, smoke-test failure). Silent no-op stubs that ack messages without doing work were rejected explicitly in the U11.U2 plan.

Three case studies with verbatim PR + file citations:

  • U7→U8a→U8b — WORM anchor bucket + inert Lambda body + live S3 write (#917, #921, #927)
  • U10 — backend → extensions → admin UI (#937, #939, #941)
  • U11 — mutation → Terraform + stub → live runner → admin Exports (#944, #948, #950, #951)

Also adds a one-line backlink to the new doc in the prior-art doc so readers landing on the 2026-04-25 page find the multi-layer extension.

Test plan

  • Frontmatter validated parser-safe via plugin-bundled validate-frontmatter.py (exit 0).
  • All cited file paths + PR numbers verified to resolve on origin/main.
  • Markdown renders cleanly in GitHub preview.

Generation

/ce-compound full mode: 3 parallel research subagents (Context Analyzer, Solution Extractor, Related Docs Finder) + ce-session-historian foreground. Session history surfaced the prior failure modes (silent multi-week dark period, stub-and-replace anti-pattern) that motivate the throw-don't-no-op rule.

🤖 Generated with Claude Code

…ance arc)

Knowledge-track architecture-pattern doc capturing the meta-pattern
that shipped the master compliance arc (~17 PRs over 2 days,
2026-05-07–2026-05-08). Extends the existing
inert-to-live-seam-swap-pattern-2026-04-25.md (Python-module scoped)
with two dimensions surfaced during the compliance arc:

1. Substrate-first multi-layer ordering — DB schema → Terraform/IAM
   → Lambda shell → consumer code. The 2026-04-25 doc covered factory
   closures + seam_fn defaults at the Python-module scope; this doc
   generalizes to multi-layer infrastructure arcs spanning Aurora,
   S3 Object Lock buckets, SQS queues, and admin SPA.

2. Throw-don't-no-op rule for stubs — the inert state must be
   operator-visible (DLQ depth alarm, smoke-test failure). Silent
   no-op stubs that ack messages without doing work were rejected
   explicitly in the U11.U2 plan.

Three case studies with verbatim PR + file citations:
- U7→U8a→U8b — WORM anchor bucket + inert Lambda body + live S3 write
  (#917, #921, #927)
- U10 backend → extensions → admin UI (#937, #939, #941)
- U11 four-PR sequence: mutation → Terraform + stub → live runner
  → admin Exports page (#944, #948, #950, #951)

Includes:
- Stable-seam invariant (body swaps, contracts don't)
- Body-swap forcing functions in integration tests with call-count
  assertions (not just return-shape) to catch sibling-function escape
- CloudWatch alarm posture mirroring inert/live state
  (treat_missing_data flips on the live PR)
- Independent revertibility — substrate alone leaves a known-good
  inert state

Frontmatter validated parser-safe via the plugin-bundled
validate-frontmatter.py.

Also adds a one-line backlink in the prior-art doc so a reader landing
on the 2026-04-25 doc finds the multi-layer extension.

Generated via /ce-compound full mode (3 parallel research subagents +
ce-session-historian foreground).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ericodom ericodom merged commit 01350f7 into main May 8, 2026
5 checks passed
@ericodom ericodom deleted the docs/inert-first-seam-swap-multi-pr-pattern branch May 8, 2026 14:30
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