Skip to content

Add a single list of experimental features for the compiler, docs and cracktro deck - #78206

Merged
pelikhan merged 4 commits into
mainfrom
copilot/add-experimental-features-list
Nov 16, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/add-experimental-features-list

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Before this change, three places decided independently whether a feature was experimental: compiler warning strings, docs pages and their sidebar group, and the cracktro deck's experimental: badges. They could drift apart. This PR adds pkg/workflow/data/experimental_features.json as the single list, and tests check each place against it.

Schema

{
  "id": "token-broker",
  "name": "OIDC token broker",
  "compiler_warning": "token-broker",          // text after "Using experimental feature: "
  "engine": "agy",                             // built-in engine with experimental: true
  "docs": ["/reference/enterprise-configuration/"],  // pages that must say "experimental"
  "docs_group": true,                          // listed in the docs sidebar Experimental group
  "cracktro": [{ "slide": "OIDC token broker", "badge": "deployment-owned broker" }]
}

Every field except id and name is optional.

Changes

  • Compiler
    • experimental_features.go embeds the list and exposes ExperimentalFeatures() and LookupExperimentalFeature().
    • In compiler_validators.go, the inline warning structs are replaced by experimentalFeatureChecks, a table of feature ID → predicate. Warning text comes from the list, and the messages are unchanged.
    • Connector warnings keep their connectors.<alias> suffix.
  • Go tests (experimental_features_test.go)
    • The list is well formed: unique IDs, unique warnings, and docs_group is only set when docs is set.
    • Compiler checks match compiler_warning entries in both directions.
    • Each engine's IsExperimental() matches the engine entries.
    • Every docs page exists and mentions "experimental".
    • The Experimental group in docs/astro.config.mjs matches the docs_group entries.
  • Docs
    • Added an experimental note to three pages that lacked one: experimental/qmd.md, user-rate-limit in reference/rate-limiting-controls.md, and the microVM runtimes in reference/agent-runtimes.md.
  • Cracktro
    • docs/tests/talk.spec.ts builds the expected badged slides and exact badge labels from the list, replacing the hardcoded slide list.
    • The deck still hardcodes its badge strings; the test catches any drift.
    • The cracktro skill now points to the list.

Review notes

  • Some entries are experimental only in the docs and deck, with no compiler warning: experiments, model-router, microvm-runtime, qmd, plus the pages in the docs Experimental group. Whether the compiler should also warn for these is left for a follow-up.
  • The Playwright talk spec has not been run: docs/node_modules was not installed in the environment that produced this PR.

@pelikhan pelikhan changed the title Add centralized list of experimental features Add a single list of experimental features for the compiler, docs and cracktro deck Nov 16, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 16, 2026 02:20
Copilot AI adaptive review requested due to automatic review settings November 16, 2026 02:20
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

@github-actions

This comment has been minimized.

@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 #78206 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@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 · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification 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.

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

@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 · ~5 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@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 630ab1c6273ae710e10917636523055f93a0a8c9 against the compiler threat-detection contract (v1.0.102), including the experimental-warning requirement in §7.11 and the documentation/test surfaces changed by this PR.

Blocking finding

  • docs/src/content/docs/experimental/qmd.md:6: the frontmatter closing --- was removed, leaving the document frontmatter unterminated and causing the admonition and page body to be parsed as frontmatter. Restore the delimiter before the admonition.

No specification synchronization is proposed: the registry/compiler refactor preserves the existing warning behavior and the formal contract does not need a normative change. Static review only; the PR description notes the Playwright talk spec was not run.

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

sidebar:
order: 820
---
:::caution[Experimental]

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.

The frontmatter closing delimiter was removed while adding this admonition. The opening --- at line 1 now remains unterminated, so Astro will parse the :::caution block and the rest of the document as YAML/frontmatter instead of page content. Please restore a --- line after order: 820 before the admonition.

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.

Restored the delimiter in 8bd71c4 and added a frontmatter regression test.

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 missing closing frontmatter delimiter in qmd.md causes Markdown to be parsed as YAML, preventing Astro from building the documentation.

1 open issue
What changed in this PR

This PR centralizes gh-aw’s experimental-feature metadata so compiler warnings, documentation, and cracktro badges can be checked against one shared list.

Changes:

  • Adds an embedded feature registry and derives compiler warning text from it.
  • Adds consistency tests for compiler checks, engines, documentation, sidebar entries, and deck badges.
  • Adds experimental notices to three documentation pages and updates cracktro authoring guidance.
File Description
pkg/​workflow/​experimental_features.go Embeds the registry and exposes feature lookup helpers.
pkg/​workflow/​experimental_features_test.go Validates registry consistency with compiler, engines, and docs.
pkg/​workflow/​data/​experimental_features.json Defines shared experimental-feature metadata.
pkg/​workflow/​compiler_validators.go Uses registry warning text while preserving connector alias suffixes.
docs/​tests/​talk.spec.ts Checks deck slides and exact badge labels against the registry.
docs/​src/​content/​docs/​reference/​rate-limiting-controls.md Marks user rate limiting as experimental.
docs/​src/​content/​docs/​reference/​agent-runtimes.md Identifies microVM runtimes as experimental.
docs/​src/​content/​docs/​experimental/​qmd.md Adds an experimental caution for QMD search.
.github/​skills/​cracktro/​SKILL.md Points badge-authoring guidance to the shared registry.

Review effort: Balanced (dynamic)

@github-actions

Copy link
Copy Markdown
Contributor

🏗️ Design Decision Gate — ADR Required

This PR makes significant changes to core business logic (>100 new lines) but does not have a linked Architecture Decision Record (ADR).

📄 Draft ADR committed: docs/adr/78206-single-source-list-for-experimental-features.md — review and complete it before merging.

🔒 This PR cannot merge until an ADR is linked in the PR body.

📋 What to do next
  1. Review the draft ADR committed to your branch — it was generated from the PR diff

  2. Complete the missing sections — add context the AI couldn't infer, refine the decision rationale, and list real alternatives you considered. Resolve the [TODO: verify] marker in Alternative 2 (why generating the docs and deck from the list was not chosen).

  3. Commit the finalized ADR to docs/adr/ on your branch

  4. Reference the ADR in this PR body by adding a line such as:

    ADR: ADR-78206: Single Source List for Experimental Features (link unavailable: invalid HTTPS URL)

Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision.

❓ Why ADRs Matter

"AI made me procrastinate on key design decisions. Because refactoring was cheap, I could always say "I'll deal with this later." Deferring decisions corroded my ability to think clearly."

ADRs create a searchable, permanent record of why the codebase looks the way it does. Future contributors (and your future self) will thank you.

📋 Michael Nygard ADR Format Reference

An ADR must contain these four sections to be considered complete:

  • Context — What is the problem? What forces are at play?
  • Decision — What did you decide? Why?
  • Alternatives Considered — What else could have been done?
  • Consequences — What are the trade-offs (positive and negative)?

All ADRs are stored in docs/adr/ as Markdown files numbered by PR number (e.g., 78206-single-source-list-for-experimental-features.md for PR #78206).

🏗️ ADR gate enforced by Design Decision Gate 🏗️ · pi · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 8.6K · ◷
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-cf31c0c3-45c0-4a57-b365-787086d2c86e","parents":[],"payload":{"id":"ldg-95455d9d-07cd-4ab8-957f-6d675141a5f9","operation":"append","value":{"finding_count":1,"head_sha":"630ab1c6273ae710e10917636523055f93a0a8c9","outcome":"regression"}},"sha":"sha256:95b78931b1b9b8da95227ef012757c2a01109550133bdedf1343bd594e8a5147","timestamp":"2026-11-16T02:28:57.775Z","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.

Found one blocking documentation correctness issue: the QMD page no longer closes its YAML frontmatter before the admonition, which can break Astro parsing/builds. The inline comment identifies the fix. Static review only; tests were not run per review instructions.

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

sidebar:
order: 820
---
:::caution[Experimental]

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.

The closing --- for the YAML frontmatter was removed here. As a result, the :::caution block is parsed as part of the frontmatter, so this page can lose its metadata or fail the Astro build. Please restore the closing delimiter after order: 820 and place the admonition in the Markdown body.

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.

Restored the delimiter in 8bd71c4 and added a frontmatter regression test.

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-99fc9890-c7dd-43bd-b254-f20a307118b2","parents":[],"payload":{"id":"ldg-4556e717-657e-4486-9939-e0dbe798cd98","operation":"append","value":{"finding_count":1,"head_sha":"630ab1c6273ae710e10917636523055f93a0a8c9","outcome":"findings"}},"sha":"sha256:720c4699486a244f2a8dd38cdaf0a44691c424db01fb974a7cebc0b1fbbd42f1","timestamp":"2026-11-16T02:31:59.539Z","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.

Skills-Based Review 🧠

Applied /diagnosing-bugs, /tdd and /improve-codebase-architecture. Requesting changes because the QMD docs page now has broken frontmatter.

📋 Key Themes & Highlights

Key Themes

  • Broken docs frontmatter (blocking): docs/src/content/docs/experimental/qmd.md lost its closing ---, so the YAML runs to line 39 and fails to parse.
  • Single source of truth gap: Using experimental feature: config is hardcoded at pkg/cli/add_package_manifest_parse.go:192, outside experimental_features.json. This line is not in the diff. Either add an entry with compiler_warning: "config" or document why it is excluded.
  • Test coverage: The new tests check list shape and check/warning consistency, but not exact message parity with the old strings. A table test covering every check ID would lock in the "messages unchanged" promise and guard the runtime panic path.

Positive Highlights

  • ✅ One table (experimentalFeatureChecks) replaces duplicated warning logic.
  • ✅ Bidirectional consistency tests between checks and warnings.
  • ✅ The notes added to agent-runtimes.md and rate-limiting-controls.md are accurate.

Not Verified

  • The Astro docs build and the docs/tests/talk.spec.ts Playwright spec were not run because docs/node_modules is absent.
  • The targeted Go tests (TestExperimental|Experimental) pass.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~10 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again

sidebar:
order: 820
---
:::caution[Experimental]

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.

[/diagnosing-bugs] The frontmatter is broken. The closing --- on the old line 7 was replaced by the :::caution block, so the YAML now runs to line 39 and fails to parse (while scanning a simple key). The Astro docs build will fail or render this page incorrectly.

💡 Suggested fix

Restore the closing delimiter after order: 820 and keep the caution block in the body:

sidebar:
  order: 820
---
:::caution[Experimental]
QMD documentation search is experimental and may change.
:::

The Go test only checks that the word "experimental" appears, so it cannot catch this. A frontmatter parse check in the docs tests would.

@copilot please address this.

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.

Restored the delimiter and added a YAML frontmatter regression test in 8bd71c4.


func TestExperimentalFeatureChecksMatchList(t *testing.T) {
t.Parallel()
checked := map[string]bool{"connectors": true}

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.

[/tdd] The pre-seeded connectors entry is a special case that skips the compiler-check loop. It is only correct because connectors is emitted by experimentalFeatureWarning("connectors") in compiler_validators.go, not by a check entry. A reader cannot tell that from this line.

💡 Suggested change

Add a one-line comment explaining why connectors is exempt, or give it a dedicated test that asserts its alias-based warning directly.

@copilot please address this.

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.

Explained the separate connector path and checked its warning resolves in 8bd71c4.

var listed []string
for _, feature := range ExperimentalFeatures() {
if feature.DocsGroup {
listed = append(listed, feature.Docs[0])

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.

[/tdd] feature.Docs[0] compares only the first docs page. If a feature sets docs_group but lists several docs pages, the sidebar check silently ignores the rest.

💡 Suggested change

Assert len(feature.Docs) == 1 when DocsGroup is set, or iterate over all feature.Docs entries.

@copilot please address this.

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.

The sidebar comparison now includes every listed page in 8bd71c4.

func experimentalFeatureWarning(id string) string {
feature, ok := LookupExperimentalFeature(id)
if !ok || feature.CompilerWarning == "" {
panic(fmt.Sprintf("BUG: workflow: experimental feature %q has no compiler_warning in data/experimental_features.json", id))

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.

[/diagnosing-bugs] This panic runs on every compile, not only in tests. An ID that is missing compiler_warning in the JSON crashes the compiler. The check is a useful guard, but it should be covered by a table test that every check ID resolves, so the panic is never reached in a released build.

@copilot please address this.

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.

The existing table check covers each predicate ID; 8bd71c4 also checks the separately emitted connector ID.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (docs/src/content/docs/experimental/qmd.md:6): address unresolved feedback - Review comment
  3. Review (docs/src/content/docs/experimental/qmd.md:6): address unresolved feedback - Review comment
  4. Review (docs/src/content/docs/experimental/qmd.md:6): address unresolved feedback - Review comment
  5. Review (docs/src/content/docs/experimental/qmd.md:6): address unresolved feedback - Review comment
  6. Review (pkg/workflow/experimental_features_test.go:43): address unresolved feedback - Review comment
  7. Review (pkg/workflow/experimental_features_test.go:119): address unresolved feedback - Review comment
  8. Review (pkg/workflow/experimental_features.go:70): address unresolved feedback - Review comment
  9. Fix failing check build (FAILURE): Check run.
  10. Fix failing check impacted-go-tests (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "30d010a53e003cd7f05450a98d100fbd7e6405c8",
  "kind": "requested",
  "schema_version": "1",
  "state": "d36da1ffdb5a54de6ad90eb1b7c3e36354ca5cc0b1be5cea5e043f9da7eb4fef",
  "work": [
    "2fc295a85405f8ca3863d80de94a2d989ec39e1db1323b2b76f6bc5f18dd2e73",
    "31a89414d3a5da1c068576b36df1822fa88526755cf5d23881e31db9d16e43a8",
    "42e5d572d9d75b7168fe7d0aeda0717cc07e65ed240f6d299e6fec661214f1ac",
    "46e7378054000e1bbc45c47c3cf053abd92a013ba79d590dacfc0ce5af8c06fb",
    "4a376c8737c309db8dd6d65758f392a99a7250f22cb6702f00c8dfe3b0b6ec48",
    "62ad6d9237138827089b2170d403531899e6866b00333a7bb87bd6f6f65c3de1",
    "922d7b3ea0f2dd5dd220264ca5095213f66ec5db54701fba24c5306cbad04853",
    "aca3c8d963ee8e874f12b87298274b556720c37333e70be55676f9a60298edec",
    "f7883e8c8105930e955354caa741d783bcca067e66097fe9612fb72b90823998"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

…tal-features-list

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

Copilot AI commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:...

Merged main in 315b319 and addressed the review and CI findings in 8bd71c4. Targeted Go tests pass; the Astro build is blocked locally by npm registry DNS failures. The final validation gate is still running.

Copilot AI requested a review from gh-aw-bot November 16, 2026 03:19
@pelikhan
pelikhan merged commit 5364aa7 into main Nov 16, 2026
114 checks passed
@github-actions
github-actions Bot deleted the copilot/add-experimental-features-list branch November 24, 2026 02:03
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.

4 participants