Repository navigation
feat(workflows): expose guided prompts through CLI and MCP - #6995
Conversation
Codex Review SummaryThis 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. |
[Medium impact] The PR appears safe to merge; no new actionable defect remains. SummaryAdds
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
CLI["rea guided-workflows"] --> Access["accessGuidedWorkflows"]
Tool["guided_workflows MCP tool"] --> Scope["Filter by tool families"]
Scope --> Access
Access --> List["Workflow requirements"]
Access --> Render["Shared prompt renderer"]
Native["Native MCP prompts"] --> Render
Render --> Text["Guidance text only"]
Reviews (5) · Last reviewed commit: "chore: sync main for guided workflow int..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 392af8be82
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0037f1b513
ℹ️ 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".
…lows-followup # Conflicts: # src/contracts/promptContracts.ts # src/server/registerPrompts.ts
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
The provenance guide named export_evidence_bundle, record_unknown, search_guidance and read_guidance_section as the only tools whose results omit _meta.provenance. TARGET_CONTENT_FREE_TOOLS also exempts inspect_analysis_settings and update_analysis_settings (morluto#7049) and guided_workflows (morluto#6995), so a reader of the guide expected markers those tools never send. List all seven, and assert in the existing provenance conformance test that the documented list equals TARGET_CONTENT_FREE_TOOLS, so the next audited exception cannot be missed again. Fixes morluto#7327.
Summary
Fixes #6918. Add
rea guided-workflowsand the target-freeguided_workflowsMCP tool so clients can list existing workflow requirements and render one workflow through the same contracts as native MCP prompts.The shared typed application parser preserves nested error paths and rejects unknown context fields and every forbidden list field. MCP uses the native prompt family scope. Standalone request/result schemas avoid catalog initialization cycles; an explicit object output root prevents legacy SDK response wrapping. Template rendering is independent of catalog visibility, and CLI loads the application only when invoked, preserving existing lazy startup. Rendering produces guidance without target analysis or session changes; no new provider or execution authority is introduced.
Validation
b594fbc3e; repeated nine compiled startup/MCP boundary tests,npm run docs:check(nine conformance tests), andnpm run check:fast: all passed. Bounded affected-file typed lint passed with existing warnings in untouched sections; 24-file formatting and diff checks passed. Fullcheck:prwas not run locally. Full-profile MCP tests have a bounded 60 s budget after full-profile boundary cases took 22–39 s under concurrent shared-host work.Performance and real input
Compared
265d13647with the startup fixb2d02cca5on the same pinned base/dependencies, before the final independent main sync: 18 alternating fresh CLI processes covered help, selected guidance rendering andinspect-elf-notes /usr/bin/true. All stdout SHA-256s matched between old/new lanes. Sampled process-family RSS fell from 230–253 to 208–212 MiB; mean CPU across the equally weighted tasks fell from 3.57 to 3.02 s. Mean elapsed help/render/ELF times were 3.37/3.28/3.43 s before and 2.73/2.76/2.97 s after, with overlapping ranges. Output tokenx estimates stayed 4,331/696/1,600. The real ELF SHA-256 wasc79bf44242829108e323378531f4ac839513ca1fba45efd6583643526e1e9fd2.On final
3ea8d5167, three alternating fresh SDK client/server sessions per entrypoint completed one scoped catalog discovery and three list/render pairs, then closed both processes. Native prompt and tool guidance/IDs matched exactly;/usr/bin/truewas selection data only here. Tokenx estimates for one pair plus the complete scoped catalog were 69,831 native / 71,674 tool; the added tool advertisement was 306 tokens. These serialized estimates include structured-content/text duplication, not model billing. Warm pairs overlapped at 7–31 ms; first tool pair cost 665–704 ms versus native 18–30 ms. Complete client/session workloads took 5.7–7.0 / 6.1–9.0 s elapsed, 6.4–7.9 / 7.3–10.2 s CPU, and 433–434 / 463–470 MiB sampled family RSS (native/tool). Totals include SDK and measurement bookkeeping. This compatibility entrypoint has measured overhead; no general latency improvement is claimed. RSS sampling was every 10 ms on a shared Linux host; filesystem caches were not flushed, and no builds or heavy checks overlapped the profiles.Author readiness
Human owner: @Deepak-Kambala