Skip to content

cracktro: add Spec-driven testing slide - #77695

Merged
pelikhan merged 5 commits into
mainfrom
pelikhan/cracktro-spec-driven-slide
Nov 14, 2026
Merged

pelikhan merged 5 commits into
mainfrom
pelikhan/cracktro-spec-driven-slide

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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/ctxutil example:

  • Extract: the Spec Extractor pulls the spec delta from a PR diff that adds OrBackground.
  • Specify: a human states intent in natural language ("nil should just work"), and the W3C Spec Writer agent formalizes it into a W3C-style README spec with RFC 2119 keywords (MUST, MUST NOT). The Spec Librarian confirms there is no drift.
  • Enforce: the Spec Enforcer writes spec_test.go from 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 spec sound theme.

Other changes

  • Deck is now 28 slides: updated docs/tests/talk.spec.ts (headings, counts), docs/README.md, and the cracktro SKILL.md.
  • SKILL.md gains a content-rule exception for slide 17's illustrative excerpt; speaker notes say it is illustrative.

Validation

  • node --check docs/public/cracktro/deck.js passes; visually verified in a local static server.
  • Playwright talk.spec.ts was not run: the Astro dev server fails locally because the sibling agentics checkout is missing. Please rely on CI for it.

pelikhan and others added 2 commits November 13, 2026 23:11
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]>
@pelikhan
pelikhan marked this pull request as ready for review November 14, 2026 07:18
Copilot AI adaptive review requested due to automatic review settings November 14, 2026 07:18
…c-driven-slide

# Conflicts:
#	.github/skills/cracktro/SKILL.md
#	docs/README.md
#	docs/tests/talk.spec.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 spec sound 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)

Comment thread docs/README.md Outdated
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.",
Comment thread docs/tests/talk.spec.ts Outdated
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
@pelikhan
pelikhan merged commit 6136c9d into main Nov 14, 2026
5 checks passed
@pelikhan
pelikhan deleted the pelikhan/cracktro-spec-driven-slide branch November 14, 2026 07:33
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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.

2 participants