Repository navigation
docs: user docs and MCP descriptions follow the shipped manifest, apply and ask contracts (#4133) - #4142
Merged
Conversation
apply_system now states that grants and seat are written only for an admin in a signed-in session and are only reported from an MCP key (2,032 chars, under the 2,048 cap). create_agent, the types.ts comment, the import-intent test header/title and five memory docs no longer claim MCP tool arguments are audit-logged: audit.ts records tool, outcome, target agent and request id, never the arguments; they land in transcripts. Fork over MCP is documented as shipped (#4126). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…4133) Fork over MCP create_agent (saved personal token, never a token argument, FORK_PAT_REQUIRED for agent keys) and kind on list_agents / get_agent / get_agent_info; ask_operator to a canon role id with its three refusals and no fallback; seat gated on apply as on deploy, and apply_system from an MCP key only reports grants and seat; pointer lines for get_agent_permissions and get_agent_capability_grants on the task pages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trinity-ability
approved these changes
Nov 1, 2026
trinity-ability
left a comment
Contributor
There was a problem hiding this comment.
PR Validation Report
PR: #4142 - docs: user docs and MCP descriptions follow the shipped manifest, apply and ask contracts (#4133)
Author: vybe
Branch: docs/4133-docs-followups → dev (head 8bf3537b0, contains the dev tip)
Files Changed: 16 (+43/-22)
Lane: B (the src/mcp-server/ description, comment and test-title edits take it out of Lane A; no Lane C path; no schema)
Summary
| Category | Status | Notes |
|---|---|---|
| Commit Messages | ✅ | docs(mcp): … / docs: …, both cite #4133 |
| Base Branch | ✅ | dev |
| PR Size | ✅ | 16 files |
| Status Auto-Promotion | ✅ | Fixes #4133 |
| Roadmap | ✅ | #4133: P3, type-docs, status-ready |
| Requirements | ✅ | requirements/core-agent.md and requirements/github.md corrected (MCP fork is no longer listed as out of scope) |
| Architecture | ✅ | architecture/mcp-server.md agents.ts row corrected |
| Feature Flows | ✅ | github-import-intents.md, template-processing.md corrected |
| Feature Flow Format | ➖ | one-paragraph edits inside existing flows |
| Security Check | ✅ | §4.1–4.3 and §4.10 clean on added lines; enterprise-docs guard pattern: 0 hits |
| Infrastructure | ➖ | none |
| Build Packaging | ➖ | no src/backend change |
| Config Packaging | ➖ | no env var |
| File Modes / Host Paths | ✅ | no mode change, no host path |
| Structural Review | ✅ | /review run on this branch (MERGEABLE, zero findings), /cso --diff 0 findings, per the PR body |
| Merge Gate | ✅ | Tier 1 green: both CodeQL analyses, schema-parity, verify-non-root, gitleaks, pytest (head, seed 12345), regression diff, MCP Build (typecheck) + unit. dev-ci success on the dev tip; no open dev-ci red issue |
| Test Adequacy | ➖ | no behaviour change; the existing description-budget and naming tests cover the edited strings |
| Code Quality | ✅ | text only: no tool added or removed, schemas and execute bodies untouched |
| Requirements Trace | ✅ | each change maps to an item in #4133 |
| Product Fit | ✅ | docs PR (exempt from the approval check); tier wording below |
| Product Bar 7–11 | ✅ | see below |
Claims checked against the code on the branch
- Audit claim.
audit.tslogToolCallwrites the tool, duration, success or error, denied flag, key, scope, actor, target agent and request id. It never writes the tool arguments. The corrected wording ("tool args land in transcripts") is accurate. The remaining "audit-logged" mentions in the repo describe backend routes that really are audited. apply_system/ seat.system_apply/seats.pydefinesseat_requires_interactive_admin(apply) andseats_require_interactive_admin(deploy). These match the new seat row and the tool description.role:<id>asks.role_addressing.resolve_role_id_for_askhas three refusal arms:role_unavailable,role_unassignedandrole_cannot_open_agent. There is no owner or operator fallback. The same module states that reports and messages refuse a role id withinvalid_to.- Permission reads. The
get_agent_permissions(observed_within) andget_agent_capability_grants(self or spawned for an agent key; owner or admin for a person key) descriptions intools/permissions.tsmatch the new pointer lines. - Fork over MCP. The UI path Settings → MCP Keys → Personal GitHub Token is the one the frontend uses.
FORK_PAT_REQUIREDis the documented refusal. Thekindfield is described on the read tools. naming: bare(item 4 of #4133) was already documented insystem-manifest.mdondev, so no change was needed.
Execution coverage (§5.4)
| changed symbol / test file | executed by | live consumer | verdict |
|---|---|---|---|
apply_system description (systems.ts) |
description-budget test (reads tools/list; 2,032 ≤ 2,048) and the systems naming test |
MCP tools/list |
✅ guard |
create_agent description (agents.ts) |
description-budget test | MCP tools/list |
✅ guard |
import-intent.test.ts |
title and comment only; the assertion on the fork_to_own shape is unchanged and still runs |
— | ✅ |
types.ts |
comment only | — | ➖ |
Fix PR mutation: ➖ (this is a docs PR).
Product fit (Step 6.6)
| check | verdict | evidence |
|---|---|---|
| Approved (not incubating) | ✅ | #4133 is status-ready; docs are exempt |
| Scope ↔ issue | ✅ | all four items in #4133 are met (above). No new tool, route or setting |
| Open-core tier | ✅ | Role addressing appears in user docs only as "where your install provides roles". This is the same wording skills-and-playbooks.md already uses on dev. It describes the generic seam and does not list gated modules. No private program, customer or internal design is named in any added user-doc line |
| Doctrine | ✅ | no quotable line |
| Bar 7–11 | ✅ | 7: the read paths are documented on both the MCP and UI sides, and granting stays in the UI, as stated. 9: the refusals are named codes. 10: user-doc lines contain no issue numbers, raw routes or curl. 11: this PR is the docs update |
Issues Found
Critical (Block Merge)
- None.
Warnings (Review Required)
- None.
Suggestions (Optional)
faq/scheduling-and-automation.md: the new role-id sentence sits between "…the owner when nobody holds that seat." and "That person sees it in their Workspace Inbox." As a result, "That person" now follows a sentence about an ask that reaches nobody. Moving the new sentence after the Inbox sentence would restore the reference. This is wording only and does not block the merge.
Recommendation
APPROVE
Every corrected claim matches the code on the branch. All Tier 1 checks are green. Nothing in the diff discloses private material.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4133. Docs and MCP tool descriptions follow the shipped manifest, apply and ask contracts; no behaviour change. Base is
dev; not stacked. Draft until validated.What
src/mcp-server/src/tools/systems.ts:apply_systemsays grants and seat are written only for an admin in a signed-in session, and are only reported from an MCP key (2,032 characters, under the 2,048 cap).src/mcp-server/src/tools/agents.ts,types.ts,import-intent.test.ts: tool arguments land in transcripts, not the audit log; the false audit claim is gone from the description, a comment and a test title.architecture/mcp-server.md,requirements/github.md,requirements/core-agent.md; feature flowsgithub-import-intents.mdandtemplate-processing.mddocument fork over MCP (saved personal token,FORK_PAT_REQUIREDfor agent keys).agents/creating-agents.md,integrations/mcp-server.md,automation/approvals.md(role:<id>asks, three refusals, no owner fallback),faq/scheduling-and-automation.md,collaboration/system-manifest.md(seat held back on apply as well as deploy), pointer lines onagent-permissions.mdandagent-configuration.md. No raw routes, no curl.Rulings carried (plan file)
apply_systemwording. T2 fix the comment and test title too. T3 one pointer line on each task page. T4 a guard test against the audit claim returning is deferred; debt entry on the dev-methodology repo. Premise 2: users are told grants and seat are written when an admin applies the manifest signed in, otherwise granted in Settings.Review + security
/review(report-only): MERGEABLE, zero findings; every changed claim checked against the code on the branch./cso --diff: 0 findings. Enterprise-docs guard 0 hits on the public tree; requirements-structure guard passes.Tests
MCP suite 1,113 pass, 0 fail (tool-count and description-length tests unchanged). Not run here: the full unit island (CI).
Before merge
Nothing. No migration, no image rebuild.
Handoffs
#4128 to #4132 and the manifest follow-ups edit other parts of
system-manifest.md; this PR touches different lines.🤖 Generated with Claude Code