Skip to content

Skip Design Decision Gate noops and add Decide - Draft - Record slide - #78278

Merged
pelikhan merged 6 commits into
mainfrom
pelikhan/design-decision-gate
Nov 16, 2026
Merged

pelikhan merged 6 commits into
mainfrom
pelikhan/design-decision-gate

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Design Decision Gate spent most of its runs on noops. About 89% of the successful runs did nothing, often because the PR had already merged by the time the agent started, and each noop still cost about 0.45 AIC and 6.5 minutes. The workflow is also a strong example for the cracktro talk: 8 of the 9 ADRs it drafted were merged.

Workflow: skip deterministic noops

  • Adds an on.steps pre-activation github-script step (adr_gate) that checks the live PR state on pull_request events. It skips the run only when the agent would deterministically noop:
    • the triggering label is not implementation;
    • the PR is merged or closed;
    • the PR has no implementation label, no .design-gate.yml, and 100 or fewer added lines in the default business-logic directories.
  • Draft PRs and PRs that already have an ADR still run, because the agent reviews ADR/implementation divergence.
  • Slash commands and manual dispatches always run, and API errors fail open.
  • The result is exposed as jobs.pre-activation.outputs.adr_gate_needed, and a top-level if: uses it to skip the agent. Downstream jobs are skipped with it.
  • I tested the check against real PRs.
  • The compiler put the label filter on the activation job, so pre_activation runs on every labeled event. That is cheap, and the script exits early on a non-implementation label.

Cracktro: slide 21 "Decide - Draft - Record"

  • Flow: PR ready, then Design Decision Gate drafts an ADR, then Mona (the maintainer) reviews it. The ADR merges with the code into docs/adr.
  • Read-back: a final "Next agent" step reads the ADR to learn why the feature was built that way. This matches how PR Specification Reviewer and coding agents use docs/adr today.
  • Data and rules: all data on the slide is illustrative. The slides.md row, the content-rules exception, the data-refresh index entry and refresh/decide-draft-record.{md,sh} are all added. The data-refresh table numbering was already off by one, and this PR fixes it.

Review notes

  • I checked the slide in a local preview. The Playwright talk.spec.ts tests were not run locally because docs/node_modules was missing.

pelikhan and others added 3 commits November 15, 2026 21:05
Most runs fired on ready_for_review (no label filter), found the PR already
merged or below the 100-line business-logic threshold, and still started the
agent just to call noop (~0.45 AIC and ~6.5 min each).

Add an on.steps pre-activation check that reads the PR and skips activation
when it is closed/merged, or has no implementation label, no .design-gate.yml
and <=100 business-logic additions. Non-pull_request events and API errors
fail open to the agent. The agent prefetch stays as defense-in-depth.

Co-authored-by: Copilot App <[email protected]>
Illustrative PR → drafted ADR → maintainer review flow for the Design
Decision Gate, with a measured strip of ADRs on main and a refresh
mini-skill (refresh/decide-draft-record.{md,sh}).

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 05:25
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 05:25
@github-actions

github-actions Bot commented Nov 16, 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 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.5K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

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.

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

@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 16, 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 · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #78278 · copilot · gpt56 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

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

Found one blocking correctness issue in the refresh script: its history traversal records the newest add/rename date rather than each ADR's first-add date, which invalidates the measured monthly and 30-day figures for files changed after creation. The specialist pass was unavailable because its tool invocation was rejected; this review is based on the pre-fetched diff and targeted source inspection.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~2 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-bba9b144-d73d-4d57-b51f-fb21a1739544","parents":[],"payload":{"id":"ldg-51d5ccc0-1d38-4e76-8add-f60b942f94af","operation":"append","value":{"finding_count":1,"head_sha":"8f54ccd08a7b07b5fc02c167213d74a941f3749c","outcome":"findings"}},"sha":"sha256:3cb599738da925d07b3691a093250b15321d37c905932bd1c302538bc66697a9","timestamp":"2026-11-16T05:33:03.485Z","type":"ledger_append","version":1}
History

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

Overview

Reviewed PR head 755225247f5e40b4d9a953f3e06fbd46acbc1586 against the agentic-workflow source/lock compilation contract.

Finding

  • Blocking — source/lock drift: .github/workflows/design-decision-gate.md:29 adds the adr_gate pre-activation step and downstream gate output, but the checked-in .github/workflows/design-decision-gate.lock.yml contains neither adr_gate nor adr_gate_needed; its pre_activation job is unchanged. The published workflow therefore will not skip the claimed deterministic noops. Regenerate the lock and verify the emitted job and condition before merging.

Coverage

Static review only; the captured PR head was unavailable as a local Git object, so no compilation or tests were run. PR state/head were rechecked immediately before publication.

Generated by PR Specification Reviewer for #78278 · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-320f589f-5be1-4fbf-b6d4-68fa29165174","parents":[],"payload":{"id":"ldg-daaaed92-fc1b-457a-82b8-38c99ccbee79","operation":"append","value":{"finding_count":1,"head_sha":"755225247f5e40b4d9a953f3e06fbd46acbc1586","outcome":"regression"}},"sha":"sha256:6bccb0ecabdf095c43f350a22e9299827e587be8e6cd32e27a04821f0f9119d1","timestamp":"2026-11-16T05:35:32.156Z","type":"ledger_append","version":1}
History

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 helper can exit without emitting JSON and produce inconsistent historical metrics, while the workflow guards do not match the promised skip policy.

3 open issues
What changed in this PR

This PR reduces unnecessary Design Decision Gate agent runs and adds a cracktro slide showing how architecture decision records (ADRs) are drafted, reviewed, and reused.

Changes:

  • Adds a live PR pre-check and connects its result to workflow activation.
  • Adds the “Decide · Draft · Record” slide with an illustrative flow and measured ADR statistics.
  • Adds refresh tooling and updates the slide inventory, data index, and content rules.
File Description
docs/​public/​cracktro/​deck.js Adds the animated ADR flow and statistics strip.
.github/​workflows/​design-decision-gate.md Adds pre-activation checks to avoid unnecessary agent runs.
.github/​workflows/​design-decision-gate.lock.yml Compiles the checks, outputs, and activation conditions.
.github/​skills/​cracktro/​slides.md Registers the new slide and its takeaway.
.github/​skills/​cracktro/​refresh/​decide-draft-record.sh Computes ADR counts, statuses, and monthly additions.
.github/​skills/​cracktro/​refresh/​decide-draft-record.md Documents statistics refresh and validation.
.github/​skills/​cracktro/​data-refresh.md Links the refresh guide and adjusts slide numbering.
.github/​skills/​cracktro/​content-rules.md Documents the slide’s measured-data exception.

Review effort: Balanced (dynamic)

Resolve cracktro conflicts: keep both ddr- and ppx- CSS blocks in deck.js and
renumber the data-refresh index from slides.md (Decide · Draft · Record is #30,
Personas · Probe · Patch #34).

Co-authored-by: Copilot App <[email protected]>
Use the earliest add/rename date per ADR, read every metric from the last
commit on or before the snapshot day, and keep grep no-matches from aborting
under pipefail. The 2026-11-16 output is unchanged.

Co-authored-by: Copilot App <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

Automated status comments 6908172840, 6908173685, 6908175638, 6908178217, 6908181573, 6908267719 and 6908306374 are run reports and comment-memory ledgers, with no requested changes. No action is needed beyond the inline review threads, which are now resolved. The review findings they refer to are fixed in d961d8f (refresh script pinned to the snapshot commit), and the workflow skip policy is now described accurately in the PR description.

@pelikhan
pelikhan merged commit bd18c31 into main Nov 16, 2026
63 checks passed
@pelikhan
pelikhan deleted the pelikhan/design-decision-gate branch November 16, 2026 05:50
@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