Skip to content

Commit 5c7663a

Browse files
docs(dde): CI badge on the one-page integration — its fences get their own workflow
A visitor landing on INTEGRATION.md now sees, above the fold, that every command on the page is executed against a live endpoint on every push. The badge is backed by a dedicated badge-visible workflow (docs-contract) running the doc-curl contract exclusively, keeping the badge's meaning precise: green there means the page's runnable claims match the wire — not that the whole suite passed. Same guard class as the DDE workflow: lockfile check before setup-node, then the YAML zero-jobs guard. The reviewer table's standing-watch section gains the doc-curl row and names the dedicated workflow, so the table stays the single index of what CI actually runs. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent 89426c3 commit 5c7663a

3 files changed

Lines changed: 42 additions & 1 deletion

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Docs Wire Contract
2+
3+
# The INTEGRATION.md badge is this file's status, so a visitor landing on the
4+
# one-page integration sees — before reading a single command — that every
5+
# bash fence on the page is executed against a live documented endpoint on
6+
# every push. This workflow runs the doc-curl contract EXCLUSIVELY (the same
7+
# test also runs inside the main CI matrix), keeping the badge's meaning
8+
# precise: green here == the page's runnable claims match the wire.
9+
# Same guard class as dde.yml: lockfile check BEFORE setup-node (cache: npm
10+
# fails opaque when package-lock.json is absent), then the YAML zero-jobs
11+
# guard, then the contract.
12+
13+
on:
14+
push:
15+
branches: [main]
16+
pull_request:
17+
branches: [main]
18+
19+
jobs:
20+
docs-contract:
21+
name: INTEGRATION.md fences vs live endpoint
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v7
25+
- name: Guard - lockfile present + workspace sync (before setup-node)
26+
run: node scripts/check-lock-sync.mjs
27+
- uses: actions/setup-node@v7
28+
with:
29+
node-version: 22
30+
cache: npm
31+
- name: Guard - workflow YAML (zero-jobs trap)
32+
run: node scripts/check-workflows.mjs
33+
- run: npm ci
34+
- name: Execute every documented bash fence (doc-curl contract)
35+
run: node --test test/delivery/doc-curl-contract.test.js

‎INTEGRATION.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# CoreGuard DDE — Integration (one page)
22

3+
[![Docs Wire Contract](https://github.com/EslaM-X/coreguard/actions/workflows/docs-contract.yml/badge.svg)](https://github.com/EslaM-X/coreguard/actions/workflows/docs-contract.yml) · **every command on this page is executed against a live endpoint on every push**
4+
35
> **Execution verification does not decide delivery conformity.**
46
> Acceptance or rejection of the delivered work is a separate determination
57
> recorded by the parties, not derived from on-chain facts.

‎examples/delivery-fixture/README.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,12 @@ node examples/delivery-fixture/adversarial-runner.mjs --fuzz 50 [--seed 424242]
8080
| `adversarial-runner.mjs --fuzz 50` | random seed-deterministic stacks hold too | `fuzz : seed 424242 · 50 stacks · survived: 0` |
8181
| `make-fixture.mjs` | the evidence factory is deterministic | `git diff` empty — byte-identical regeneration |
8282

83+
| `node --test test/delivery/doc-curl-contract.test.js` | the docs cannot drift from the wire: every documented bash fence (incl. every `INTEGRATION.md` one) is executed against a live documented endpoint — a rewritten response shape or renamed decision string goes red by name | 1 pass · fences match the wire |
84+
8385
CI runs every one of these on each push — the table is not a promise, it is
84-
a standing watch.
86+
a standing watch. The one-page integration summary has its own badge-visible
87+
workflow for exactly this contract (`.github/workflows/docs-contract.yml`),
88+
so a visitor sees the page is wire-tested before reading a single command.
8589

8690
Performance budgets are on the same watch (own CI steps, fail-closed gates):
8791

0 commit comments

Comments
 (0)