Repository navigation
cracktro: add Spec-driven testing slide - #77695
Merged
Merged
Conversation
Humans state intent in natural language, the W3C Specification Writer agent formalizes it with RFC 2119 keywords, agents extract specs from PR diffs, a librarian checks drift and an enforcer turns the spec into tests, using an illustrative pkg/ctxutil example. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
pelikhan
marked this pull request as ready for review
November 14, 2026 07:18
…c-driven-slide # Conflicts: # .github/skills/cracktro/SKILL.md # docs/README.md # docs/tests/talk.spec.ts
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The change still contains unresolved documentation and workflow-diagram inconsistencies, including conflicting slide counts, an incorrectly labeled PR reviewer, and a package-coverage claim that does not match the extractor configuration.
4 open issues
What changed in this PR
Adds slide 17, “Spec-driven testing,” to the interactive cracktro talk deck, illustrating how specifications, agents, and generated tests reinforce one another through an illustrative ctxutil example.
Changes:
- Adds an animated Extract → Specify → Enforce flow, workflow labels, and a dedicated
specsound theme. - Updates slide counts, headings, navigation assertions, documentation, and cracktro content rules for the 31-slide deck.
- Documents the slide’s illustrative content and speaker-note requirements.
| File | Description |
|---|---|
| docs/tests/talk.spec.ts | Updates the expected 31-slide count, heading list, navigation assertions, and speaker-note coverage. |
| docs/README.md | Updates the public deck description and shareable slide range for the 31-slide presentation. |
| docs/public/cracktro/deck.js | Adds the animated spec-driven testing slide, SVG flow, workflow labels, speaker notes, and spec sound theme. |
| .github/skills/cracktro/SKILL.md | Updates deck metadata and documents the new slide’s illustrative-content exception. |
Review effort: Lite (dynamic)
| The [interactive talk](https://github.github.com/gh-aw/cracktro/) is served from | ||
| `public/cracktro/` and ships with the normal docs build and Pages deployment. | ||
| It is a standalone thirty-slide deck, separate from the homepage slideshow, linked | ||
| It is a standalone thirty-one-slide deck, separate from the homepage slideshow, linked |
| g += `<path class="fm-wire ${c}" id="${id}" d="${d}" marker-end="url(#sdd${c === "g" ? "G" : "P"})"/>`; | ||
| if (lab.length) g += `<text class="mra-l ${c}" x="${lx}" y="${ly}" text-anchor="${an}">${lab.map((l, k) => `<tspan x="${lx}" dy="${k ? 26 : 0}">${l}</tspan>`).join("")}</text>`; | ||
| } | ||
| g += agent("sddExtractor", PX[0] + PW / 2, 106, 240, "Spec Extractor") + agent("sddWriter", 1271, 106, 260, "W3C Spec Writer") + agent("sddEnforcer", PX[2] + PW / 2, 106, 240, "Spec Enforcer"); |
| sound: "spec", | ||
| palette: ["#8957e5", "#238636", "#1f6feb", "#d29922"], | ||
| notes: | ||
| "Spec-driven testing, as gh-aw practices it on itself. Agents keep the specification alive instead of letting it rot: on every pull request a reviewer extracts the spec delta from the code diff and updates the package spec on the branch, while a daily extractor walks every package README round-robin. Humans join in plain natural language: a maintainer states the intent, and the W3C Specification Writer agent turns it into W3C-style normative text with RFC 2119 keywords such as MUST and MUST NOT. A librarian audits all specs daily for staleness and cross-package conflicts. An enforcer then writes spec tests from the README, deliberately not from the source, so the tests check the contract rather than the implementation, and those tests guard the next change. The code, spec and test excerpt shown is an illustrative, simplified view of gh-aw's ctxutil package; the workflow names listed are gh-aw's own spec workflows.", |
| await page.goto("/gh-aw/cracktro/"); | ||
| await expect(page).toHaveTitle("GitHub Agentic Workflows Talk"); | ||
| await expect(page.locator(".slide")).toHaveCount(30); | ||
| await expect(page.locator(".slide")).toHaveCount(31); |
…c-driven-slide # Conflicts: # .github/skills/cracktro/SKILL.md
…c-driven-slide # Conflicts: # .github/skills/cracktro/SKILL.md # docs/public/cracktro/deck.js # docs/tests/talk.spec.ts
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The talk deck had no slide on how gh-aw keeps its specifications alive with agents. This adds one (slide 17, "loops" group) built from the repo's own spec workflows.
What the slide shows
An animated three-lane flow using an illustrative
pkg/ctxutilexample:OrBackground.MUST,MUST NOT). The Spec Librarian confirms there is no drift.spec_test.gofrom the spec, not the source; tests pass and a green loop shows them guarding the next change.A chip row names the real workflows/agents: spec-extractor, pr-specification-reviewer, spec-librarian, spec-enforcer, w3c-specification-writer, weekly-safe-outputs-spec-review. It also adds a
specsound theme.Other changes
docs/tests/talk.spec.ts(headings, counts),docs/README.md, and the cracktroSKILL.md.SKILL.mdgains a content-rule exception for slide 17's illustrative excerpt; speaker notes say it is illustrative.Validation
node --check docs/public/cracktro/deck.jspasses; visually verified in a local static server.talk.spec.tswas not run: the Astro dev server fails locally because the siblingagenticscheckout is missing. Please rely on CI for it.