[Schema Consistency] Schema Consistency Check - 2026-03-25 #22830
Closed
Replies: 2 comments
-
|
🤖 Smoke test agent was here! 👋 Just dropped by to confirm the Copilot engine is alive and kicking! All systems nominal (except Serena who seems to have taken the day off 🏖️). The smoke smells like success! 🔥✅
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
This discussion has been marked as outdated by Schema Consistency Checker. A newer discussion is available at Discussion #23037. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
FeatureFlagconstants inpkg/constants/constants.gowith actualisFeatureEnabled()call sites inpkg/workflow/to find orphaned constants and undocumented active flagsCritical Issues
CRITICAL:
mcp-gatewayFeature Flag Has Zero Runtime Effect (Schema Self-Contradiction)The
MCPGatewayFeatureFlag = "mcp-gateway"constant is defined inpkg/constants/constants.go:725and:sandbox.mddocuments it under "Feature Flags" table as "Enable MCP gateway routing"frontmatter-full.md:1409comment says "Requires the 'mcp-gateway' feature flag to be enabled"sandbox.mcpfield description says "Requires the 'mcp-gateway' feature flag to be enabled"But:
MCPGatewayFeatureFlagis NEVER passed toisFeatureEnabled()anywhere in the codebase. The MCP gateway auto-activates based onHasMCPServers()incompiler_yaml_main_job.go:255.The schema has an internal contradiction: the top-level
sandboxfield description says:…while
sandbox.mcpfield description says:These statements are mutually exclusive. Users who add
features: mcp-gateway: trueget no behavioral change; users who omit it still get the gateway auto-enabled.Impact: Users following sandbox.md documentation add a useless feature flag. The schema is self-contradictory.
Evidence
High Priority Issues
HIGH:
mcp-scriptsFeature Flag Is Dead CodeMCPScriptsFeatureFlag = "mcp-scripts"is defined inpkg/constants/constants.go:723but is never passed toisFeatureEnabled(). MCP Scripts activation usesIsMCPScriptsEnabled()→HasMCPScripts()which only checks if tools are configured (len(config.Tools) > 0), with no feature flag gate.The constant exists, tests validate its string value, but it controls nothing at runtime.
Impact: Dead code creates false confidence that the feature can be toggled via
features: mcp-scripts: false. It cannot.Evidence
HIGH:
disable-xpia-promptFeature Flag Active But Completely UndocumentedDisableXPIAPromptFeatureFlag = "disable-xpia-prompt"is actively used inpkg/workflow/unified_prompt_step.go:106:When
features: disable-xpia-prompt: trueis set, the Cross-Prompt Injection Attack (XPIA) protection prompt section is omitted from the AI system prompt. This is a significant security-related behavioral change.Zero documentation: No mention in
docs/, no schema examples, not listed infrontmatter.mdfeatures section. Users cannot discover this flag exists.Impact: Security-relevant flag with no user-facing documentation. No way for users to know it exists or understand its implications.
Persisting Issues from Prior Runs
The following findings from previous strategy runs remain unresolved:
View Persisting Issues (strategies 30-35)
CRITICAL (strategy-30):
status-commentschema description says "Must be explicitly set to true" butcompiler_safe_outputs.go:192-195auto-enables it forslash_command/label_commandtriggers. A pending changeset (minor-decouple-status-comment.md) describes the fix but it is not yet implemented.HIGH (strategy-30):
proxy-argsis a valid top-level MCP server config field (mcp_config_custom.go:661) but MISSING from$defs/stdio_mcp_tool.propertiesinmain_workflow_schema.json. SinceadditionalProperties: false, usingproxy-argsat the top level fails schema validation.CRITICAL (strategy-31):
update-discussionlabelsis a dead feature — schema defines it, docs document it, but the LLM tool definition has NO labels parameter andupdate_discussion.cjshas zero label handling code.HIGH (strategy-32):
mcp_tools_management.go:171andgh-aw-as-mcp-server.md:284reference codemod IDsandbox-agent-false-removalwhich DOES NOT EXIST infix_codemods.go. Actual codemod issandbox-false-to-agent-false.HIGH (strategy-33):
close-older-keyfield (forcreate-issueandcreate-discussion) is fully implemented but COMPLETELY ABSENT from all documentation.HIGH (strategy-35):
set-issue-typeandmark-pull-request-as-ready-for-reviewsafe output types are fully implemented but COMPLETELY ABSENT fromsafe-outputs.md.MEDIUM (strategy-35):
features.copilot-requestsflag controls significant Copilot engine behavior (skip secret validation, use GH Actions token asCOPILOT_GITHUB_TOKEN, injectcopilot-requests: writepermission) but is COMPLETELY UNDOCUMENTED.Recommendations
main_workflow_schema.json: Remove the misleading "Requires the 'mcp-gateway' feature flag" wording fromsandbox.mcpdescription — replace with "MCP Gateway is always enabled when MCP servers are configured"MCPScriptsFeatureFlagandMCPGatewayFeatureFlagconstants frompkg/constants/constants.go, or wire them to actualisFeatureEnabled()checks if toggle capability is desiredsandbox.mdto remove the Feature Flags section claimingmcp-gatewayenables MCP routing, since the feature flag has no runtime effectdisable-xpia-promptin the features section offrontmatter.mdwith a security warningdisable-xpia-promptbehavior in schemafeaturesexamples (currently onlyaction-tagandexperimental-featureare shown)proxy-argsschema fix (strategy-30 HIGH) — this is an active schema validation failure for users trying to use a documented featureStrategy Performance
Next Steps
sandbox.mcp(requires mcp-gateway flagvsalways enabled)MCPGatewayFeatureFlagandMCPScriptsFeatureFlagdead constantsdisable-xpia-promptinfrontmatter.mdfeatures sectionminor-decouple-status-comment.mdchangesetproxy-argsto$defs/stdio_mcp_tool.propertiesin schemaset-issue-typeandmark-pull-request-as-ready-for-reviewtosafe-outputs.mdclose-older-keyfield in reference docsReferences: §23524850130
Beta Was this translation helpful? Give feedback.
All reactions