Skip to content

feat(phase3): mcp.md canonical from AEGIS wiki#22

Merged
stackbilt-admin merged 2 commits into
mainfrom
phase-3/mcp-canonical-from-wiki
May 2, 2026
Merged

feat(phase3): mcp.md canonical from AEGIS wiki#22
stackbilt-admin merged 2 commits into
mainfrom
phase-3/mcp-canonical-from-wiki

Conversation

@stackbilt-admin
Copy link
Copy Markdown
Member

Summary

Phase 3 of the wiki-as-SoT migration (AEGIS wiki: wiki-as-docs-sot-migration). The HTTP wiki proxy endpoint (aegis#582) shipped in aegis-daemon v2.10.6, so docs-sync-from-wiki.sh is now CI-runnable end-to-end. This PR:

  • Flips mcp-gateway-architecture from the parallel POC slot (mcp-from-wiki.md) to canonical (mcp.md).
  • Drops the legacy stackbilt-web/docs/mcp.md entry from docs-manifest.json — the gh-API path no longer produces a file at this slot; wiki is now the source of truth.
  • Retires the POC slot (src/content/docs/mcp-from-wiki.md deleted; /mcp-from-wiki/ route gone).
  • Patches docs-sync-from-wiki.sh to tolerate either response shape — { page: { ... } } (original aegis#582 spec) or { ... } directly (what aegis-daemon v2.10.6 actually returns). Discrepancy noted but not blocking.

After merge, docs.stackbilt.dev/mcp is sourced from AEGIS wiki at build time.

Verification

  • npm run build clean: 9 pages, /mcp/ rendered (43.6 KB), /mcp-from-wiki/ retired.
  • Wiki-distinctive content present in built HTML (grep for "Upstream/Downstream Architecture" → 3 hits, "three-consumer fractal" → 1 hit).
  • lastVerified: 2026-05-02 + sourceSlug: mcp-gateway-architecture propagate to the content file frontmatter.

Test plan

  • CI build passes
  • After deploy: https://docs.stackbilt.dev/mcp/ renders and shows wiki content (not legacy)
  • https://docs.stackbilt.dev/mcp-from-wiki/ returns 404 (POC slot retired)
  • No regression on the other 7 pages (api-reference, cli-reference, ecosystem, getting-started, img-forge, platform, security)

Follow-ups (not blocking)

  • File a small aegis-daemon issue to either (a) wrap the wiki HTTP response in { page: ... } per the aegis#582 spec, or (b) update the spec to reflect the unwrapped shape that v2.10.6 returns. Either is fine; the script tolerates both.
  • Phase 4: batch-migrate the remaining wiki-native candidates (evidence-engine-compose-and-trust-surface, evidence-engine-gap-fill-architecture, consult-harness-web-surface, trust-bundle-storage-architecture, trust-page-governance-timeline-architecture).

Kurt Overmier added 2 commits May 2, 2026 16:48
Phase 3 of the wiki-as-SoT migration (AEGIS wiki slug
`wiki-as-docs-sot-migration`). The HTTP wiki proxy endpoint
(`aegis#582`) shipped in aegis-daemon v2.10.6, so
docs-sync-from-wiki.sh is now CI-runnable end-to-end.

Changes:
- scripts/wiki-publish-manifest.json: flip
  mcp-gateway-architecture from POC slot (mcp-from-wiki.md) to
  canonical (mcp.md). Updated _note accordingly.
- docs-manifest.json: drop the legacy stackbilt-web/docs/mcp.md
  entry. mcp.md is now wiki-sourced; the gh-API path no longer
  produces a file at this slot.
- scripts/docs-sync-from-wiki.sh: parser tolerates either
  response shape — `{ page: { ... } }` (original aegis#582 spec)
  or `{ ... }` directly (what aegis-daemon v2.10.6 actually
  returns). Discrepancy noted; not blocking.
- src/content/docs/mcp.md: regenerated from wiki via the now-live
  HTTP path. Carries lastVerified + sourceSlug provenance.
- src/content/docs/mcp-from-wiki.md: retired POC slot.

Verified locally: `npm run build` produces clean /mcp/ page
with wiki content (43.6KB). /mcp-from-wiki/ no longer routes.

Per the migration plan, Phase 4 will batch the remaining
candidates (evidence-engine-*, consult-harness-*, trust-*).
PR #22 review surfaced that mcp.md's description ended mid-word
("...as stackbilde", missing the "r" of stackbilder.com) because
the previous `head -c 280` byte cut had no word-boundary
awareness.

Fix: pipe the summary through python to truncate at the last
space before 280 chars, strip trailing punctuation, and append
an ellipsis when truncation occurs. Re-synced mcp.md ends with
"...service bindings as…" — a clean word boundary.
@stackbilt-admin stackbilt-admin merged commit eca8b0d into main May 2, 2026
1 check passed
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