Repository navigation
Add a single list of experimental features for the compiler, docs and cracktro deck - #78206
Conversation
… cracktro Co-authored-by: copilot-swe-agent[bot] <[email protected]>
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
This comment has been minimized.
This comment has been minimized.
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: 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 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.
|
|
✅ PR Specification Reviewer completed successfully! PR Specification 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.
|
|
✅ 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.
|
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Restored the delimiter in 8bd71c4 and added a frontmatter regression test.
There was a problem hiding this comment.
🟡 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)
🏗️ Design Decision Gate — ADR RequiredThis PR makes significant changes to core business logic (>100 new lines) but does not have a linked Architecture Decision Record (ADR). 📄 Draft ADR committed:
📋 What to do next
Once an ADR is linked in the PR body, this gate will re-run and verify the implementation matches the decision. ❓ Why ADRs Matter
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 ReferenceAn ADR must contain these four sections to be considered complete:
All ADRs are stored in
|
Comment MemoryPeek at saved memory (spec-review-history)History |
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Restored the delimiter in 8bd71c4 and added a frontmatter regression test.
Comment MemoryPeek at saved memory (review-history)History |
There was a problem hiding this comment.
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.mdlost its closing---, so the YAML runs to line 39 and fails to parse. - Single source of truth gap:
Using experimental feature: configis hardcoded atpkg/cli/add_package_manifest_parse.go:192, outsideexperimental_features.json. This line is not in the diff. Either add an entry withcompiler_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.mdandrate-limiting-controls.mdare accurate.
Not Verified
- The Astro docs build and the
docs/tests/talk.spec.tsPlaywright spec were not run becausedocs/node_modulesis 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] |
There was a problem hiding this comment.
[/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.
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
[/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.
There was a problem hiding this comment.
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]) |
There was a problem hiding this comment.
[/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.
There was a problem hiding this comment.
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)) |
There was a problem hiding this comment.
[/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.
There was a problem hiding this comment.
The existing table check covers each predicate ID; 8bd71c4 also checks the separately emitted connector ID.
|
🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:
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"
}
|
…tal-features-list Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Merged |

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 addspkg/workflow/data/experimental_features.jsonas 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
idandnameis optional.Changes
experimental_features.goembeds the list and exposesExperimentalFeatures()andLookupExperimentalFeature().compiler_validators.go, the inline warning structs are replaced byexperimentalFeatureChecks, a table of feature ID → predicate. Warning text comes from the list, and the messages are unchanged.connectors.<alias>suffix.experimental_features_test.go)docs_groupis only set whendocsis set.compiler_warningentries in both directions.IsExperimental()matches theengineentries.docspage exists and mentions "experimental".docs/astro.config.mjsmatches thedocs_groupentries.experimental/qmd.md,user-rate-limitinreference/rate-limiting-controls.md, and the microVM runtimes inreference/agent-runtimes.md.docs/tests/talk.spec.tsbuilds the expected badged slides and exact badge labels from the list, replacing the hardcoded slide list.Review notes
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.docs/node_moduleswas not installed in the environment that produced this PR.