Repository navigation
cracktro: TLA+ Model-checked and Work queue, modeled slides - #78789
Conversation
Add two illustrative slides: - Safe outputs, model-checked (#16): TLC explores every job schedule of the compiled workflow against security invariants, seeded faults break exactly one invariant, and witnesses prove validated writes happen. - Work queue, modeled (#44): module map plus animated lifecycle, compare-and-swap, DAG/external-gate and mutant/witness diagrams. Co-authored-by: Copilot App <[email protected]>
Rename the TLA+ slide to Model-checked and make it an example in a new safe-outputs column below Safe outputs. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
…s with brand Replay the checker's representative skip-detection counterexample and successful-write witness as job-lane transition diagrams; single-hue --lg titles and toned glows on Model-checked and Work queue, modeled. Co-authored-by: Copilot App <[email protected]>
|
✅ PR Code Quality Reviewer completed the code quality review. PR Code Quality ReviewerOutcome: The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills... |
|
✅ Ponytail Reviewer completed successfully!
|
There was a problem hiding this comment.
🟡 Changes recommended
The slides present historical queue-ordering guarantees as current, introduce “Model- checked” into search and accessible labels, and leave the specs example list outdated.
3 open issues
What changed in this PR
Adds two illustrative slides to gh-aw’s standalone cracktro talk deck, showing how TLA+ and TLC verify the safe-output security model and work-queue protocol.
Changes:
- Replay safe-output counterexample and successful-write traces alongside security invariants.
- Visualize work-queue lifecycle, compare-and-swap publication, dependency gates, mutants, and witnesses.
- Integrate the slides into existing navigation columns and update presentation documentation.
| File | Description |
|---|---|
docs/public/cracktro/deck.js |
Adds both animated slides, styling, navigation links, and speaker notes. |
.github/skills/cracktro/slides.md |
Adds ordered entries and summaries for both slides. |
.github/skills/cracktro/mechanics.md |
Documents the Model-checked column beneath Safe outputs. |
Review effort: Max (adaptive)
| }); | ||
| dot.style.opacity = head(u, T.fault + 300, 90, false) || head(u, T.wit + 400, 110, true) ? 1 : 0; | ||
| }, | ||
| el: h("section", { class: "slide tso" }, h("div", { class: "slide-head" }, h("div", { class: "kicker" }, "TLA+ and TLC check every schedule of the compiled workflow"), h("h2", {}, letters("Model-"), letters("checked", "l-grad"))), svg), |
| Bands, navigation, transitions, audio and animated SVG flows in `docs/public/cracktro/deck.js` (content) and `runtime.js` (engine). Load when changing slide order, groups, transitions, sound or a flow diagram. | ||
|
|
||
| - **Bands:** the deck is a table of rows. A slide's `group` is its band: `intro` (title), `platform`, `security`, `mindset` (header-less, like the title and finale), `process`, `trust` (header-less), `cost`, `engineering`, `enterprise`, `cao`, `data`, `finale`. Rows follow each group's first appearance in the source, except that the `finale` row (`last` in `create`) is always moved last, so changing a slide's `group` moves it to that band without moving its code. Generic human/agent process patterns (swimlane flows with `SEQ`/`LANE` that any team can adopt) belong in `process` ("Human agent processes"); named loops that gh-aw runs on itself are worked examples of those patterns and hang in a column below the pattern they instantiate (`under: "<key>"`; kids follow source order, wherever their code sits). Each column head is one documented pattern family, so check `docs/src/content/docs/patterns/` before adding a column or example: `prr` Pull Request Review² (ReviewOps; ↓ Ponytail Reviewer, Issue Monster, Decide · Draft · Record, PR Sous Chef), `improvers` Daily Improvers (DailyOps, ResearchPlanAssignOps; ↓ Repo Assist, Research · Assign · Observe, Hunt · Falsify · Fix, Query · Ask · Grow, Semantic clustering, Go Fan), `dreaming` Dreaming (mining human/agent activity to design and optimize workflows, prompts, skills and linters; ↓ Mine · Refine · Apply, Explore · Reuse · Lint, Scan · Fix · Learn), `specs` Spec-driven testing (SpecOps; ↓ Spec · Model · Test), `docs` Docs that heal (↓ Multi-device tester, Findings that land, Personas · Probe · Patch), `commands` Repo Commands (ChatOps, LabelOps: the synthetic `slash_command` and `label_command` triggers; ↓ LabelOps state machines). Event-driven Hand-offs (IssueOps, DailyOps, ReviewOps, LabelOps) opens the main line, Repo Commands follows it, and Issues as intent (IssueOps) follows Pull Request Review² and Merge fast, unslop daily follows Daily Improvers, all without a column; standalone processes (Speech To Agent, For PMs) close the band's main line; their code sits after the worked examples, before Patch to PR. Columns work in any band: in `platform`, Continuous AI (GitHub Next's definition of the category) hangs under CI/CD meets Continuous AI (`continuous-ai`); in `engineering`, Skills in review (the Matt Pocock Skills Reviewer, measured) hangs under Skills (`skills`), and Week of daily runs (measured) hangs under Fuzzy schedules (`schedules`). `data` ("AW factory") keeps the measured history slides and Patch to PR. The deck.js `// ---------- bands ----------` block holds `BANDS` (id → header title/subtitle), `SOLO` and `PROTO`; runtime.js `create` builds `rows`, moves each `under` slide right after its `key` parent (setting `s.kids` and `k.parent`; an orphan throws), and inserts a generated header slide (`header: true`, `bh-` classes, one tile per main-line slide (examples omitted; a column head shows a `.bh-k` "↓ N" badge) with `data-go` that wrap into a 7-column grid above 8 slides (10 columns above 14) and use the kicker when a heading exceeds 32 characters, plus a band map) at the start of every band except `intro` and `finale`. `PROTO` (group → product name) marks bands that are not shipped product: every slide of the band, header included, gets a dashed "Research prototype · <name>" badge (`.proto`, top right); `cao` (header "Central Agentic Ops", subtitle "CAO · gh cao", badge "gh cao") is one. Each slide then gets `s.band` and each row `r.start`. Slide numbers are absolute and include headers, so adding a slide renumbers everything after it. Only `slides.md` holds numbers: add, move or remove the slide's row there (the tests read it) and nothing else. Headers and slides share their band's `THEME`. | ||
| - **Bands:** the deck is a table of rows. A slide's `group` is its band: `intro` (title), `platform`, `security`, `mindset` (header-less, like the title and finale), `process`, `trust` (header-less), `cost`, `engineering`, `enterprise`, `cao`, `data`, `finale`. Rows follow each group's first appearance in the source, except that the `finale` row (`last` in `create`) is always moved last, so changing a slide's `group` moves it to that band without moving its code. Generic human/agent process patterns (swimlane flows with `SEQ`/`LANE` that any team can adopt) belong in `process` ("Human agent processes"); named loops that gh-aw runs on itself are worked examples of those patterns and hang in a column below the pattern they instantiate (`under: "<key>"`; kids follow source order, wherever their code sits). Each column head is one documented pattern family, so check `docs/src/content/docs/patterns/` before adding a column or example: `prr` Pull Request Review² (ReviewOps; ↓ Ponytail Reviewer, Issue Monster, Decide · Draft · Record, PR Sous Chef), `improvers` Daily Improvers (DailyOps, ResearchPlanAssignOps; ↓ Repo Assist, Research · Assign · Observe, Hunt · Falsify · Fix, Query · Ask · Grow, Semantic clustering, Go Fan), `dreaming` Dreaming (mining human/agent activity to design and optimize workflows, prompts, skills and linters; ↓ Mine · Refine · Apply, Explore · Reuse · Lint, Scan · Fix · Learn), `specs` Spec-driven testing (SpecOps; ↓ Spec · Model · Test), `docs` Docs that heal (↓ Multi-device tester, Findings that land, Personas · Probe · Patch), `commands` Repo Commands (ChatOps, LabelOps: the synthetic `slash_command` and `label_command` triggers; ↓ LabelOps state machines). Event-driven Hand-offs (IssueOps, DailyOps, ReviewOps, LabelOps) opens the main line, Repo Commands follows it, and Issues as intent (IssueOps) follows Pull Request Review² and Merge fast, unslop daily follows Daily Improvers, all without a column; standalone processes (Speech To Agent, For PMs) close the band's main line; their code sits after the worked examples, before Patch to PR. Columns work in any band: in `platform`, Continuous AI (GitHub Next's definition of the category) hangs under CI/CD meets Continuous AI (`continuous-ai`); in `security`, Model-checked (TLA+/TLC) hangs under Safe outputs (`safe-outputs`); in `engineering`, Skills in review (the Matt Pocock Skills Reviewer, measured) hangs under Skills (`skills`), and Week of daily runs (measured) hangs under Fuzzy schedules (`schedules`). `data` ("AW factory") keeps the measured history slides and Patch to PR. The deck.js `// ---------- bands ----------` block holds `BANDS` (id → header title/subtitle), `SOLO` and `PROTO`; runtime.js `create` builds `rows`, moves each `under` slide right after its `key` parent (setting `s.kids` and `k.parent`; an orphan throws), and inserts a generated header slide (`header: true`, `bh-` classes, one tile per main-line slide (examples omitted; a column head shows a `.bh-k` "↓ N" badge) with `data-go` that wrap into a 7-column grid above 8 slides (10 columns above 14) and use the kicker when a heading exceeds 32 characters, plus a band map) at the start of every band except `intro` and `finale`. `PROTO` (group → product name) marks bands that are not shipped product: every slide of the band, header included, gets a dashed "Research prototype · <name>" badge (`.proto`, top right); `cao` (header "Central Agentic Ops", subtitle "CAO · gh cao", badge "gh cao") is one. Each slide then gets `s.band` and each row `r.start`. Slide numbers are absolute and include headers, so adding a slide renumbers everything after it. Only `slides.md` holds numbers: add, move or remove the slide's row there (the tests read it) and nothing else. Headers and slides share their band's `THEME`. |
| group: "process", | ||
| under: "specs", | ||
| notes: | ||
| "Work queue models: gh-aw's work queue is specified as a family of TLA+ modules in specs/work-queue, grouped here by concern, and TLC checks every interleaving of each. One, lifecycle: Work stays open until one Claim wins; a Completion or a cancellation makes it terminal and frozen, a released Claim returns it, and an effect needs authorization from a durable Completion (TerminalFreeze, SingleEffectiveClaim, EffectAuthorization). Two, compare-and-swap: the git log on the queue branch is the only authority; workers act on a possibly stale activation snapshot, and only safe outputs publish, appending only if the snapshot base still equals the head, otherwise replaying the log and retrying; the BrokenCAS mutant must break TerminalPersistence. Three, FairWorkQueue adds DAG dependencies, where a successor is admitted only after verified Results of its predecessors (the DAGJoinWitness reaches a join Claim), and external Issue and pull request gates, where a closed but unmerged pull request is not merged (DependencyAuthorization, ExternalTruth). Four, every Broken mutant must fail its invariant and every witness must be reached; WeakOrderingWitness finds an out-of-order Claim, which is why ordering is oldest-first best effort, not strict FIFO. Illustrative: the grouping, diagrams and timing are simplified; the module, invariant, mutant and witness names are real. Bounded checks are strong evidence, not a proof.", |
|
🎉 This pull request is included in a new release. Release: |


The talk had no slide showing how gh-aw uses TLA+ and TLC to verify the safe-outputs security model or the work queue protocol. This adds two security-band slides, both built from the real specs in
specs/.Slides
Update default model in Codex engine to o4-mini and adjust test expectations #16 Model-checked, a column example under Safe outputs (
key: "safe-outputs"/under). The left column is a transition diagram with one lane per compiled job (activation, agent, detection, safe outputs) and one row per state. It replays the checker's representative traces fromspecs/workflow-security/examples.json:skip-detectioncounterexample (orange, dashed):Detect:denyis ignored andExecuteends unchecked, breakingDetectionGate;successful-writewitness (purple, ◆): the same 21 states withDetect:pass, ending in a validated write.The middle column lists the real
CompiledWorkflow.tlainvariants. The right column shows TLC's breadth-first exploration, with result cards for the secure profile (exit 0), the negative control (exit 12) and the witness.pin claude action #44 Work queue, modeled: modules grouped by concern, plus four diagram panels (lifecycle, compare-and-swap publication, DAG with external gates, mutants and witnesses).
Notes for review
brand.md): single-hue--lgtitles (Safe outputs blue), glows in each element's own hue at alpha 55 or lower, blue vs orange with non-colour cues, and purple only for witnesses.pass/deny). An earlier "allow" label is gone.slides.mdrows andmechanics.md(the safe-outputs column) are updated.node --checkpasses. I previewed every animation phase in the browser. Playwrighttests/talk.spec.tswas not run becausedocs/node_modulesis missing locally.Screenshots
I could not upload slide captures from this environment. @pelikhan, please attach
.stagescreenshots of #16 (witness phase) and #44.