Skip to content

docs(plans): a read pin needs the vendor's own readOnlyHint, and a silent vendor gets no entry (TASK-172) - #2016

Merged
lilyshen0722 merged 4 commits into
mainfrom
wren/task-172-read-hint
Sep 29, 2026
Merged

lilyshen0722 merged 4 commits into
mainfrom
wren/task-172-read-hint

Conversation

@lilyshen0722

@lilyshen0722 lilyshen0722 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Records in the hosted-MCP plan the rule #2014 enforces at entry load, the ruling on what it costs, and the same rule applied to the second drift arm.

The rule (§3). A tool pinned read carries the vendor's own readOnlyHint: true. The MCP schema (2026-07-28, ToolAnnotations) defaults an absent readOnlyHint to false, and a pin that never held the hint leaves the drift row's withdrawal case dead for that tool. The hint still grants nothing; its absence refuses.

The ruling (§3, pod 75440). A vendor that sends no readOnlyHint gets no entry, not a write-only one. The class records what a tool does, so a read tool is never pinned write to get past a missing hint, and §5's attribution answer cannot arrive that way.

The second drift arm (§3, pods 75449, 75454 and 75457). A claim the pin recorded must still be made, and silence withdraws it. The spec defaults readOnlyHint to false and destructiveHint to true, which is the unsafe value both times. Three verdicts follow:

Each arm reads the annotations the pin recorded, not its class. Where a withdrawn claim and the contradiction coincide, the refusal names the claim. A read pin is not asked to record destructiveHint: false: the spec makes that field meaningful only when readOnlyHint is false, and GitHub's server sets it on none of its 60 read tools.

Main's second arm reads silence as the safe value. Its fix is a separate code PR, and §10 step 2 names the cases that PR adds.

What else moves:

  • §3's drift row states both claims and the contradiction.
  • §10 step 2 names fix(hosted-mcp): a catalogue pin cannot contradict its class or its namespace (TASK-172) #2014's a read pin carrying no readOnlyHint is refused and four drift cases, the collision included. The recorded-neither case is a write pin, since no read pin can record neither.
  • §10 step 7 reads the list's hints first, and stops for §11 if they are missing.
  • §11's vendor list gains the annotation check. It records that Sentry's and GitHub's open-source servers set readOnlyHint on every MCP tool and fail their own tests when it is left out, at pinned commits. The check is scoped to the files that declare MCP tools.
  • §11's open list carries Linear's unknown: its MCP docs never mention annotations. It also names the one case worth reopening: v1's read-only token, which Linear enforces.

Order: #2014 has merged, so the first §3 paragraph's present tense is now true on main.

Docs only, one file, no code.

Gate: Rhea

🤖 Generated with Claude Code

lilyshen0722 and others added 4 commits September 29, 2026 09:58
…lent vendor gets no entry (TASK-172)

Records the rule #2014 enforces at entry load and the ruling on its cost
(pod 75440): a vendor whose tools carry no readOnlyHint gets no entry,
never a write-only one, because the class records what a tool does. The
vendor list gains the annotation check, step 7 reads the hints first,
and §11 carries Linear's unknown and the one case worth reopening.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…Hint included (TASK-172)

Folds the second drift arm's ruling (pod 75449) into the read-hint note. The spec defaults both hints to their unsafe value, so silence withdraws a recorded readOnlyHint: true or destructiveHint: false; a default newly spelled on a pin that recorded nothing is not drift; and a read pin still drifts on destructiveHint: true, because the entry load refuses one carrying it. §10 step 2 names the three cases, and §11's source check is scoped to the files each server declares its MCP tools in.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…he read class (TASK-172)

A read pin that recorded readOnlyHint: true drifts on a live
destructiveHint: true, the pair the entry load refuses. Every other
newly spelled default changes nothing, so a pin that recorded neither
claim does not drift. Each arm reads the pin's annotations, never its
class, and a read pin is not asked to record destructiveHint: false,
which the spec makes meaningful only when readOnlyHint is false (pod
75454).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tion (TASK-172)

A pin that recorded both readOnlyHint: true and destructiveHint: false,
against a tool now saying destructiveHint: true, fires two arms. The
refusal names the destructiveHint: false it lost, not the generic
contradiction, and §10 step 2 gains that case (pod 75457). The
recorded-neither case is a write pin, since the entry load refuses a
read pin that records no readOnlyHint.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@lilyshen0722
lilyshen0722 added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit c2dbb2c Sep 29, 2026
17 of 22 checks passed
lilyshen0722 added a commit to thantiklermcirony/commonly that referenced this pull request Oct 9, 2026
… withdraws them (Team-Commonly#2023)

Three arms replace the two that came before (75449, 75454, 75457; written into
§3 by Team-Commonly#2016):

- a recorded `readOnlyHint: true` is withdrawn when the vendor stops saying it
  (unchanged);
- a recorded `destructiveHint: false` is withdrawn when the vendor stops saying
  it. The spec defaults an absent `destructiveHint` to `true`, so silence is the
  unsafe value, and the old arm could not see this case at all: it read
  `pinned.destructiveHint !== true`, and an unannotated pin has no
  `destructiveHint` to withdraw (vera 75423, measured 75445);
- a live `destructiveHint: true` beside a recorded `readOnlyHint: true` is the
  pair the entry load refuses (Team-Commonly#2014), and drift does not admit later what entry
  refuses.

Every arm reads the pin's annotations, never its class, so a pin that recorded
neither claim no longer drifts when the vendor spells the spec default (wren
75449). The withdrawn-claim arms come first: a pin that recorded both claims
reports the `destructiveHint: false` it lost rather than the generic
contradiction (75457).

The three drift fixtures Team-Commonly#2014 makes entry-illegal are re-pointed at
`class: write` — `tightened`, `unpinned`, `silent` — and the recorded-nothing
pair is flipped to `ok`, which is what the ruling predicts for a write pin. The
hole-on-record arm stays: its pin is not a catalogue state any more, and keeping
it is the point. A census of every `pinned()` call in the suite, run against
Team-Commonly#2014's head, is what found them (75461, 75462).

Two comments the rulings staled are corrected: `movedTowardWrite`'s "losing
`destructiveHint` is not drift", and `entries.ts`'s "a tool whose vendor
annotates nothing can only be pinned `write`" (75440).

Ledger: 12 mutants on the predicate, 11 killed, 1 recorded equivalent (the
mirror's wording may change as long as it names the claim the pin lost — the
arms assert the claim, not the sentence), 0 NAMED-ARM MISSES, baseline 20/20
asserted on every run. Neighbourhood 17 suites / 266 passed; full backend 498
suites / 4691 passed, 24 skipped, 0 failed.
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.

1 participant