Skip to content

docs(llms): surface deploy-failure auto-debug path + CI discoverability guard#196

Merged
mastermanas805 merged 1 commit into
mainfrom
ci/llms-debug-discoverability-guard
Jun 6, 2026
Merged

docs(llms): surface deploy-failure auto-debug path + CI discoverability guard#196
mastermanas805 merged 1 commit into
mainfrom
ci/llms-debug-discoverability-guard

Conversation

@mastermanas805

Copy link
Copy Markdown
Member

What

Closes the agent-discoverability half of the failure-diagnosis CI program: an agent that hits a failed deploy must be able to find, from llms.txt alone, that the classified cause is served back over HTTP — and that can't silently regress.

Source: docs/ci/02-FAILURE-DIAGNOSIS-AND-AUTODEBUG.md; pairs with the functional live proof in e2e/live-ui-failure-diag.spec.ts (#195).

Changes

  • public/llms.txt — synced to content-repo HEAD (PR perf: lazy-load secondary marketing pages to shrink main bundle #27, a10699f): adds the "Debugging a failed deploy (agent self-recovery)" section + the /docs/troubleshooting-deploys.md reference (the /events autopsy loop: reason + last_lines + hint → fix → redeploy → re-poll).
  • src/lib/llmsContract.test.ts — new CONTRACT_MARKERS row asserting llms.txt contains BOTH the troubleshooting-deploys reference AND the /api/v1/deployments/:id/events debug surface. A content sync or docs edit that drops the debug path now reds CI (verified: removing the events marker fails the test by name).
  • scripts/fetch-content.mjs — adds the same two markers to the llms.txt requireMarkers lock-step guard, so a future upstream sync missing them PRESERVES the committed copy instead of reverting the documentation (rule 22).

Verification

  • npm run gate green (tsc + build + prerender + 1130 vitest, +1 = the new contract row).
  • Negative test (proves the guard works): removed /api/v1/deployments/:id/events from public/llms.txt → the new row failed by name (expected the deploy-failure auto-debug path … to include the substring "/api/v1/deployments/:id/events"), then restored.
  • Content PR perf: lazy-load secondary marketing pages to shrink main bundle #27 already carries both markers upstream, so the requireMarkers guard is a no-op today (the sync applies cleanly).

🤖 Generated with Claude Code

…ty guard

Closes the agent-discoverability half of the failure-diagnosis CI program: an
agent that hits a failed deploy must be able to find, from llms.txt alone, that
the classified cause is served back over HTTP — and that can't silently regress.

- public/llms.txt: synced to content-repo HEAD (PR #27, a10699f) — adds the
  "Debugging a failed deploy (agent self-recovery)" section + the
  /docs/troubleshooting-deploys.md reference (the /events autopsy loop:
  reason + last_lines + hint → fix → redeploy → re-poll).
- src/lib/llmsContract.test.ts: new CONTRACT_MARKERS row asserting llms.txt
  contains BOTH the 'troubleshooting-deploys' reference AND the
  '/api/v1/deployments/:id/events' debug surface — so a content sync or docs edit
  that drops the debug path reds CI (verified: removing the events marker fails
  the test by name).
- scripts/fetch-content.mjs: adds the same two markers to the llms.txt
  requireMarkers lock-step guard — a future upstream sync missing them PRESERVES
  the committed copy instead of reverting the documentation (rule 22).

Pairs with the FUNCTIONAL live proof in e2e/live-ui-failure-diag.spec.ts (#195):
discoverable AND demonstrably working.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mastermanas805
mastermanas805 enabled auto-merge (squash) June 6, 2026 05:45
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/assets/index-DV4gJTWd.js 162.15 KB (0%)
dist/assets/index-BsJUZYRr.css 6.13 KB (0%)

@mastermanas805
mastermanas805 merged commit ae37409 into main Jun 6, 2026
19 checks 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