|
1 | | -# Anthropic Claude Directory — reviewer notes |
| 1 | +# Claude Directory reviewer notes — LoopGrid Decision Evidence |
2 | 2 |
|
3 | | -**Plugin:** LoopGrid Decision Evidence (`loopgrid`) · **Contact:** hello@loopgrid.io · **Privacy:** https://loopgrid.io/privacy/ · **Terms:** https://loopgrid.io/terms/ |
| 3 | +**Plugin:** `loopgrid` · **Publisher:** LoopGrid · **Contact:** hello@loopgrid.io |
| 4 | +**Privacy:** https://loopgrid.io/privacy/ · **Terms:** https://loopgrid.io/terms/ |
4 | 5 |
|
5 | | -This repository does **not** claim to be approved or Anthropic Verified. The scanner must be run again after the new GitHub commit is pushed. |
| 6 | +This source is a Directory submission candidate, **not an Anthropic-approved or Verified plugin**. The latest captured portal scan evaluated `main @ 8b04b09` and reported four policy holds and four listing-field warnings. Run **Re-validate** again after this patch is pushed; do not assume that a scanner finding has cleared merely because its source was improved. |
6 | 7 |
|
7 | | -## Declared execution surfaces |
| 8 | +## Actual executable surfaces and user consent |
8 | 9 |
|
9 | | -- `.mcp.json`: one local `stdio` server, `uvx loopgrid-claude-launcher==0.1.0`. This **published** Claude-only launcher delegates to **unchanged** `loopgrid-mcp==0.1.0`. The direct pinned `uvx` shape is proposed to satisfy the scanner's prior `LAUNCHER_UNSUPPORTED` finding. |
10 | | -- `hooks/hooks.json`: three native Python lifecycle hooks for PreToolUse, PostToolUse and PostToolUseFailure. Hooks are **off** unless both an operator sets `LOOPGRID_CLAUDE_MODE=observe|enforce` and a project has `.loopgrid/claude-code.enabled`. Enabled hooks run as separate declared local commands; they are not part of the MCP subprocess. |
11 | | -- `scripts/doctor.py`: manual **offline** diagnostic; no network requests. |
12 | | -- `tests/test_hook.py`: developer-only mock/loopback tests, not executed on install; no executable PNG references. |
13 | | -- `.claude-plugin/icon.png`: asset file only; not an executable. |
| 10 | +- **MCP:** `.mcp.json` launches the published, pinned `uvx loopgrid-claude-launcher==0.1.0`, which depends on **unchanged** `loopgrid-mcp==0.1.0`. The server exposes six decision/evidence tools. It does not make a refund or execute an external business action. |
| 11 | +- **Hooks:** three declared Python commands handle `PreToolUse`, `PostToolUse`, and `PostToolUseFailure`. These commands execute **outside the MCP subprocess** and are visible in `hooks/hooks.json`. They exit without reading hook events, writing state, or contacting Core unless both `LOOPGRID_CLAUDE_MODE=observe|enforce` **and** the current project's `.loopgrid/claude-code.enabled` marker are set. |
| 12 | +- **Diagnostics/tests:** the offline diagnostic does not contact Core. Developer unit tests use mocked Core responses and loopback HTTP only. Security tests that check HTTPS policy use reserved non-operational example hostnames; they do not send requests to those hostnames. |
| 13 | +- **Icon:** the plugin's image is a static manifest asset. No command or interpreter executes or reads that image as program code. |
14 | 14 |
|
15 | | -## Network and credentials |
| 15 | +## Network boundaries and service key |
16 | 16 |
|
17 | | -MCP tools and enabled hooks contact the **operator-configured LoopGrid Core**; neither subsystem contacts a separate analytics provider. MCP tools can submit user-authorized decision/evidence payloads (including personal information if present) and Core may retain them beyond 30 days. Opted-in hooks send tool names, input/result SHA-256 commitments, hashed identifiers and numeric policy fields, not raw tool contents. Hooks keep local SQLite correlation records. Default bundle export excludes raw payloads. |
| 17 | +- Enabled hooks send tool names, input/result SHA-256 commitments, hashed identifiers and numeric policy fields to the **operator-configured LoopGrid Core**. The hooks do not send raw tool arguments or response bodies; a commitment of low-entropy text may still reveal information through guessing. |
| 18 | +- Invoked MCP tools can transmit additional user-approved decision/evidence records, possibly including personal information. The Core may retain those records longer than 30 days. Correlation state is also stored locally in SQLite. There is no separate analytics destination. |
| 19 | +- The only **intended** service-key source is Claude's `userConfig.service_key` with `sensitive: true` (`CLAUDE_PLUGIN_OPTION_SERVICE_KEY` for an explicitly configured session). The hook **does not read `LOOPGRID_SERVICE_KEY`** and extracts only named plugin/operational settings using `os.getenv`, never enumerating the full environment as its configuration. HTTPS is mandatory for remote Core; only loopback permits HTTP. Credential-bearing requests reject HTTP redirects. |
| 20 | +- The published launcher filters unrelated inherited application environment settings **after `uvx` starts**, but the package-manager process receives its parent's environment beforehand. This is an explicitly disclosed dependency-installation boundary, not proof that an API credential was exfiltrated. |
18 | 21 |
|
19 | | -Claude's sensitive `userConfig.service_key` option is the only intended source of the MCP and hook service key. The Claude-only launcher clears inherited arbitrary application environment values **after `uvx` starts**, but `uvx` itself receives the initial parent environment during dependency installation. That limitation cannot be eliminated by Python-level filtering alone; assess package-manager/network proxy controls and trusted registry access separately. |
| 22 | +## Captured scan findings and reviewer disposition |
20 | 23 |
|
21 | | -The repository's `uv.lock` is generated from published registry versions for review. **It is not an enforced runtime lock for direct `uvx`**. We do not claim otherwise. Confirm whether the Directory's Verified checker accepts this packaging shape. |
| 24 | +1. **`LAUNCHER_PACKAGE_REVIEW` (policy hold):** `uvx` pins the launcher distribution at `0.1.0`, but that invocation does not enforce the adjacent `uv.lock` for transitive runtime installation. `uv.lock` is a registry-resolved **audit snapshot**, **not** a launch-time lock. The upstream package is published separately. We request human review of the dependency chain; we do not claim the Verified-specific rule is automatically satisfied. |
| 25 | +2. **`UNREAD_ASSET_REFERENCED` (policy hold on the former reviewer notes):** the referenced image is static and never an executable. This document no longer spells its asset path. Please check the actual interpreter/command targets; none points to the image. |
| 26 | +3. **`MCP_FORWARDS_CREDENTIAL_ENV` (test finding):** the prior scanner matched a remote-address syntax in developer security tests with a credential-bearing mock environment. The HTTPS test now uses a reserved `.invalid` documentation hostname without making a network request; credential-bearing transport tests operate on loopback. These tests are not run at plugin install. |
| 27 | +4. **`MCP_FORWARDS_CREDENTIAL_ENV` (combined plugin finding):** named runtime settings are read locally, and an explicitly selected service key is sent only in the `X-LoopGrid-Key` header to the configured Core. The hooks do not enumerate all environment variables or send machine-wide service keys. Please review the declared hooks and Core transport together; these are legitimate product behaviors, not a claim of zero credential use. |
22 | 28 |
|
23 | | -## Prior scanner findings (commit f2cb2de, not a new scan) |
| 29 | +The Directory also reports the four fields `documentationUrl`, `privacyPolicyUrl`, `supportUrl`, and `termsOfServiceUrl` as unknown **to the Claude Code runtime** while confirming they are used for the Directory listing. These can remain. The static image and local-only MCP information notices are not policy holds by themselves. |
24 | 30 |
|
25 | | -1. Launcher package review / transitive dependencies: a pinned `uvx` launcher replaces unsupported `uv run`; generated `uv.lock` provides audit snapshot. **Outcome pending rescan**. |
26 | | -2. Executable test referencing PNG asset: removed test-only asset reference. **Outcome pending rescan**. |
27 | | -3. Credential + remote fixture combination: changed tests to isolated/local/documentation fixtures; legitimate plugin key access remains. **Outcome pending rescan**. |
28 | | -4. Combined environment access + network diagnostic: `doctor.py` now offline; enabled hooks still intentionally contact configured Core. **Outcome pending rescan and possible human review**. |
| 31 | +## Reviewer demonstration (synthetic data only) |
29 | 32 |
|
30 | | -## Three reviewer demo prompts |
| 33 | +1. Record a *fictional* refund proposal in LoopGrid, without executing a refund, and note the returned decision ID. |
| 34 | +2. Explain `off`, `observe`, and `enforce` modes and the explicit project activation marker; do not activate anything without permission. |
| 35 | +3. Verify a sandbox decision and export its evidence ZIP, distinguishing Core-side verification from the separate offline verifier. |
31 | 36 |
|
32 | | -1. “Record a **synthetic** $15 refund proposal in LoopGrid, **without executing a refund**, and report the returned decision ID.” |
33 | | -2. “Describe the LoopGrid guard modes and project-local opt-in marker. Do not activate a hook or modify permissions.” |
34 | | -3. “Verify a test decision, then export its evidence ZIP. Distinguish service-side verification from independent offline verification.” |
| 37 | +Reviewer test access to a temporary Core sandbox can be arranged privately. Never commit service keys, real customer records or personally identifiable test data. |
35 | 38 |
|
36 | | -Reviewer test access to a temporary Core sandbox may need to be coordinated privately. Do not commit service keys or real customer records. |
| 39 | +## Compliance attestation — clarification needed before submission |
37 | 40 |
|
38 | | -## Compliance attestation caution |
39 | | - |
40 | | -The Directory UI asks whether the plugin exfiltrates credentials or executes code outside declared MCP servers. This plugin has three **declared Python hook commands outside the MCP process**. Obtain confirmation from Anthropic on the intended interpretation before acknowledging a statement that might be literally inaccurate. Any credential exfiltration must be ruled out through actual review, not by checkbox selection. |
| 41 | +The Directory form states that the plugin does not exfiltrate credentials **or execute code outside declared MCP servers**. The plugin has three **separately declared Python lifecycle-hook commands**, and their execution is not inside the MCP subprocess. The form currently shows four acknowledgements checked. Seek Anthropic's interpretation or adjust the attestation before submitting if this makes the statement inaccurate; transparency is more important than removing a warning. |
0 commit comments