Skip to content

docs: user docs and MCP descriptions follow the shipped manifest, apply and ask contracts (#4133) - #4142

Merged
vybe merged 2 commits into
devfrom
docs/4133-docs-followups
Nov 1, 2026
Merged

vybe merged 2 commits into
devfrom
docs/4133-docs-followups

Conversation

@vybe

@vybe vybe commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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_system says 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.
  • Memory docs: architecture/mcp-server.md, requirements/github.md, requirements/core-agent.md; feature flows github-import-intents.md and template-processing.md document fork over MCP (saved personal token, FORK_PAT_REQUIRED for agent keys).
  • User docs: 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 on agent-permissions.md and agent-configuration.md. No raw routes, no curl.

Rulings carried (plan file)

  • T1 full apply_system wording. 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

Trinity Agent (trinity) and others added 2 commits November 1, 2026 00:51
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 trinity-ability 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.

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.ts logToolCall writes 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.py defines seat_requires_interactive_admin (apply) and seats_require_interactive_admin (deploy). These match the new seat row and the tool description.
  • role:<id> asks. role_addressing.resolve_role_id_for_ask has three refusal arms: role_unavailable, role_unassigned and role_cannot_open_agent. There is no owner or operator fallback. The same module states that reports and messages refuse a role id with invalid_to.
  • Permission reads. The get_agent_permissions (observed_within) and get_agent_capability_grants (self or spawned for an agent key; owner or admin for a person key) descriptions in tools/permissions.ts match the new pointer lines.
  • Fork over MCP. The UI path Settings → MCP Keys → Personal GitHub Token is the one the frontend uses. FORK_PAT_REQUIRED is the documented refusal. The kind field is described on the read tools.
  • naming: bare (item 4 of #4133) was already documented in system-manifest.md on dev, 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.

@trinity-ability
trinity-ability marked this pull request as ready for review November 1, 2026 06:00
@vybe
vybe merged commit ce63e50 into dev Nov 1, 2026
26 checks passed
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.

2 participants