Skip to content

feat(cmdutil): teach Build the platform-first fallback protocol#135

Open
steve-calvert-glean wants to merge 1 commit into
sc/platform-04-search-cmd-migrationfrom
sc/platform-05-cmdutil-legacyrun
Open

feat(cmdutil): teach Build the platform-first fallback protocol#135
steve-calvert-glean wants to merge 1 commit into
sc/platform-04-search-cmd-migrationfrom
sc/platform-05-cmdutil-legacyrun

Conversation

@steve-calvert-glean

Copy link
Copy Markdown
Collaborator

cmdutil.Spec gains Endpoint, FallbackMode (Auto | EnvOnly), and LegacyRun. When LegacyRun is set, Run is the platform call: gate-closed 404s either retry via LegacyRun with a one-time warning (Auto) or produce an actionable error naming GLEAN_LEGACY_APIS (EnvOnly, for user-authored bodies). GLEAN_LEGACY_APIS=1 routes straight to LegacyRun and skips parsing the payload against the platform request type. LegacyRun receives the normalized snake_case payload — the CLI's canonical input shape.

Every namespace migrating to the platform APIs gets this protocol for free; agents (next PR) is the first consumer.

Part 5/9.

🤖 Generated with Claude Code

Spec gains Endpoint, FallbackMode (Auto | EnvOnly), and LegacyRun. When
LegacyRun is set, Run is the platform call: gate-closed 404s either retry
via LegacyRun with a one-time warning (Auto) or produce an actionable
error naming GLEAN_LEGACY_APIS (EnvOnly, for user-authored bodies).
GLEAN_LEGACY_APIS=1 routes straight to LegacyRun and skips parsing the
payload against the platform request type. LegacyRun receives the
normalized snake_case payload — the CLI's canonical input shape.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant