Skip to content

Reconcile privacy and submission evidence with the deployed state - #177

Merged
aterga merged 1 commit into
mainfrom
claude/new-session-52h6bl
Sep 1, 2026
Merged

aterga merged 1 commit into
mainfrom
claude/new-session-52h6bl

Conversation

@aterga

@aterga aterga commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Executes the privacy/submission drift action from the release review: the two policy sentences #174 flagged are updated in the source text (gated on legal review in the doc header), the hosting-model drift behind #122 is recorded and now gates republication, routine tool outputs stop carrying per-app principals and last-used timestamps (the OpenAI submission guidance asks for exactly this minimization), and both directory guides' claims are regenerated from a live scan of the current build — 10 tools / 9 read-only, where both guides still said 11 / 10.

The live probe (2026-09-01) also found the production origin fronted by Internet Computer HTTP-gateway infrastructure that forwards only the MCP/OAuth paths: /version, /status/, the II app-metadata document (#169), and the OpenAI domain-verification endpoint all answer with redirects at that edge. The guides now say so wherever they cited those endpoints as evidence; restoring the paths is fronting-layer work tracked in #176.

Related issues

#174 and #122 — closed by the drift action this PR executes, each with the audit record in its closing comment. #176 tracks the operator-side follow-ups (gateway allowlist, hosting facts for the policy).

Changes

  • docs/icp-mcp-privacy-policy-draft.md — the two Privacy policy: two sentences go stale once writes fetch the app's origin #174 sentence fixes: "Websites you ask the Service to look up" widens to "look up, or act on" (every state-changing call now fetches the app's published declarations first), and "The authorization is not restricted to particular applications" gains the action-reach limit (writes reach only apps publishing the declaration, signed with that app's own identity). Both are flagged in the header as pending legal review. A second header note records the hosting-model drift and blocks republication until sections 2, 3 and 5 are reconciled with the operators (Deployment-level logging audit to substantiate the privacy policy's logging claims #122).
  • crates/imcp2-core — data minimization in routine outputs: list_app_accounts drops last-used timestamps at the Candid decode boundary (never carried past the decoder), and acted_as_principal is removed from the canister_query, canister_update_call and get_canister_oql_schema outputs and from the text identity annotation. The derived_for_origin/requested echo stays — the origin is what carries the mismatch safeguard — and get_app_principal still returns the principal on request.
  • docs/anthropic-directory-submission.md, docs/openai-directory-submission.md — counts regenerated (10 tools, 9 read-only, unit-pinned; longest name 23); dated re-verification notes describing the scan; the status-page row, production-build blocker, domain-verification blocker and checklists updated for the endpoints the gateway front cuts off; a data-minimization evidence line for OpenAI's minimum-information bar.
  • README.md — tool-table rows updated to the minimized reply shapes.

Testing

  • cargo build --locked --all-targets
  • cargo test --locked --all-targets — 266 tests pass, including the updated decode and annotation tests
  • No new cargo fmt / clippy findings introduced: the pre-existing output was compared before/after this diff (the tree was not fmt-clean before this change, and CI does not gate on it)
  • npm test --prefix monitoring/mcp-status — dashboard unchanged, not run

Checklist

  • I have read the Contributing guidelines.
  • Docs (README / comments) updated for any user-visible change.
  • No secrets, credentials, or internal-only information are included — every deployment fact cited is externally observable (public DNS, the served certificate, HTTP responses).

🤖 Generated with Claude Code

https://claude.ai/code/session_011RewvMNfTKVwXfyf5tqSzL


Generated by Claude Code

The write gate (#166), the tool-surface changes that followed, and the
new fronting layer on the public origin had left the privacy-policy
source text and both directory-submission guides describing a
deployment that no longer exists (#174, #122).

Privacy policy source text (both edits flagged in the header as
pending legal review before the served page picks them up):

- Widen "Websites you ask the Service to look up" to "look up, or act
  on": since #166 every state-changing call first fetches the target
  application's published declarations, which discloses the request to
  whoever runs that site (#174).
- Under "The authorization is not restricted to particular
  applications", state the action-reach limit: state-changing actions
  reach only applications whose operators publish the service
  declaration, and are signed with that application's own identity
  (#174).
- Record the hosting-model drift for #122: the public origin is now
  fronted by Internet Computer HTTP-gateway infrastructure that
  terminates TLS and forwards only the MCP/OAuth paths, while sections
  2, 3 and 5 still describe the application host alone; the header now
  requires reconciling those sections with the operators before the
  next republication.

Minimize routine identifiers, per the OpenAI submission guidance to
drop identifiers a reply does not need:

- list_app_accounts no longer returns last-used timestamps; the II
  wire timestamp is dropped at the Candid decode boundary and never
  carried further.
- No routine reply echoes the per-app principal any more: the
  acted_as_principal field is gone from the canister_query,
  canister_update_call and get_canister_oql_schema outputs, and the
  text annotation names the derivation origin only, which is what
  carries the mismatch safeguard. get_app_principal still returns the
  principal when asked.

Regenerate the submission claims from a live scan (2026-09-01):

- 10 tools, 9 read-only, longest name 23 chars (both guides said 11
  tools / 10 read-only, verified against a surface two releases old).
- The status dashboard, /version, and the OpenAI domain-verification
  endpoint are cut off by the gateway front today; the affected
  readiness rows, blockers and checklist steps now say so and name the
  fronting-layer allowlist fix each needs.

Co-Authored-By: Claude <[email protected]>
Claude-Session: https://claude.ai/code/session_011RewvMNfTKVwXfyf5tqSzL

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

aterga commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

Failing check: copilot-pull-request-reviewer — not this PR's failure; no fix exists in this repo.

The Copilot review bot crashes in its own backend before producing any review: it reads the diff fine, builds its prompt, then the session-creation call to api.business.githubcopilot.com returns SessionModelError: Execution failed: CAPIError: 400 The resource you requested was not found (errorType: query, configurationError: false, model gpt-5.6-sol).

Evidence it isn't the diff: the first run and the re-requested run fail identically at the same spot with different request IDs, and everything this repo controls is green on the same head (test, Scan for internal identifiers). A direct Actions re-run is refused for this app's runs (403 This workflow run cannot be retried), so the re-request was the one re-run — spent.

Nothing in this repository can fix a 400 from Copilot's own model API; it needs Copilot's service to recover (or the org's Copilot code-review configuration to be checked if it persists). Re-request the review once more when convenient — I'll keep the PR watched and pick up whatever the next run produces.


Generated by Claude Code

@aterga
aterga merged commit f350f96 into main Sep 1, 2026
12 of 14 checks passed
@aterga aterga mentioned this pull request Sep 1, 2026
8 of 10 tasks
sea-snake pushed a commit that referenced this pull request Sep 1, 2026
A minor bump rather than a patch, because both the library API and the
served tool surface changed incompatibly since 0.2.0.

`imcp2` no longer contains the tool surface and the II session engine: they
moved to a new sibling crate, `imcp2-core` (#150, #157), which `imcp2` now
depends on by version and which publishes alongside it. The re-exports in
`src/lib.rs` keep the familiar names resolving (`IiInstance`,
`SessionGauges`, `Agent`, `IC_URL`), but the crate an embedder links has
changed shape, and `IcTools` is gone — split into `IcCanisterTools` and
`IcProtocolTools` (#157).

The surface an MCP client sees changed too: only the app/canister tools are
served (#158), state-changing calls now reach only applications that publish
a service declaration (#166), the ledger transfer/approval methods are
refused (#154, #163), `icp_top_up_canister` is instructions-only (#153), and
routine replies no longer echo the per-app principal (#177).

Under cargo's 0.x rules `0.2` is the compatibility range, so shipping this
as 0.2.1 would hand the break to everyone on `imcp2 = "0.2"` — the
requirement our own README recommends — the next time they ran
`cargo update`. 0.3.0 opens a new range instead; existing users stay on
0.2.x until they choose to move. The README's dependency line follows, as
`"0.2"` would no longer resolve to a current release.

`imcp2-core` moves in lockstep: publish-crate.yml checks the tag against
both manifests, and the workspace pin that binds them
(`imcp2-core = { path = …, version = … }`) has to name the same number or
the path dependency stops resolving. `imcp2-local` moves with them — it
releases on its own `imcp2-local-v*` tags and has never been cut, so there
is nothing to keep it behind, and its `--version` output would otherwise
report 0.2.0 from a 0.3.0 tree.


Claude-Session: https://claude.ai/code/session_01GqhkbpCwxs67F5E2EzyDwh

Co-authored-by: Claude <[email protected]>
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.

4 participants