Skip to content

docs(spec): shared MCP document ownership is per file (OpenAPM 0.1.63 proposed, req-mf-027) - #3888

Merged
Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-spec-amend-targets-all-vscode-removal
Nov 19, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 5 commits into
mainfrom
danielmeppiel-spec-amend-targets-all-vscode-removal

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Proposed OpenAPM v0.1 amendment 0.1.63: adds req-mf-027 (Section 4.5, consumer MUST). This makes the shared MCP document rule normative. When two or more targets write project-scoped MCP servers to one file (at this revision claude and copilot share the workspace-root .mcp.json), an entry the consumer wrote is attributed to the file, not only to the target that selected it. Deactivating one target never removes, or treats as foreign, an entry another active target that writes the file still selects; that target owns it from then on. The entry becomes removable (under the other ownership rules, including req-mf-026) only once no such target selects it.

This is spec-only. The reference implementation already behaves this way:

  • src/apm_cli/install/mcp/ownership.py:540 SHARED_PROJECT_MCP_DESTINATIONS = (frozenset({"claude", "copilot"}),); :543-550 project scope only (user scope has no peers).
  • :553-583 claim_shared_destination: a peer's claim is adopted, so the entry is not foreign.
  • :600-622 inherit_shared_destination_claims: a retiring runtime's claims pass to an active peer.
  • :625-636 names_owned_by_active_peers, called before removal at src/apm_cli/install/mcp/integration.py:185 and :544, and src/apm_cli/install/mcp/command.py:456.

Edits: Sections 1.3 (count), 4.2.1 non-normative note (points to req-mf-027 instead of "deferred"), 4.5 (new requirement), 4.9, 11.3.2, Appendix C row and total, Appendix D 0.1.63 row and trailer, requirements manifest, CONFORMANCE regenerated, one conformance test. No schema change. 0.1.63 is the next free number after 0.1.62. Open #3331 uses "Revision pending" and req-lk-024, so neither number collides.

Scope pruned by the maintainer: removal policy, schema refresh, all semantics, the alias table and the rewrite requirement are not part of this PR (#3859 was closed as not planned).

Issue and approved scope

Issue: Closes #3880

Human scope-approval comment: #3880 (comment) (binding restatement of #3880 (comment), which superseded #3880 (comment))

Does this PR complete the issue, or what remains? Completes the record: one amendment row, Appendix C and counts, conformance tests passing on main, CONFORMANCE regenerated, and an apm-spec-guardian comment (fold_and_ship, 0 blockers): #3888 (comment)

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

Validation evidence:

  • .venv/bin/python -m pytest tests/spec_conformance/test_shared_mcp_document_reqs.py -p no:xdist -q: 2 passed (clauses (a)-(c), and an inherited entry edited by hand is preserved with a failing install).
  • Mutation checks (source restored afterwards): names_owned_by_active_peers returning an empty set fails the first test; a no-op inherit_shared_destination_claims fails both.
  • .venv/bin/python -m pytest tests/unit/install/test_copilot_project_mcp_destination.py tests/spec_conformance/test_claude_mcp_reference_reqs.py -p no:xdist -q: passed (with the new file, 43 passed before the last fold).
  • .venv/bin/python -m tests.spec_conformance.orphan_check: OK, 140 requirements aligned.
  • .venv/bin/python -m pytest tests/spec_conformance --collect-only -q -p no:xdist: 619 tests collected; then .venv/bin/python -m tests.spec_conformance.gen_statement: wrote CONFORMANCE.json and CONFORMANCE.md.
  • apm-spec-guardian linter checklist: 11/11 pass (check 11 notes the one new .py conformance test).
  • uvx [email protected] check and format --check on the new test: pass.

Spec conformance (OpenAPM v0.1)

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

Note: the requirements manifest lives at docs/public/specs/manifests/openapm-v0.1.requirements.yml.

Copilot AI 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.

🟢 Approval recommended

No active review issues are recorded for the shared MCP document ownership amendment.

No open issues 🎉

What changed in this PR

Proposes OpenAPM amendment 0.1.63 for the shared MCP document ownership portion of #3880. It formalizes existing APM behavior without changing production code or schemas; adoption remains pending.

Changes:

  • Adds req-mf-027: shared-file entries remain owned and preserved while another active target still selects them.
  • Updates requirement indexes, counts, and conformance records to 140 normative statements.
  • Adds a lifecycle conformance test covering shared ownership, frozen replay, target deactivation, and final cleanup while preserving user-authored entries.
File Description
tests/​spec_conformance/​test_shared_mcp_document_reqs.py Adds lifecycle coverage for shared .mcp.json ownership.
docs/​src/​content/​docs/​specs/​openapm-v0.1.md Defines req-mf-027 and updates counts, references, and proposed revision history.
docs/​public/​specs/​manifests/​openapm-v0.1.requirements.yml Registers the new consumer MUST requirement.
CONFORMANCE.md Adds the requirement’s test binding and updates the consumer count.
CONFORMANCE.json Records the new binding and updated requirement totals.
CHANGELOG.md Summarizes the proposed amendment and its existing implementation behavior.

Review effort: Balanced

Daniel Meppiel (danielmeppiel) added a commit that referenced this pull request Nov 19, 2026
…3888)

Make the unobservable attribution clause framing text, keep the
recorded-write checks (including req-mf-026) for a peer-written entry,
carry the native write hash forward to the remaining target, phrase
the claude/copilot sharing as a Target Registry example, and tighten
the removal and scope sentences. The conformance test now also checks
that the inherited claim alone lets the remaining target remove the
entry. Statement count unchanged (140).

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Spec Guardian: fold_and_ship

Scope: editorial-patch; diff = +145/-9 lines across 6 file(s). Shocked-meter avg: 8.0/10.

All four panels recommend ship_with_followups at shocked_meter 8 (average 8.0) with zero blockers, so neither the blocker veto nor the ship-meter floor applies, and fold_and_ship is allowed. The six folds all edit the req-mf-027 paragraph: they make the unobservable first MUST framing text (T1), keep a peer-written shared entry under the recorded-as-written checks, including req-mf-026, and carry the hash forward to an inheriting target (T2), which is how claim_shared_destination and inherit_shared_destination_claims already behave, tighten the removal and scope sentences (T3, T4), and recast the claude/copilot fact as an example from the Target Registry companion. None of them adds a statement, changes a class, or adds behavior the reference lacks.

The follow-up most worth tracking was F8 (the remaining target removing the entry using only the inherited claim). It was cheap, so it is folded too. F7, F9 and F10 stay deferred as small editorial improvements. The removal-proof wording from oci-nit-r1-1 is outside this PR's binding scope.

Fold status: F1-F6 and F8 are folded in 633addd (statement count unchanged at 140: 135 MUST, 5 SHOULD). tests/spec_conformance/test_shared_mcp_document_reqs.py passes on the folded head.

Convergence

Panel Verdict Shocked New B New R New N
Swagger / OpenAPI Editor ship_with_followups 8/10 0 2 3
OCI Distribution Editor ship_with_followups 8/10 0 1 2
Package-Manager Registry-Contract Editor ship_with_followups 8/10 0 2 4
Web-Platform Architect ship_with_followups 8/10 0 1 2

B = new blocking findings, R = new recommended, N = new nits.
Counts are signal strength, not gates. The maintainer ships.

Convergent themes (flagged by 2+ panels)

  • T1 -- The first req-mf-027 MUST ('attribute each entry ... to the file') covers internal bookkeeping no test can observe; it should be framing, with the observable MUSTs that follow carrying the requirement. (supporting: sw-rec-r1-1, pkg-nit-r1-2, tag-nit-r1-2)
  • T2 -- Treating a peer-written entry 'as its own' must not skip the recorded-write checks of req-mf-026; the reference adopts the peer fingerprint, still compares against it, raises a conflict on drift, and carries the hash forward on inheritance. (supporting: sw-rec-r1-2, oci-rec-r1-1, pkg-rec-r1-1, pkg-nit-r1-1)
  • T3 -- The closing scope sentences use a lowercase absolute ('never attributed') and suggest user scope is excluded only because its file is distinct. (supporting: sw-nit-r1-2, tag-nit-r1-1)
  • T4 -- The removal sentence puts a prohibition inside 'Only when ... MAY', and its req-mf-026 reference is imprecise for removal. (supporting: sw-nit-r1-1, oci-nit-r1-1)
  • T5 -- req-mf-027 is hard to find: it sits under the 4.5 'Variable references' heading and is missing from the Section 10.11 cleanup row. (supporting: sw-nit-r1-3, oci-nit-r1-2)

Fold now (6 item(s))

  1. [F1 / standalone] req-mf-027 (Section 4.5), first sentence parenthetical -- Replace '(at this revision claude and copilot both write the workspace-root .mcp.json)' with '(for example, at this revision the Target Registry v0.1 companion lists the workspace-root .mcp.json for both claude and copilot)', so normative text does not state non-normative registry data as fact. (Source: tag-rec-r1-1.)
    Success criterion: 'for example, at this revision' appears once in the req-mf-027 paragraph; needle '**[req-mf-027]** When two or more targets write project-scoped MCP' still matches on one line
  2. [F2 / T1] req-mf-027 first sentence + test needle -- Replace 'implementation MUST attribute each entry it wrote in that file to the file, not only to the target that selected the server. It' with 'implementation attributes each entry it wrote in that file to the file, not only to the target that selected the server, as follows. It'; rename the test needle to 'implementation attributes each entry it wrote in that'. Count unchanged.
    Success criterion: 'MUST attribute each entry' matches nothing in spec or test; the paragraph still contains MUST
  3. [F3 / T2] req-mf-027 second sentence -- After 'when another of those targets selects the same server' add ', subject to the same checks against what it recorded as written that it applies to an entry it wrote for the selecting target, including req-mf-026'. (Source: pkg-rec-r1-1, no-new-MUST form.)
    Success criterion: 'subject to the same checks against what it recorded as' matches once; needle 'NOT remove that entry while another active target that writes the same' still on one line
  4. [F4 / T2] req-mf-027 inheritance clause -- Change 'for that remaining target from then on.' to 'for that remaining target from then on, carrying forward the native write hash it recorded for the entry, where it recorded one.' (Source: oci-rec-r1-1 part 2.)
    Success criterion: 'carrying forward the native' matches once; needle 'file still selects the server, and it MUST treat the entry as owned' unchanged
  5. [F5 / T4] req-mf-027 removal sentence -- Replace 'Only when no active target that writes the file selects the server MAY the consumer remove the entry, subject' with 'When no active target that writes the file selects the server, the consumer MAY remove the entry, subject'; keep the req-mf-026 reference as written.
    Success criterion: 'Only when no active target' matches nothing; 'selects the server, the consumer MAY remove the' matches once
  6. [F6 / T3] req-mf-027 closing scope sentences -- Replace the two closing sentences with 'Entries the consumer did not write, user-scoped MCP configuration, and targets whose project MCP configuration files are distinct are outside this requirement.'
    Success criterion: no 'never' inside the req-mf-027 paragraph; 'user-scoped MCP' matches once
Defer to v0.1.1 (4 items)
  • [F7 / standalone] Section 4.2.1 non-normative note -- Add: 'At this revision the targets that share .mcp.json render the same entry for a given server, so the file holds one entry per server name whichever of them wrote it.' (Source: pkg-rec-r1-2; a new factual claim outside the binding scope.)
  • [F8 / standalone] tests/spec_conformance/test_shared_mcp_document_reqs.py -- After the single-target step, drop the server with only the remaining target active and assert the entry is removed, so the inherited claim alone is shown to be enough. (Source: pkg-nit-r1-3.) Folded in 633addd.
  • [F9 / T5] Section 4.5 lead-in -- One-line non-normative lead-in above the req-mf-027 anchor; keep the heading. (Source: sw-nit-r1-3.)
  • [F10 / T5] Section 10.11 table, row 7 -- Append 'req-mf-027 for shared project MCP files'. (Source: oci-nit-r1-2.)

Rejected findings

  • oci-nit-r1-1 -- Outside the binding scope, which excludes removal policy. 'The written-by-the-consumer proof of req-mf-026' would set a normative proof requirement for removal that this PR has not checked against the reference removal path. F5 keeps the existing reference.
  • oci-rec-r1-1 (bytes-must-match sentence) -- Mostly covered by F3. A separate bytes-must-match sentence would be stricter than req-mf-026, which also accepts proof by reference expansion. The hash carry-forward part is folded as F4.
  • sw-rec-r1-2 -- Folded in substance through F3, without defining 'foreign' through a new evidence clause or adding a MUST clause.
  • pkg-nit-r1-1 -- Covered by F3 ('recorded as written').
  • pkg-nit-r1-4 -- Informational; CONFORMANCE.md and CONFORMANCE.json already carry req-mf-027.

Linter notes (1 check(s) failed)

  • [11] One .py file is modified: the new conformance test tests/spec_conformance/test_shared_mcp_document_reqs.py. No src/ file changes. autopilot-pr-review-worker runs on this PR in parallel.

Note: the synthesizer recommends ship, but the linter found issues worth folding first. Here the only note is the expected conformance-test file, so nothing is left to fold.

Checks 1-10 pass on the folded head: ASCII-only; no forbidden tokens; schemas pass check_schema; fixtures parse; 140 unique req anchors; counts agree at 140 (135 MUST, 5 SHOULD) in Section 1.3, Appendix C, the Appendix D 0.1.63 row and trailer, and the requirements manifest; all relative anchors resolve; no mermaid; every fixture cites a req; CHANGELOG mentions the spec.

Linter handoff: After F1-F6, each test needle must stay on one physical line (assert_spec_contains does not normalize whitespace); the count stays at 140; the req-mf-027 paragraph has no 'never', 'Only when', or 'at this revision claude and'. All verified on 633addd.


Full per-panel findings

Swagger / OpenAPI Editor -- shocked_meter 8/10, confidence high

Summary: req-mf-027 matches the shipped ownership code: the project .mcp.json shared by claude and copilot, entries kept while an active peer still selects them, and the claim inherited by the remaining target. Counts, anchors, class listings and cross-references all check out. The follow-ups are editorial.

New recommended findings (2)

  • [sw-rec-r1-1] req-mf-027 first sentence -- 'MUST attribute each entry ... to the file' puts a MUST on bookkeeping no one can observe or test; the code records per-target ownership plus a static peer group.
    Recommended fix: Make it framing text with no RFC 2119 keyword ('attributes ... as follows. It MUST treat...').
  • [sw-rec-r1-2] req-mf-027 second sentence / req-mf-026 -- 'foreign' is undefined; the code copies the peer's recorded fingerprint so the req-mf-026 check passes for a peer-written entry, while a user-changed entry still raises a conflict.
    Recommended fix: Tie 'not foreign' to the req-mf-026 write evidence recorded under the peer target.

New nit findings (3)

  • [sw-nit-r1-1] 'Only when ... MAY' packs a prohibition into a MAY. -- fix: 'When no active target ... the consumer MAY remove the entry, ...'
  • [sw-nit-r1-2] 'are never attributed by this requirement' is a lowercase absolute. -- fix: 'Entries the consumer did not write are outside this requirement.'
  • [sw-nit-r1-3] req-mf-027 sits under the 4.5 'Variable references' heading. -- fix: optional one-line non-normative lead-in; keep the heading and anchor.

Preserved strengths confirmed

  • Counts consistent at 140 (135/5) at every site; anchors unique and in order; consumer class everywhere; scope matches the code with no code change needed; the 4.2.1 note now points to the requirement; the Appendix D row and its Section 9.2 classification are accurate.

OCI Distribution Editor -- shocked_meter 8/10, confidence high

Summary: req-mf-027 matches the shipped per-file ownership in ownership.py, keeps foreign entries isolated, and keeps all counts consistent. One recommended clarification: tie shared ownership to the recorded native write hash, not the server name.

New recommended findings (1)

  • [oci-rec-r1-1] req-mf-027 -- The text never says shared ownership travels with the recorded native write hash. A name-only implementation could overwrite a hand-edited entry. The code compares against the peer's hash and copies it on inheritance.
    Recommended fix: State the hash comparison and carry the recorded hash forward to the remaining target.

New nit findings (2)

  • [oci-nit-r1-1] 'including req-mf-026' points at a replacement rule, not a removal rule. -- fix: '... including the written-by-the-consumer proof of req-mf-026'.
  • [oci-nit-r1-2] Section 10.11 row 7 does not cite req-mf-027. -- fix: optional append.

Preserved strengths confirmed

  • Counts consistent; the user-scope exclusion matches the code; foreign-entry isolation is kept and tested with a user entry; the retained-entry rule matches the cleanup sites and is mutation-tested; the Section 9.2 classification is honest; the note stays non-normative.

Package-Manager Registry-Contract Editor -- shocked_meter 8/10, confidence high

Summary: A narrowly scoped consumer MUST that matches shipped behavior; counts and the Appendix D classification agree. Two recommended clarifications, neither needing a code or count change.

New recommended findings (2)

  • [pkg-rec-r1-1] req-mf-027 second sentence -- 'as its own' could be read as overwriting without a check; the code compares against the adopted fingerprint and fails with a conflict on drift.
    Recommended fix: Add 'subject to the same checks against what it recorded writing ..., including req-mf-026'.
  • [pkg-rec-r1-2] Section 4.2.1 note -- Per-file ownership presumes that sharing targets render identical entries, which they do today.
    Recommended fix: One non-normative sentence saying so.

New nit findings (4)

  • [pkg-nit-r1-1] Use 'recorded as written' consistently.
  • [pkg-nit-r1-2] The first-sentence MUST cannot be tested on its own; optional rephrase.
  • [pkg-nit-r1-3] The test does not show the remaining target removing the entry using only the inherited claim. -- fix: add that step.
  • [pkg-nit-r1-4] Note only: the CONFORMANCE files carry req-mf-027 at head.

Preserved strengths confirmed

  • Counts agree; consumer-only; scope limits are clear; the Section 9.2 row names the verdict class; the rules match the code at every call site; the note closes the deferral; the end state equals a fresh install with only the remaining target.

Web-Platform Architect -- shocked_meter 8/10, confidence high

Summary: A tight, testable consumer MUST that claims nothing beyond the reference implementation, with every count and machine-readable projection consistent. The only substantive gap is layering.

New recommended findings (1)

  • [tag-rec-r1-1] req-mf-027 / Section 4.2.1 note -- The normative parenthetical states non-normative Target Registry destination data as fact.
    Recommended fix: Phrase it as an example drawn from the Target Registry v0.1 companion.

New nit findings (2)

  • [tag-nit-r1-1] The final sentence implies user scope is excluded only because its file is distinct. -- fix: list user-scoped configuration explicitly.
  • [tag-nit-r1-2] The first MUST describes an internal data model. -- fix: optional 'attributes ... as follows:'.

Preserved strengths confirmed

  • 140 anchors, manifest entries and CONFORMANCE totals agree; amendment discipline; user entries stay safe; the deferral is closed; the conformance workflow runs the whole tree; the spec claims no more than the code.

This panel is advisory. It does not block merge. Re-apply the spec-review label after addressing feedback to re-run.

… proposed, req-mf-027)

Add req-mf-027 (Section 4.5, consumer MUST): when claude and copilot
share the project .mcp.json, an entry APM wrote is attributed to the
file, so deactivating one target never removes an entry another active
target still selects. Matches install/mcp/ownership.py
(SHARED_PROJECT_MCP_DESTINATIONS, names_owned_by_active_peers,
inherit_shared_destination_claims). Appendix C/D, counts (140: 135
MUST), requirements manifest and CONFORMANCE updated; conformance test
added.

Closes #3880

Co-authored-by: Copilot App <[email protected]>
…3888)

Make the unobservable attribution clause framing text, keep the
recorded-write checks (including req-mf-026) for a peer-written entry,
carry the native write hash forward to the remaining target, phrase
the claude/copilot sharing as a Target Registry example, and tighten
the removal and scope sentences. The conformance test now also checks
that the inherited claim alone lets the remaining target remove the
entry. Statement count unchanged (140).

Co-authored-by: Copilot App <[email protected]>
Enumerate the req-mf-027 clauses, word the hash clause as retaining a
recorded write hash (matches the setdefault inheritance in
inherit_shared_destination_claims), and make the conformance test
exercise a claim inherited without a prior own claim, plus a second
test that an inherited entry edited by hand is preserved with a
failing install (the req-mf-026 checks still apply).

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) force-pushed the danielmeppiel-spec-amend-targets-all-vscode-removal branch from 633addd to 65479fe Compare November 19, 2026 05:37
@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

APM Review Panel: ship_with_followups

OpenAPM 0.1.63 (proposed) writes down what APM already does: when Copilot and Claude share one .mcp.json, ownership is tracked per file, so dropping one target never deletes entries the other still uses.

panel-mode=lean; personas=doc-writer,test-coverage-expert,apm-ceo

cc Daniel Meppiel (@danielmeppiel) Sergio Sisternes (@sergio-sisternes-epam) -- a fresh advisory pass is ready for your review.

This is a spec-only change inside the binding scope record on #3880 (#3880 (comment)). It adds req-mf-027, which describes shipped behavior in install/mcp/ownership.py. Removal policy, schemas and runtime behavior are unchanged, and src/ is untouched. The value is in making the behavior normative. Copilot and Claude write one project-level .mcp.json, and the spec now says that file is owned per destination, not per target, so a user can drop a harness without APM deleting a server the other harness still selects.

All three reviews agree. apm-spec-guardian returned fold_and_ship with 0 blockers. doc-writer found no companion page that contradicts per-file ownership. test-coverage-expert found the new test hermetic and passing. Both doc-writer findings are folded at 65479fe. req-mf-027 is now an enumerated (a)/(b)/(c) list, and the wording that over-claimed hash carry-forward now reads "retaining a native write hash recorded for the entry where one exists", which matches the setdefault semantics of inherit_shared_destination_claims (Appendix D matches). Both test-coverage findings are folded too, and they are load-bearing evidence. The first test re-installed both targets before each narrowing, so the inheritance step never ran and a no-op inherit_shared_destination_claims mutant passed. It now narrows both -> [copilot] -> [claude] -> [claude] without the server, so claude removes the entry using only the inherited claim, and that mutant fails. A second test, test_inherited_entry_keeps_the_recorded_write_checks, covers req-mf-026 drift on a peer-written entry: the install exits nonzero, prints "Preserved MCP connection(s) echo ...", and keeps the hand-edited entry byte-identical. It also fails under the mutant. req-mf-027 now has two mutation-checked CLI-tier tests (CONFORMANCE test_count 2). Byte-level hash carry-forward stays covered at unit tier.

What remains is the guardian's three deferred editorial items (F7, F9, F10), which are optional v0.1.1 polish. The CHANGELOG line follows the new #3886 style and needs no migration note, because behavior does not change.

Aligned with: Portable by manifest -- any conforming implementation must now keep entries an active peer still selects, so the guarantee no longer depends on APM's code alone. Secure by default -- req-mf-027(a) keeps the req-mf-026 drift checks for inherited entries, and a mutation-checked CLI test shows that a hand-edited peer entry is preserved. Multi-harness -- Copilot and Claude can share one project MCP document, and adding or dropping either one is safe for the other. Pragmatic -- the spec catches up to shipped code with zero behavior change or migration cost.

Panel summary

Persona B R N Takeaway
Doc Writer 0 2 0 The CHANGELOG line and the spec prose match the reference implementation, and no companion page contradicts per-file ownership. Two optional prose fixes, both folded.
Test Coverage Expert 0 2 0 The new test was hermetic and passing, but a no-op inheritance mutant survived it, and drift on peer entries had no CLI-tier trap. Both are folded and mutation-checked.

B = blocking-severity findings, R = recommended, N = nits.
Counts are signal strength, not gates. The maintainer ships.

Top 2 follow-ups

  1. [Apm Spec Guardian] Batch the deferred editorial items into the v0.1.1 editorial pass: F7 (the identical-render sentence in the 4.2.1 note), F9 (the 4.5 lead-in) and F10 (row 7 of 10.11). -- None of them changes a requirement, and one batched editorial PR closes them cheaply.
  2. [Test Coverage Expert] Optional: if the hash-retention logic is ever refactored, add a CLI-tier test that checks a peer's recorded native write hash survives inheritance byte-for-byte. -- Today only the unit test test_retiring_runtime_passes_claims_and_keeps_peer_entries covers it; a CLI-tier check would catch wiring regressions the unit test cannot see.

Recommendation

Merge at 65479fe once CI is green and the requested reviewer has looked. The change stays within the spec-only scope record, every in-scope panel finding is folded, and both new req-mf-027 tests fail under a no-op inheritance mutant. Track the guardian's deferred F7, F9 and F10 for the v0.1.1 editorial pass. None of them gates this proposed amendment.


Full per-persona findings

Doc Writer

  • [recommended] The first MUST sentence of req-mf-027 is hard to parse; split the requirement into enumerated clauses without changing what it means. at docs/src/content/docs/specs/openapm-v0.1.md:751
    The 'subject to the same checks ...' clause stacks three relative clauses, and the treat-as-owned, MUST NOT remove and MAY remove rules all sat in one 20-line block. Normative text is the source of truth for implementers, so readability affects correctness.
    Suggested: Enumerate as (a) not foreign plus the same checks including req-mf-026, (b) MUST NOT remove while an active sharer selects and treat as owned for that target, (c) MAY remove when none selects. Folded.
  • [recommended] The hash clause said MUST carry forward the retiring target's write hash, but the reference does that only when the remaining target did not already own the entry (setdefault). at docs/src/content/docs/specs/openapm-v0.1.md:766
    Read literally, that is a stronger MUST than the shipped behavior in this edge case.
    Suggested: 'retaining a native write hash recorded for the entry where one exists', in the Appendix D row as well. Folded.
    Proof (passed): tests/unit/install/test_copilot_project_mcp_destination.py::test_retiring_runtime_passes_claims_and_keeps_peer_entries -- proves: when Claude is dropped, Copilot inherits Claude's shared entries and their recorded hash, but only for entries Copilot did not already own. [multi-harness-support,portability-by-manifest]

Test Coverage Expert

  • [recommended] The 'inherited claim' step in the conformance test did not exercise inheritance; a no-op inherit_shared_destination_claims still passed it. at tests/spec_conformance/test_shared_mcp_document_reqs.py:72
    The test re-installed both targets before each narrowing, so the remaining target always held its own claim. Mutant run: 1 passed, though it should have failed. The integration test test_claude_and_copilot_share_one_mcp_json_entry did catch it, but that suite does not run in the spec-conformance job.
    Suggested: Narrow straight from the current state: both -> [copilot] -> [claude]. Folded; the mutant now fails both req-mf-027 tests.
  • [recommended] No CLI-level test covered 'carrying forward the native write hash' or the req-mf-026 drift checks on a peer-written entry.
    The user promise at stake: an entry hand-edited after a peer wrote it is kept and reported, not overwritten or deleted.
    Suggested: Add a test that switches copilot -> claude, hand-edits the entry, removes the server, and asserts the edit survives. Folded as test_inherited_entry_keeps_the_recorded_write_checks.
    Proof (missing at review time): tests/spec_conformance/test_shared_mcp_document_reqs.py::test_peer_written_entry_keeps_drift_checks_after_target_switch -- proves: switching targets or removing the server never silently overwrites or deletes a hand edit. [secure-by-default,multi-harness-support]

This panel is advisory. It does not block merge. Re-apply the
panel-review label after addressing feedback to re-run.


Generated by autopilot-pr-review-worker. This comment is AI-generated and may contain errors.

@danielmeppiel

Copy link
Copy Markdown
Collaborator Author

Folded in this run

  • (panel) apm-spec-guardian F1-F6: the first sentence is now framing text, peer-written entries keep the req-mf-026 checks, the hash clause is added, the claude/copilot sharing is now an example from the Target Registry, and the removal and scope sentences are tightened -- resolved in 633addd.
  • (panel) apm-spec-guardian F8: the conformance test checks that the remaining target removes the entry -- resolved in 633addd.
  • (panel) doc-writer: req-mf-027 is enumerated as clauses (a)-(c), and the hash clause now says "retaining a native write hash recorded for the entry where one exists" -- resolved in 65479fe.
  • (panel) test-coverage-expert: the test narrows both -> copilot -> claude, so the inherited claim is exercised; a new test checks that a hand-edited inherited entry is preserved and the install fails -- resolved in 65479fe.

Copilot signals reviewed

  • Copilot review at a472449: no inline threads, no open issues.

Deferred (out-of-scope follow-ups)

Regression-trap evidence (mutation-break gate)

  • test_deactivating_one_target_keeps_entries_another_active_target_selects -- changed names_owned_by_active_peers to return an empty set, and separately made inherit_shared_destination_claims a no-op; the test failed both times; guard restored.
  • test_inherited_entry_keeps_the_recorded_write_checks -- made inherit_shared_destination_claims a no-op; the test failed; guard restored.

Lint contract

uvx [email protected] check and format --check (CI paths) were silent, scripts/lint-auth-signals.sh exited 0, and scripts/lint_architecture_boundaries.py --root . exited 0. The owner-touch gate found no touched owners and verify passed (verified=true, terminal_evidence_required=true).

CI

gh pr checks at 65479fe: 32 success, 2 neutral, 1 skipped, 0 failing (Lint, Spec tests 1-3, Spec conformance gate, Check conformance statement, Merge Gate). No CI fix iterations were needed. The PR is MERGEABLE; GitHub shows BLOCKED only because the required review is still pending. The PR is not merged.


Generated by autopilot-pr-merge-worker. This comment is AI-generated and may contain errors.

@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 92f5274 into main Nov 19, 2026
35 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-spec-amend-targets-all-vscode-removal branch November 19, 2026 05:52
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.

[FEATURE] OpenAPM: shared MCP attribution rule, alias/target: removal policy and schema refresh (0.1.61 follow-ups)

2 participants