Repository navigation
docs: fork-workflows user docs and pstack adapter rows - #408
Conversation
Write docs/fork/workflows.md covering who can run workflows, script writing, builtins, limits, run and await, stop and resume, saved workflows, the web UI, API routes and evidence. Add workflow rows to docs/fork/pstack-adapter.md: a Tools row for the parallel agent pool mapping to run_workflow and await_workflow, an updated Cursor Automations row and a new Workflows reference section. Closes #329.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3a0f7b808
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Split the admin material of the saved workflows section into its own page, docs/fork/workflow-administration.md, so each page carries one audience, and link the two pages and docs/coder-agents/index.md. Fix the P2 inaccuracies the Codex review found, each verified against the code: the log retention cap of 64 KiB together with the 50 lines, Resume run only on an interrupted run, script and args shown only on a run_workflow card, expect_id on DELETE and the share POST too, the not-found help asking for script, script_path or name, the top-level schema keyword subset, the step wait of 1 hour starting at the wait rather than the spawn, and await on a replica that does not own the run answering the journal state at once. Point the pstack adapter Evidence at the new path of the workflows doc.
@codex review Head is now a448df3, which carries the fixes for your 3 P1 findings and the 8 P2 findings, each P2 verified against the code before the fix, and the merge of |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a448df3f90
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Six findings from the Codex review of a448df3, each verified against the code: - pstack-adapter: run_workflow accepts args alongside a saved workflow name, matching runWorkflowArgs in fork_workflow.go. - pstack-adapter: describe the supported JSON Schema subset exactly: no composition keywords, no additionalProperties: false, local non-recursive refs, per checkStepSchema. - pstack-adapter: state the step wait limit as a 1 hour wait deadline and the log cap as 50 lines, 4 KiB per line and 64 KiB total with the oldest dropped first. - workflow-administration: share grants are initial defaults the owner and Everyone get at share time, and an organization admin can change them later. - workflows: document the 30 day retention of ended runs and what deletion means for the API, the UI and resuming. All docs checks rerun on this tree: lint/emdash, lint/markdown, format-docs, check-docs, lint/docs-html, lint/docs-manifest, lint/typos on the changed files, lint/prose unchanged for these files. See the PR body for details. Related to #329
@codex review New head |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 92cef7925b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
One P1 and three P2 findings from the Codex review of 92cef79, each verified against the code: - pstack-adapter: replace the semicolon in the workflow guidance sentence, which the docs contract bans. - pstack-adapter: qualify await_workflow on a replica that does not own the run, per the known gap in chatd ARCHITECTURE.md. - pstack-adapter: the end-of-run notice is deleted only when it sat queued in a busy chat; an idle chat starts a turn with it and it stays in the transcript, per notify in fork_workflow.go. - workflow-administration: the editor's expect_id guard protects against deletion or replacement, not against a concurrent edit in another browser, because the UPDATE keeps the row's id. All docs checks rerun on this tree. See the PR body for details. Related to #329
@codex review New head |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merged at head Gates on this exact head:
Review notes:
Not exercised: a rendered docs site build. |
Closes #329.
What
User docs for the
fork-workflowsexperiment.docs/fork/workflows.md: who can run a workflow, script writing and builtins, limits, run and await, stop, interrupt, and resume, saved workflows, the web UI, API routes, and what is not built yet. Saving a workflow from the run card is not built yet. It is tracked in site: Save workflow action on the run card #326, and this PR does not build it.docs/fork/pstack-adapter.md: a Tools table row for the parallel agent pool mapping torun_workflowandawait_workflow, an updated Cursor Automations row, and a new Workflows reference section.docs/coder-agents/index.md: whitespace-only table padding from the markdown table formatter.Every number, limit, route, and label in the two pages was verified against the code at fork
main5c8c0e2c7a, and both pages carry an Evidence section with file and line citations.Codex review
The first Codex review (on
ec588a59d0) left 3 P1 and 8 P2 threads. All were verified against the code, fixed inec588a59d0, replied to with the code evidence, and resolved. The P1 fixes per the lead's direction:docs/fork/and is not added todocs/manifest.json, so upstream syncs cannot conflict. One link to it was added fromdocs/coder-agents/index.md.docs/fork/workflow-administration.md, linked fromdocs/fork/workflows.md.docs/fork/pstack-adapter.mdrows and in this body.A second Codex review ran on
a448df3f90and left 6 P2 threads. All 6 were verified true against the code and fixed in92cef7925b, each thread replied to with the code evidence and resolved:run_workflowacceptsargsalongside a saved workflowname; onlynameversusscriptorscript_pathis exclusive (runWorkflowArgsincoderd/x/chatd/fork_workflow.go).allOforoneOf, noadditionalProperties: false, local non-recursive$refs(checkStepSchemaincoderd/x/chatd/fork_workflow_report.go).coderd/x/chatd/fork_workflow.go).coderd/database/forkdb/queries/saved_workflows.sql).coderd/x/chatd/ARCHITECTURE.md).A third Codex review ran on
92cef7925band left 1 P1 and 3 P2 threads. All 4 were verified true against the code and fixed ine04d895d7d, each thread replied to with the code evidence and resolved:docs/fork/pstack-adapter.mdjoined two independent clauses with a semicolon, which the docs contract bans. Split into sentences.await_workflowon a replica that does not own the run answers the saved state at once; the pstack copy now carries the same qualification as the user page (known gap incoderd/x/chatd/ARCHITECTURE.md).notifyincoderd/x/chatd/fork_workflow.go).expect_idguard protects against deletion or replacement, not against a concurrent edit in another browser, because theUPDATEmatches on the unchangedid(UpdateUserSavedWorkflowByNameincoderd/database/forkdb/queries/saved_workflows.sql).After each fix round the checks below were rerun on the new tree.
Checks
Run on branch head
e3a0f7b808:make lint/emdash: pass, no em or en dashes.make lint/markdown: pass, 0 errors.make fmt/markdownandpnpm run format-docs: pass, no formatting changes left to apply.pnpm run lint-docs: pass, 0 errors.make lint/docs-htmlandmake lint/docs-manifest: pass.make lint/prose(Vale): advisory, never fails. The changed files introduce no new findings.docs/fork/workflows.mdis clean.docs/fork/pstack-adapter.mdcarries only warnings that exist onmaintoo, and the PR fixes the 8 step-length warnings and one semicolon warning thatmainhas.typosondocs/fork/workflows.mdanddocs/coder-agents/index.md: pass.docs/fork/pstack-adapter.mdkeeps one pre-existing hit onmain, thedbein the pinned-skills commit SHA9dbe879138, which the typos config does not allow and which this PR does not change.Run on branch head
ec588a59d0and again ona448df3f90after mergingmain58f90095af, withpnpm run format-docsrerun after the merge:make lint/emdash: pass.make lint/markdown: pass, 0 errors.pnpm run format-docs: no changes.pnpm run check-docs: 0 errors.make lint/docs-htmlandmake lint/docs-manifest: pass.make lint/prose(Vale): advisory. A diff of the warning list against a stashed baseline shows no findings from the changed files.typoson the changed files: pass, the one hit is the pre-existingdbein SHA9dbe879138inpstack-adapter.md, which exists onmain.Run on branch head
92cef7925b:make lint/emdash: pass.make lint/markdown: pass, 0 errors.pnpm run format-docs: no changes.pnpm run check-docs: 0 errors.make lint/docs-htmlandmake lint/docs-manifest: pass.typoson the changed files: pass, the one hit is the pre-existingdbein SHA9dbe879138inpstack-adapter.md, which exists onmain.make lint/prose(Vale): advisory, compared with a fresh baseline run on the stashed tree. The only findings in the changed files are the 2 pre-existingCoder.AbbreviationFirstUsewarnings ondocs/fork/pstack-adapter.mdfor GLM and MCP, which exist onmain. No other findings from the changed files, and no new findings compared with the baseline.Run on branch head
e04d895d7d:make lint/emdash: pass.make lint/markdown: pass, 0 errors.pnpm run format-docs: no changes.pnpm run check-docs: 0 errors.make lint/docs-htmlandmake lint/docs-manifest: pass.typoson the changed files: pass, the one hit is the pre-existingdbein SHA9dbe879138inpstack-adapter.md, which exists onmain.make lint/prose(Vale): advisory. The only findings in the changed files are the 2 pre-existingCoder.AbbreviationFirstUsewarnings ondocs/fork/pstack-adapter.mdfor GLM and MCP, which exist onmain. No new findings from the changed files.Pre-commit hook
The pre-commit hook was disabled for this branch through the worktree opt-out,
git config --worktree coder.pre-commit false, because cleanmainfailsmake pre-commitin this workspace. That debt is tracked in #407. The hook never bypassed a real docs failure: the light run passedlint/markdown,lint/emdash, andlint/shellcheckon this diff, and failed only onlint/typosfindings that exist on cleanmain, pluslint/actions/actionlint, which cannot build because mise cannot write its cache under/opt/mise. If only the docs files here were staged, the hook would have run justpre-commit-light. That light run passes on this diff's files and fails on cleanmainfor the same pre-existing reasons. With docs-only files staged, the fullmake pre-committarget would not have run at all.Merge order
This PR merges after #326. When #326 lands, this PR documents the save action it builds and the run card changes, so the "not built yet" section goes away.
After a push that changes the head, this PR gets a new
@codex reviewrequest and the threads and receipt are handled on the new head before merge.