Skip to content

docs(workflows): reorganize workflows and workspace as code with generated references and CI recipes - #10334

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

waleedlatif1 merged 3 commits into
stagingfrom
improvement/workflow-code-docs-ia

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Move workflows and workspace as code into a /workflows/code section: overview, get started, edit, create, workspace, promote, run in CI, coding agents, file syntax, directory layout. /workflows/code keeps its URL; /workflows/workspace-code redirects to /workflows/code/workspace.
  • Generate the exit-code, diagnostic-code, limit and per-kind layout tables from the code that owns them (bun run generate:workflow-code-docs). check:workflow-code-docs (in check:audits) fails on drift, on a code or limit with no docs entry, on a diagnostic code a page names that no engine emits, and on a typescript@x.y.z pin other than the CLI's.
  • Add CI recipes verified against current action majors (actions/checkout@v7, actions/setup-node@v7, Node 24): one-workflow dry run, sticky pull request plan comment, scheduled drift job on status exit 12.
  • Quick fixes: CLI reference gets a "Workflows as code" section, "Settings → Sim API keys" wording, "workflow builder" instead of "editor", check offline claim corrected for workspaces, credentials.ts in the workspace-key --only example.
  • cli/scripting.mdx drops the source exit tables and workspace CI section for links; the content baseline loses exactly the two moved code fences (reviewed hand edit). The source-exit-codes test that guarded the removed tables is deleted.

Type of Change

  • Documentation

Testing

  • check:workflow-code-docs goes red on a changed limit value, a reworded exit-code row, a limit with no label, a removed SYNTAX.md row, a stale typescript@ pin and an unknown code in a page, and green after each revert
  • content:verify-compatibility, check:docs-manifest, check:cli-docs, lint, check:audits, check:test-types, check:migrations, root type-check, goldens, and the package and app unit and integration suites
  • Realtime integration file-doc-* hook timeouts fail the same way on unmodified 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)

@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 12:09pm UTC

Request Review

@waleedlatif1
waleedlatif1 requested a review from a team as a code owner November 23, 2026 11:35
@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The changes appear safe to merge; no new blocking issue was found.

Summary

Moves workflow and workspace code guides into /workflows/code, adds generated reference tables, and provides CI recipes.

  • Workflow guides now lead readers through editing, creating, and checking source files.
  • Workspace guides now explain managing and promoting resources from one directory.
  • CI guides now show how to check, apply, and track workflow and workspace source.
  • Reference tables now come from source definitions and are checked for drift.
  • CLI sign-in guidance now uses the current API-key and workflow-builder names.

Reviews (2) · Last reviewed commit: "docs(workflows): drift job fails when Si..." · Reviewed by Greptile

Comment thread scripts/sync-workflow-code-docs.ts Resolved

@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.

All reported issues were addressed across 36 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread .claude/rules/sim-workflow-code.md Resolved
Comment thread scripts/sync-workflow-code-docs.ts Resolved
Comment thread scripts/sync-workflow-code-docs.ts Resolved
Comment thread .claude/rules/sim-workflow-code.md Resolved
…for stored values, generator ignores generated regions
@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 36 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 0cf4e2b into staging Nov 23, 2026
99 checks passed

This branch was successfully deployed

1 active deployment
Preview — a34de415 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