Repository navigation
improvement(workflow-code): clean slate for workflows and workspace as code - #10344
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryRemoves compatibility paths for workflows and workspaces as code and makes the server name the run to resume.
The earlier timed-pause finding is fixed: the CLI prints commands only for waiting human pauses. Checks in this review were static; no tests were run.
|
waleedlatif1
force-pushed
the
improvement/workflow-code-clean-slate
branch
from
November 23, 2026 20:08
f6649f8 to
fae9ada
Compare
…s code Remove the feature's own compatibility paths now that nothing depends on them: version-less bases and the lock/base upgrade seams, numeric blob revs, the SDK-major floor (E_SDK_MAJOR_OLD), the plan-read dry-run fallback, the client-side refuses fallback, older-CLI catalog caches and folder records, old-server resource defaults, and get --primer. Declare mayBeText on block outputs (Function result, API data) and read it through the catalog in place of TEXT_CAPABLE_OUTPUTS. Name the run a pause is recorded under in paused.runId on execute, resume and run reads, and build the CLI resume command from it instead of searching output markers. Fix the stale lookup-order sample.
…nd simplify the clean-slate removals Execute and resume both return the run's pause through runPauseOf, the one rule for the run a pause is recorded under, and present it through one presenter. The primer rides only on the create scaffold, refusesApply is inlined, and the remaining unversioned base fixtures carry version 1.
…run it resumed Extend the runtime integration with a second human block, and tighten the cleanup-audited tests so each can fail.
…ume route refuses
…n names the run to resume in paused
… the docs compatibility baseline
…aused on the internal resume result
waleedlatif1
force-pushed
the
improvement/workflow-code-clean-slate
branch
from
November 23, 2026 21:07
f46b451 to
c2b644b
Compare
Collaborator
Author
Collaborator
Author
|
@cubic-dev-ai review this PR |
Contributor
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Workflows and workspace as code are not rolled out, so this removes every compat path the feature kept for its own earlier shapes. Readers of users' stored canvas data (legacy block types, stored encodings, name-collision keys, raw handles) stay.
.sim/base.json, and the lock/base "upgrade" seams with nothing to upgrade;rev;E_SDK_MAJOR_OLDandOLDEST_SDK_MAJORare gone, and any major other than the server's isE_SDK_MAJOR;statusretrying a 404 plan read as an apply dry run;refuses;written.jsonrecords left by an older CLI;get --primer. The primer is already the top of.sim/AGENTS.md;create's starter still prints it.mayBeText: set on block output definitions (Functionresult, APIdata) and projected through the catalog. It replaces theTEXT_CAPABLE_OUTPUTSmap injson-fields.ts.paused.runId, the run the pause is recorded under. For a resumed run that pauses again, that is the run it resumed, not the attempt's id.paused.points.nextandruns waitbuildruns resumefrom those fields instead of searching output markers. The id validation and shell quoting are kept.lookup-ordersample: the OpenAPI example and fixtures now pair keylookup-orderwith a title that derives it (Lookup order).table('daily_totals')vs keydaily-totals: no extra resolution path.tscnames the valid key:not assignable to parameter of type '"daily-totals"'.Did you mean daily-totals?--fullonsource params, a real detail level;/workflows/workspace-codedocs redirect, because that page shipped on the docs site;x-extension fields.Type of Change
Testing
refusesonly (exit 15 vs 6);pausedfield on the execute, resume and run routes;paused.runId;mayBeTextagainst the real catalog.apply-workflow-source.runtime.integration.tson real Postgres: a resumed run pauses at a second human block, the resume names the original run, and resuming through it completes the run. It is red when the resume attempt's id is named instead.test:scripts, goldens,check:audits,check:test-types,check:migrations, docs compatibility, lint, root type-check, andcheck-block-registry.ts origin/stagingall pass.Checklist
test-auditauthoring gate)