Skip to content

cracktro: TLA+ Model-checked and Work queue, modeled slides - #78789

Merged
pelikhan merged 4 commits into
mainfrom
pelikhan/tla-cracktro-slides
Nov 17, 2026
Merged

pelikhan merged 4 commits into
mainfrom
pelikhan/tla-cracktro-slides

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

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 from specs/workflow-security/examples.json:

    • the skip-detection counterexample (orange, dashed): Detect:deny is ignored and Execute ends unchecked, breaking DetectionGate;
    • the successful-write witness (purple, ◆): the same 21 states with Detect:pass, ending in a validated write.

    The middle column lists the real CompiledWorkflow.tla invariants. 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

  • Both slides follow the new brand guide (brand.md): single-hue --lg titles (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.
  • The detection verdicts match the model (pass/deny). An earlier "allow" label is gone.
  • slides.md rows and mechanics.md (the safe-outputs column) are updated.
  • Speaker notes mark both slides as illustrative: layouts and timing are simplified, while the module, event, invariant, fault and witness names are real.
  • node --check passes. I previewed every animation phase in the browser. Playwright tests/talk.spec.ts was not run because docs/node_modules is missing locally.

Screenshots

I could not upload slide captures from this environment. @pelikhan, please attach .stage screenshots of #16 (witness phase) and #44.

pelikhan and others added 4 commits November 17, 2026 09:07
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]>
…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]>
@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 17:21
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 17:21
@pelikhan
pelikhan merged commit 45d0dd4 into main Nov 17, 2026
19 checks passed
@pelikhan
pelikhan deleted the pelikhan/tla-cracktro-slides branch November 17, 2026 17:21
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

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.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Generated by Ponytail Reviewer for #78789 · codex · routed: gpt61 medium · ~8 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

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 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.",
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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