Skip to content

improvement(workflow-code): adopt, troubleshooting and how-it-works docs, and trim the SDK README - #10343

Merged
waleedlatif1 merged 2 commits into
stagingfrom
improvement/workflow-code-docs-adopt
Nov 23, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
improvement/workflow-code-docs-adopt

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • New /workflows/code/adopt: put builder-made workflows in git, keep editing in the builder (drift exits 12, a conflict exits 5), what stays in the builder, who owns a change, rollback (deploy rollback, revert to a version, or restore an earlier commit's source while keeping .sim/)
  • New /workflows/code/troubleshooting: one section per source exit code (1, 5–15, 130), the 403 cases, and the common diagnostic codes
  • New /workflows/code/how-it-works: static compile, canonical form and round trip, block identity and the lock, stale fingerprints, the workspace three-way rule, promotion
  • check:workflow-code-docs now requires exactly one [#exit-<code>] troubleshooting section per non-zero code sourceExitCodeRows lists, so a new exit code can't ship undocumented
  • cli/troubleshooting and cli/workflow-sync link the new pages; nav gains the two how-tos and an Explanation group
  • packages/workflow-sdk README cut to a pointer to the docs plus the package layout (the package is private; the user docs own the loop, files, diagnostics and exit codes)
  • sim-cli README links the generated exit-code page instead of restating the codes
  • Drop the exit-code test case pinned to the README's old hand-copied table, and the SYNTAX.md diagnostics test the docs check already enforces (both directions, stricter parser, in check:audits)
  • Drop the "earlier CLI releases" note from the exit-codes page: the feature is new
  • Every command and flag checked against the current --help

Type of Change

  • Documentation

Testing

  • Red→green: removing a [#exit-8] section (and adding an unused [#exit-4]) fails check:workflow-code-docs; the script from before this change passes the same broken page. Removing a SYNTAX.md diagnostics row still fails the check after deleting the duplicate test
  • content:generate (link and anchor validation; a broken #exit-55 link fails it), content:verify-compatibility, generate:docs-manifest
  • Full local gate: tsc for every workspace, package suites, apps/sim and realtime units, integration suites, goldens, check:audits, check:test-types, check:migrations, lint, root type-check, test:scripts, check-block-registry.ts origin/staging

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…ocs, and trim the SDK README

- workflows/code/adopt: bring builder workflows into git, coexist with builder edits (drift 12,
  conflict 5), what stays in the builder, team conventions, rollback
- workflows/code/troubleshooting: every source exit code and the common diagnostic codes;
  check:workflow-code-docs now requires one [#exit-<code>] section per non-zero code
  sourceExitCodeRows lists
- workflows/code/how-it-works: static compile, canonical form and round trip, block identity,
  stale fingerprints, the workspace three-way rule, promotion
- cli/troubleshooting and cli/workflow-sync link the new pages
- packages/workflow-sdk README cut to a pointer to the docs plus the package layout; drop the
  exit-code test case pinned to its old hand-copied table and the SYNTAX.md diagnostics test the
  docs check already enforces
- sim-cli README links the generated exit-code page instead of restating the codes
- exit-codes page: drop the note about earlier CLI releases
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Nov 23, 2026 7:40pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 16 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge, with no new actionable issues found.

Summary

Adds guides for adopting existing workflows, troubleshooting failures, and understanding how source files become saved workflows.

  • Existing workflows can move into git without abandoning the builder.
  • A new guide explains how source files become saved workflows.
  • Source command failures now have a guide tied to every exit code.
  • The private SDK README now points users to the main workflow docs.

Reviews (2) · Last reviewed commit: "improvement(workflow-code): qualify stal..." · Reviewed by Greptile

…ing; workflows' exception to the three-way rule
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 16 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 3257c89 into staging Nov 23, 2026
87 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2638d6e4 Deployed Nov 23, 2026 by vercel[bot]
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