Skip to content

docs(coding-agent): refresh workflowz notice#2653

Open
roboomp wants to merge 3 commits into
mainfrom
farm/f5a6a0eb/refresh-workflowz-notice
Open

docs(coding-agent): refresh workflowz notice#2653
roboomp wants to merge 3 commits into
mainfrom
farm/f5a6a0eb/refresh-workflowz-notice

Conversation

@roboomp

@roboomp roboomp commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Repro

The hidden workflow notice loaded from packages/coding-agent/src/prompts/system/workflow-notice.md did not contain the requested advisor-consult wording or provenance fields. Reproduced with bun -e 'const text = await Bun.file("packages/coding-agent/src/prompts/system/workflow-notice.md").text(); const checks = ["advisor tool", "files/commits", "done", "local:" + "//"]; const missing = checks.filter(check => !text.includes(check)); if (missing.length) { console.error(workflow notice missing: ${missing.join(", ")}); process.exit(1); }', which reported workflow notice missing: advisor tool, files/commits, done before the fix.

Cause

packages/coding-agent/src/prompts/system/workflow-notice.md already described eval fan-out and local:// briefs generically, but its <patterns> section did not name the advisor tool hard-fork consult pattern or the provenance contract for files/commits and done criteria.

Fix

Verification

bun --cwd=packages/coding-agent test test/modes/workflow.test.ts passed: 5 tests, 26 assertions. gh_push_branch pre-publish gate passed and pushed farm/f5a6a0eb/refresh-workflowz-notice. Fixes #2642

Updated the hidden workflowz notice with advisor consult and provenance-rich local brief patterns, and covered those notice requirements in the workflow mode test.

Fixes #2642

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bd6e0d7117

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

- **Budget/count loops** — `while len(bugs) < 10:` to hit a target, or `while budget.total and budget.remaining() > 50_000:` to scale depth to the turn budget; `log()` each round.
- **No silent caps** — if you bound coverage (top-N, no-retry, sampling), `log()` what you dropped; silent truncation reads as "covered everything" when it didn't.

- **Advisor consult** — at a hard fork, consult the `advisor` tool before committing to one direction; feed it the concrete options, constraints, and consequences so the chosen path is explicit.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Replace nonexistent advisor tool guidance

In workflowz sessions this notice is appended as hidden system guidance, but the repository's tool registry (packages/coding-agent/src/tools/index.ts, checked BUILTIN_TOOLS/HIDDEN_TOOLS) does not expose an advisor tool, and a repo-wide rg only finds this new prompt/test text. When a task hits the documented “hard fork” case, the model is now steered toward a tool call that cannot execute, which can waste a turn or produce an invalid tool-call failure; this should reference an available mechanism such as ask/agent(..., agent_type=...), or add/register the advisor tool.

Useful? React with 👍 / 👎.

roboomp added 2 commits June 15, 2026 13:04
Replaced the nonexistent advisor tool reference with available consult mechanisms in the workflowz notice and aligned the notice test.

Fixes #2642
@roboomp

roboomp commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator Author
  • Replaced the nonexistent advisor tool instruction with available consult mechanisms: ask when exposed or agent(..., agent_type="oracle").
  • Updated the workflow notice test to assert the available agent_type="oracle" consult pattern instead of the removed tool name.
  • Verified with bun --cwd=packages/coding-agent test test/modes/workflow.test.ts; pushed the follow-up branch update.

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.

docs(coding-agent): refresh workflowz notice with advisor + provenance patterns

1 participant