Skip to content

[3096 by GPT-6.1 Sol] Publish encrypted remote extension-management contract for Connect - #3097

Merged
integry merged 8 commits into
mainfrom
3096/gpt-6.1-sol-publish-encrypted-remote--20261014-0353-xjb
Oct 14, 2026
Merged

integry merged 8 commits into
mainfrom
3096/gpt-6.1-sol-publish-encrypted-remote--20261014-0353-xjb

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3096

Branch: 3096/gpt-6.1-sol-publish-encrypted-remote--20261014-0353-xjb
Commits: ✅ Changes committed (d3e8c80)


AI Processing Completed

Execution Details:

Summary:
Implemented the pinned private extension contract, durable actor/generation checks, authenticated one-use encrypted recipients, and exact-Git skill import. Added fixtures, checksums, capability metadata, and operator docs.

Validation passed: 113 regression tests, the final 9-test contract suite, and TypeScript checks.

Fleet/Routing still require reciprocal validation and native key-pin provisioning.

Detailed Logs:

  • Conversation: 114 messages
  • Session: 01a1388d-1dac-7921-b29d-6d984df9a411

Log files stored at:

  • conversation: /tmp/claude-logs/issue-3096-2026-10-14T04-17-58-988Z-conversation.json
  • output: /tmp/claude-logs/issue-3096-2026-10-14T04-17-58-988Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #3096.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…agement cont

Implemented by ProPR AI using gpt-6.1-sol model.

Implementation completed successfully.
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR adds a separately versioned, pinned contract, propr.fleet-extensions.v1, on the existing private Fleet Unix listener. The contract includes:

  • HMAC-authenticated, actor- and generation-bound assertions.
  • Durable nonce and operation claims.
  • One-use, in-memory P-256 recipients signed with an Ed25519 key derived from the native custody root.
  • A browser WebCrypto producer that refuses unauthenticated or substituted recipients.
  • Exact-commit GitHub skill import using the native installation client.

Fleet data v1 and v2 are untouched. The customer and tunnel listener explicitly refuses the new path.

The design is careful and well tested. However, one internal limit in the published immutable contract contradicts itself: it advertises up to 8 sealed credentials per mutation, but the 32 KiB request cap allows only about 5. Because the README says a deployed pin cannot be amended, this should be fixed before the pin is published.

The PR needs a minor change before merge. CI is still pending.

✅ Synchronous recipient claiming and full re-fencing — decrypt in packages/core/src/fleet/extensions.ts removes every referenced recipient before its first await. It then re-authorizes both the acquisition and mutation assertions and compares the authority digest. The concurrent-claim and restart tests confirm that exactly one consumer succeeds.

✅ Revocation enforced inside the mutation transaction — save, delete and importSkill in extensionProfileStore.ts call the guard with trx before and after the write. Because FleetActorAuthorization now carries that database handle, the durable-admin lookup sees the transaction. The boundary-enumeration test ("checked at every create boundary") exercises every guard point.

✅ Exact Git provenance verification — remoteGitSkill.ts does three things:

  • Checks that the returned commit SHA equals the requested one.
  • Rejects truncated trees, non-blob entries and symlink or submodule modes.
  • Recomputes each blob's git SHA-1 and byte length before passing files to the native validator.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Pinned contract advertises 8 sealed fields that the request cap cannot carry

  • Required behavior: The immutable pinned contract's schema, limits and operator documentation must be internally consistent. The issue requires an immutable, versioned contract with documentation that consumers can implement; the README states "Contract changes require a new version… do not amend a deployed immutable pin."

  • Evidence: packages/shared/src/fleetExtensions.ts:7 and packages/shared/src/fleetExtensions.ts:16. Also affected: packages/api/fleetDataListener.ts (the 32768 body cap), packages/core/src/fleet/extensions.ts invoke (the FLEET_EXTENSION_LIMITS.requestBytes check), and docs/contracts/fleet-extensions-v1/README.md ("At most 64 recipients and 8 encrypted fields per mutation are supported").

    Static trace:

    1. A consumer follows the schema. sealed is .max(8), ciphertext is exactly 4112 bytes, which is 5483 base64url characters, and publicKey is 87 characters.
    2. Each canonical sealed entry, including key names and the UUID, is about 5.68 KB. Eight entries come to about 45 KB, before adding the profile input (up to 8 servers) and the roughly 0.8 KB assertion and MAC.
    3. The listener aborts once the body exceeds 32768 bytes. invoke independently refuses when Buffer.byteLength(raw) > requestBytes.
    4. The result is a generic fleet_extensions_unavailable for any create or update that sets more than about 5 bearer tokens. That outcome is within what the schema and README promise.

    Every protection is fail-closed, so nothing is corrupted. The defect is that the published, pinned contract describes behaviour the implementation cannot honour. Consumers in Routing and Fleet cannot detect this from the schema, and once pinned it can only be corrected with a new version. No existing test seals more than one field.

    Proposed regression: issue 8 recipients for an 8-server bearer intent and submit all 8 sealed values in a single profile.create.

  • Minimum fix: Make the limits consistent before generating the pin. Either:

    • raise requestBytes and the listener's extension body cap (for example to 64 KiB), or
    • lower sealed.max(...) to a count that provably fits under 32 KiB with a maximal input, and update the README to match.

    Then regenerate schema.json, the fixtures and SHA256SUMS, and add a test that submits the maximum allowed sealed count.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Status becomes unavailable after 60 seconds

operation.status calls authorize(record.assertion), which goes through validate. That check fails once Date.now() >= expiresAt, so the status of any operation becomes unavailable within 60 seconds of issuance. This is documented ("Expired outcomes are unavailable"), but it makes the lost-reply recovery path very narrow. A follow-up could check only that the actor and audience are still authorized, rather than also requiring the original assertion to be unexpired.

S2: 🟢 Verify shared namespace accounting across restarts

reserveExtensionEntries adds to FleetDataPlane.count, but this diff does not show whether FleetDataPlane.initialize() re-counts extension-* files after a restart. If it does not, the documented 16384-entry shared cap is only enforced per process lifetime. Slots are also reserved before files.create runs, so a refused duplicate nonce consumes reservation budget until restart. Both points are worth confirming in tests.

S3: 🟢 Public refusal error code for extension path

refusePublicFleetData returns fleet_data_unavailable for /extensions/v1/invoke. The contract documents fleet_extensions_unavailable as its only error. Returning the documented code on the public refusal would keep the error vocabulary consistent.

S4: 🟢 Zero recipient key on issuance failure paths

In issue, if the recipient-capacity check or recipientSigningKey() throws after key.generateKeys(), the ECDH private key is never zeroed. The impact is low because the key was never shared, but zeroing it would match the custody claims in the README.

S5: 🟢 Native verification-key provisioning

recipientVerificationKey() has no caller. As the PR summary notes, browsers cannot use the producer until an authenticated native channel delivers this SPKI pin. Tracking that work explicitly alongside the Fleet and Routing reciprocal suites would make the dependency visible.

Score

The cryptographic and authorization design is strong and thoroughly tested. However, the pinned contract's sealed-field count contradicts its own request cap, and that must be reconciled before the immutable pin ships. CI is still pending.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 30s
  • Tokens: 126,543 (117,916 in / 8,627 out)
  • Cost: $0.76

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1 S2 S3 S4 S5

🤖 Review by ProPR

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/fix F1 S2 S3 S4

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit dd32519

Addressed 1 AI review comment (IDs: 6160821958)

Addressed finding F1 · suggestions S2, S3, S4

Summary of Changes

Applied F1, S2, S3, and S4:

  • Raised extension requests to 64 KiB and regenerated the contract pin, fixtures, and checksums.
  • Verified restart accounting and fixed duplicate reservation leakage.
  • Corrected the public refusal error code.
  • Added key cleanup across issuance and completion failures.

Validation: 101 tests passed; Core/API typechecks passed.

Separate discovery: pre-existing Fleet data admission also leaks duplicate reservations. Left unchanged as outside scope.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 6m 8s
  • Tokens: 842,965 (835,380 in / 7,585 out)
  • Cost: $0.28
  • Subscription usage: Weekly +1%

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6160857590✓

Applied F1, S2, S3, and S4:

- Raised extension requests to 64 KiB and regenerated the contract pin, fixtures, and checksums.
- Verified restart accounting and fixed duplicate reservation leakage.
- Corrected the public refusal error code.
- Added key cleanup across issuance and completion failures.

Validation: 101 tests passed; Core/API typechecks passed.

Separate discovery: pre-existing Fleet data admission also leaks duplicate reservations. Left unchanged as outside scope.

PR: #3097
Comment by: @integry (ID: 6160857590)
Model: GPT-6.1 Sol
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

The 64 KiB adjustment does not fully resolve F1 yet.

The new regression uses eight short URLs and one short tool name per server. Under the published schema, a create request with eight bearer servers, each using the allowed 2,048-character URL and 64 allowed 128-character tool names, plus the allowed maximum agent/repository scopes and eight sealed fields, is approximately 151 KiB as canonical JSON. repositoryScope entries in extensionProfileInputSchema also currently have no length bound, so the remote input is not fully schema-bounded independently of the transport cap.

There is a related mutation-response problem: profile.create / profile.update can persist a schema-valid public profile whose response exceeds the 32 KiB response cap, after which invoke returns unavailable and leaves the operation fenced even though the mutation committed.

Please make the pinned contract internally consistent before merge:

  • either tighten the remote profile-input schema with explicit per-field/aggregate bounds and choose request/response limits that provably fit the maximum accepted create/update request and public response, or raise the limits to fit the existing maximums;
  • keep the private listener and shared contract limits sourced from the same constants;
  • preflight any mutation response-size constraint before committing if an accepted input could still exceed it;
  • replace the short eight-field regression with a worst-case schema-valid eight-field create and update through the Unix listener, asserting the request is within the advertised cap and the completed response is within the response cap;
  • regenerate the schema, fixtures, capability pin, and checksums.

For reproducibility, constructing the existing explicit maxima (using 200-character repository names despite the current missing bound) produced 104,471 bytes for input, 149,958 bytes for the request, and 150,953 bytes for the envelope.

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 86d3815

Summary of Changes

Implemented the follow-up:

  • Shared request/response caps are now 256 KiB, with bounded remote repository scopes and a documented size proof.
  • Oversized mutation responses roll back before commit.
  • Worst-case eight-field create/update tests pass through the Unix listener.
  • Regenerated schema, fixtures, capability pin, and checksums.

Validation: 49 regression tests, pinned-artifact checks, and root/Core TypeScript checks passed. No visual preview needed.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 5m 30s
  • Tokens: 1,043,540 (1,037,668 in / 5,872 out)
  • Cost: $0.28

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6160955848✓

Implemented the follow-up:

- Shared request/response caps are now 256 KiB, with bounded remote repository scopes and a documented size proof.
- Oversized mutation responses roll back before commit.
- Worst-case eight-field create/update tests pass through the Unix listener.
- Regenerated schema, fixtures, capability pin, and checksums.

Validation: 49 regression tests, pinned-artifact checks, and root/Core TypeScript checks passed. No visual preview needed.

PR: #3097
Comment by: @integry (ID: 6160955848)
Model: GPT-6.1 Sol
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

⚠️ Review output was invalid and could not be displayed safely.


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 27s
  • Tokens: 130,769 (122,842 in / 7,927 out)
  • Cost: $0.77

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

🤖 Review by ProPR

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR adds a separately pinned propr.fleet-extensions.v1 contract on the existing private Fleet Unix listener, at /extensions/v1/invoke. It does not change fleet-data-v1 or fleet-data-v2. The new path supports:

  • remote profile list, read, history, create, update, disable and delete;
  • catalog and skill listing, plus exact-commit Git skill import;
  • profile and selection validation;
  • write-only bearer credentials sealed to one-use in-memory recipients.

Every admission, dispatch step, transaction boundary and completion re-checks durable admin and instance.manage_settings authority against the live hosted, storage, runtime and placement generations. The contract ships with a schema, canonical fixtures, capabilities and checksums.

The fix cycle resolves the earlier F1 concerns:

  • Request cap: raised to 256 KiB.
  • Remote repository scopes: now bounded independently of the transport cap (64 entries of at most 200 characters).
  • Mutation responses: create, update and disable now check the exact completed response size inside the save transaction, so an oversized public projection rolls back instead of committing behind a fenced reply.

I traced the worst-case size budget in the README against the schema. It holds for JSON-Schema-conforming inputs (about 245 KiB, under 262,144 bytes), and the new listener test exercises an eight-server, maximum-field create and update end to end.

I found no remaining verified blockers. Merge readiness depends on the pending test shards, CodeQL and "Validate Changes" completing green.

✅ Recipient custody and binding — decrypt() synchronously claims and deletes every referenced recipient before its first await. It then requires the same audience, mutation operation, intent digest, extension instance and authority digest as the acquisition, and zeroes private buffers on every path. The browser producer refuses to encrypt unless the Ed25519 signature verifies against an independently supplied pin and the binding canonically equals the caller's expected binding.

✅ Fail-closed mutation fencing — The nonce and operation tombstones are created with O_EXCL before dispatch. save, delete and importSkill call the guard inside their transactions and pass the transaction handle into authorization, which avoids a SQLite self-deadlock. The tests revoke the actor at every observed boundary and simulate generation and placement ABA changes, and each case verifies that nothing commits.

✅ Bounded exact-Git import — remoteGitSkill.ts resolves credentials natively and pins the commit SHA. It rejects truncated trees, non-blob entries and non-regular modes, bounds file count and bytes, and re-verifies each blob's git SHA-1 before the native validateSkillFiles runs.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S6: 🟢 Return the exact preflighted public projection

In extensionProfileStore.ts, save() preflights publicExtensionProfile(snapshot) but returns the raw snapshot, which dispatch forwards as profile. If a carried-over historical catalog secret status (old?.secrets[server.name]) still contains fields, the remote reply would include private field names. It would also differ in size from what was preflighted. I could not see how old is loaded, so I cannot confirm this is reachable. Applying publicExtensionProfile to the value returned by the remote create, update and disable paths would make the projection match the schema's public-ExtensionProfileRevision exactly.

S7: 🟢 Align Zod transforms with the pinned JSON Schema

The native name field uses z.string().trim().min(1).max(100), so the length bounds apply after trimming. As a result:

  • Core accepts raw names longer than the published maxLength: 100.
  • Core rejects whitespace-only names that the JSON Schema accepts.
  • requestDigest is compared against digest(r) of the transformed request, not the received bytes. A relay could add surrounding whitespace without breaking the digest, contradicting the README's claim that the digest covers the entire request.

The reserved-name refinement and the duplicate checks in superRefine are also absent from the published schema. Consumers only ever see refusals, so this is not a correctness failure, but a stricter remote input schema (no trim, explicit raw bounds) would keep the reciprocal suites honest.

S8: 🟢 Bounded or paginated list and history projections

profile.list and profile.history return full public revisions, including embedded skill-bundle descriptors with up to 64×256-character requirements per bundle. A few large profiles, or two maximum-size revisions, push these over responseBytes. After that the remote plane can no longer discover selections for natively created profiles. The README documents this as fail-closed, but a summary projection or cursor would keep remote administration usable as data grows.

S9: 🟢 Fit profile.validate within the assertion lifetime

profile.validate probes up to eight servers sequentially. Each probe can take up to 10 seconds for DNS plus a 10-second request timeout, while the guard enforces the 60-second assertion expiry. A profile with three or four slow or unreachable endpoints will therefore always return unavailable rather than per-server results. Probing in parallel under a total budget, or capping per-server time against the remaining assertion time, would avoid this.

S10: 🟢 Operator path for the recipient verification-key pin

recipientVerificationKey() is only an in-process accessor. Nothing in this PR lets an operator obtain and provision the pin, and without the pin the browser cannot complete the write-only credential flow. This matches downstreamReady: false and the documented gates, but a follow-up should add an authenticated native or operator export path before Connect integration.

S11: 🟢 Simplify the published action enum

Folding over .or() in fleetExtensionAssertionSchema.action produces a 14-level nested anyOf that starts from {"not":{}} in schema.json. Using z.enum([...]) would publish a flat, readable enum. This would change the pin, so it is best done now, before any deployment pins the current schema.

Score

The latest cycle resolves the prior size-bound and committed-but-fenced mutation concerns, and I found no remaining PR-introduced blockers; the suggestions are hardening and usability follow-ups. Readiness is conditional on the pending CI shards, CodeQL and "Validate Changes" completing green.

Score: 8/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 2m 5s
  • Tokens: 135,252 (123,500 in / 11,752 out)
  • Cost: $0.85

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S6 S7 S8 S9 S10 S11

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Validate Changes

Please investigate and fix this CI failure.

Failure evidence

.github:8
Process completed with exit code 1.

.github:401
Process completed with exit code 1.

.github:493 — 🎭 Playwright Run Summary
435 passed (20.4m)

@github-actions

Copy link
Copy Markdown

Checks Failed

Validation failed during setup, tests, CLI packaging, linting, or build checks.

View Logs
Build check diagnostics for run 38512505370, attempt 1
Checkout outcome: success

--- GitHub Actions workflow lint ---
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667: Pulling from rhysd/actionlint
589002ba0eae: Pulling fs layer
c09af8888d6a: Pulling fs layer
4ccd7d76ca98: Pulling fs layer
b6b4b7b0e257: Pulling fs layer
b6b4b7b0e257: Waiting
c09af8888d6a: Verifying Checksum
c09af8888d6a: Download complete
589002ba0eae: Verifying Checksum
589002ba0eae: Download complete
4ccd7d76ca98: Verifying Checksum
4ccd7d76ca98: Download complete
b6b4b7b0e257: Verifying Checksum
b6b4b7b0e257: Download complete
589002ba0eae: Pull complete
c09af8888d6a: Pull complete
4ccd7d76ca98: Pull complete
b6b4b7b0e257: Pull complete
Digest: sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
Status: Downloaded newer image for rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667
docker.io/rhysd/actionlint@sha256:b1934ee5f1c509618f2508e6eb47ee0d3520686341fec936f3b79331f9315667

--- Release shell script lint ---

--- Toolchain ---
v22.23.3
10.9.9

--- Dependency installation ---
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated [email protected]: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

added 1137 packages, and audited 1146 packages in 21s

323 packages are looking for funding
  run `npm fund` for details

8 high severity vulnerabilities

To address all issues possible (including breaking changes), run:
  npm audit fix --force

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

--- CLI release package ---
Verifying propr-cli release package...

> [email protected] cli:pack
> node packages/cli/scripts/build-publish.mjs


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc


> @propr/[email protected] build
> tsc && node scripts/copy-assets.mjs

copy-assets: copied 9 file(s) into the CLI package.

Staged [email protected] at /home/runner/work/propr/propr/dist-publish/propr-cli
npm notice
npm notice 📦  [email protected]
npm notice Tarball Contents
npm notice 26.7kB README.md
npm notice 36.3kB dist/agentSkill.js
npm notice 754B dist/api/agentRuntime.js
npm notice 7.1kB dist/api/agents.js
npm notice 2.6kB dist/api/agentTank.js
npm notice 4.0kB dist/api/automations.js
npm notice 11.7kB dist/api/client.js
npm notice 5.0kB dist/api/errors.js
npm notice 16.6kB dist/api/goals.js
npm notice 6.0kB dist/api/implement.js
npm notice 2.4kB dist/api/index.js
npm notice 1.9kB dist/api/logs.js
npm notice 6.2kB dist/api/plans.js
npm notice 4.2kB dist/api/relay.js
npm notice 12.3kB dist/api/repos.js
npm notice 14.2kB dist/api/settings.js
npm notice 775B dist/api/stats.js
npm notice 1.6kB dist/api/syntheticPools.js
npm notice 1.8kB dist/api/system.js
npm notice 5.9kB dist/api/tasks.js
npm notice 2.9kB dist/api/todos.js
npm notice 86B dist/api/types.js
npm notice 313B dist/api/visualPreviewAuth.js
npm notice 29.5kB dist/assets/env.example.txt
npm notice 5.8kB dist/auth/githubLogin.js
npm notice 19.7kB dist/commands/agentCommands.js
npm notice 4.2kB dist/commands/agentPoolCommands.js
npm notice 4.3kB dist/commands/agentSkillCommands.js
npm notice 29.7kB dist/commands/agentValidation.js
npm notice 27.2kB dist/commands/automationCommands.js
npm notice 70.8kB dist/commands/checkCommands.js
npm notice 8.9kB dist/commands/configCommands.js
npm notice 14.6kB dist/commands/connectCommand.js
npm notice 5.5kB dist/commands/githubAppApi.js
npm notice 27.7kB dist/commands/githubAppCommands.js
npm notice 57.9kB dist/commands/goalCommands.js
npm notice 2.4kB dist/commands/imageCommands.js
npm notice 8.0kB dist/commands/implementCommands.js
npm notice 1.8kB dist/commands/index.js
npm notice 7.3kB dist/commands/initCommands.js
npm notice 14.1kB dist/commands/initStack.js
npm notice 6.1kB dist/commands/logCommands.js
npm notice 24.9kB dist/commands/planCommands.js
npm notice 8.4kB dist/commands/relayCommands.js
npm notice 38.6kB dist/commands/repoCommands.js
npm notice 2.7kB dist/commands/repoValidate.js
npm notice 7.5kB dist/commands/runtimeCommands.js
npm notice 17.9kB dist/commands/settingCommands.js
npm notice 4.6kB dist/commands/setup/agentHostActions.js
npm notice 123B dist/commands/setup/agents.js
npm notice 4.5kB dist/commands/setup/engine.js
npm notice 51B dist/commands/setup/github.js
npm notice 28.8kB dist/commands/setup/hostActions.js
npm notice 3.2kB dist/commands/setup/imagePlatform.js
npm notice 27.3kB dist/commands/setup/sequential.js
npm notice 51B dist/commands/setup/state.js
npm notice 51B dist/commands/setup/types.js
npm notice 10.7kB dist/commands/setupCommand.js
npm notice 4.4kB dist/commands/stackCommands.js
npm notice 1.4kB dist/commands/startCommand.js
npm notice 3.7kB dist/commands/statsCommands.js
npm notice 13.5kB dist/commands/systemCommands.js
npm notice 3.5kB dist/commands/tankCommands.js
npm notice 46.3kB dist/commands/taskCommands.js
npm notice 29.7kB dist/commands/todoCommands.js
npm notice 31.0kB dist/commands/tunnelCommand.js
npm notice 2.7kB dist/commands/uiDocsCommands.js
npm notice 8.3kB dist/completion.js
npm notice 20.3kB dist/config/ConfigManager.js
npm notice 276B dist/config/index.js
npm notice 989B dist/config/rootKey.js
npm notice 345B dist/config/types.js
npm notice 46.0kB dist/connectIdentity.js
npm notice 25.0kB dist/connectRootAuthority.js
npm notice 32.5kB dist/connectWindowsAuthority.js
npm notice 2.2kB dist/desktopDiscovery.js
npm notice 13.2kB dist/desktopLocalSetup.js
npm notice 17.1kB dist/index.js
npm notice 4.5kB dist/native/darwin-authority-broker.c
npm notice 8.9kB dist/native/directory-operations.c
npm notice 50.1kB dist/native/prebuilds/darwin-arm64/connect-authority-broker
npm notice 54.2kB dist/native/prebuilds/darwin-arm64/directory-operations.node
npm notice 17.1kB dist/native/prebuilds/darwin-x64/connect-authority-broker
npm notice 24.3kB dist/native/prebuilds/darwin-x64/directory-operations.node
npm notice 28.9kB dist/native/prebuilds/linux-arm64/directory-operations.node
npm notice 17.4kB dist/native/prebuilds/linux-x64/directory-operations.node
npm notice 1.2kB dist/native/README.md
npm notice 3.1kB dist/orchestrator/format.js
npm notice 13.4kB dist/orchestrator/index.js
npm notice 302B dist/orchestrator/manifest.json
npm notice 121.0kB dist/orchestrator/orchestrator.mjs
npm notice 408B dist/orchestrator/types.js
npm notice 237B dist/skill/propr/agents/openai.yaml
npm notice 8.7kB dist/skill/propr/SKILL.md
npm notice 4.5kB dist/tui/AgentTableApp.js
npm notice 4.5kB dist/tui/app.js
npm notice 11.6kB dist/tui/CheckApp.js
npm notice 5.1kB dist/tui/render.js
npm notice 32.5kB dist/tui/SetupApp.js
npm notice 18.4kB dist/tui/SetupApp.test.js
npm notice 8.2kB dist/tui/StartApp.js
npm notice 3.6kB dist/utils/apiErrorPresentation.js
npm notice 12.0kB dist/utils/directoryDescriptor.js
npm notice 739B dist/utils/dockerPort.js
npm notice 5.0kB dist/utils/envFile.js
npm notice 520B dist/utils/index.js
npm notice 5.7kB dist/utils/io.js
npm notice 717B dist/utils/localSetupPlatform.js
npm notice 1.5kB dist/utils/nativeArtifact.js
npm notice 544B dist/utils/parseState.js
npm notice 417B dist/utils/positiveInteger.js
npm notice 4.5kB dist/utils/privateFilesystem.js
npm notice 4.2kB dist/utils/resolveProject.js
npm notice 7.2kB dist/vendor/local-setup/agents.js
npm notice 63.2kB dist/vendor/local-setup/engine.js
npm notice 5.0kB dist/vendor/local-setup/envFile.js
npm notice 11.1kB dist/vendor/local-setup/github.js
npm notice 188B dist/vendor/local-setup/index.js
npm notice 27.5kB dist/vendor/local-setup/publicInstanceIdentity.js
npm notice 14.6kB dist/vendor/local-setup/state.js
npm notice 2.8kB dist/vendor/local-setup/types.js
npm notice 1.0kB dist/vendor/shared/accountStatusTimestamp.js
npm notice 7.6kB dist/vendor/shared/activityEvents.js
npm notice 2.8kB dist/vendor/shared/agentConfigRedaction.js
npm notice 4.4kB dist/vendor/shared/agentDefinitions.js
npm notice 3.4kB dist/vendor/shared/agentLogin.js
npm notice 3.1kB dist/vendor/shared/agentTank.js
npm notice 2.8kB dist/vendor/shared/analyticsTimeframe.js
npm notice 2.0kB dist/vendor/shared/antigravityCompatibility.js
npm notice 5.1kB dist/vendor/shared/apiOrigin.js
npm notice 3.5kB dist/vendor/shared/assignment.js
npm notice 9.2kB dist/vendor/shared/automationDefinitions.js
npm notice 8.5kB dist/vendor/shared/connectDiscovery.js
npm notice 9.6kB dist/vendor/shared/cronSchedule.js
npm notice 254B dist/vendor/shared/demoMode.js
npm notice 4.3kB dist/vendor/shared/desktopPairing.js
npm notice 481B dist/vendor/shared/desktopTokenRevocation.js
npm notice 8.9kB dist/vendor/shared/events.js
npm notice 3.1kB dist/vendor/shared/extensionProfiles.js
npm notice 2.7kB dist/vendor/shared/fleetData.js
npm notice 9.2kB dist/vendor/shared/fleetExtensions.js
npm notice 2.5kB dist/vendor/shared/githubAppManifest.js
npm notice 1.6kB dist/vendor/shared/githubAuthMode.js
npm notice 2.0kB dist/vendor/shared/githubEventIntakeMode.js
npm notice 11.6kB dist/vendor/shared/goalBlockers.js
npm notice 6.0kB dist/vendor/shared/goalCheckpoints.js
npm notice 4.0kB dist/vendor/shared/goalCreation.js
npm notice 4.9kB dist/vendor/shared/goalWait.js
npm notice 12.8kB dist/vendor/shared/index.js
npm notice 214B dist/vendor/shared/instanceAuthorization.js
npm notice 54B dist/vendor/shared/instanceCatalog.js
npm notice 584B dist/vendor/shared/instanceStorage.js
npm notice 4.0kB dist/vendor/shared/intakeModePrerequisites.js
npm notice 2.9kB dist/vendor/shared/labelUtils.js
npm notice 16.6kB dist/vendor/shared/modelDefinitions.js
npm notice 3.5kB dist/vendor/shared/notificationLinks.js
npm notice 51.3kB dist/vendor/shared/notifications.js
npm notice 7.5kB dist/vendor/shared/previewStorage/v1.js
npm notice 866B dist/vendor/shared/projectSlug.js
npm notice 3.8kB dist/vendor/shared/proprCompatibility.js
npm notice 13.0kB dist/vendor/shared/proprServiceUrls.js
npm notice 16.6kB dist/vendor/shared/prTemplate.js
npm notice 2.2kB dist/vendor/shared/publishedVisualPreviews.js
npm notice 2.6kB dist/vendor/shared/reasoningLevels.js
npm notice 1.2kB dist/vendor/shared/repositoryIcon.js
npm notice 1.4kB dist/vendor/shared/repositoryIconUrl.js
npm notice 3.9kB dist/vendor/shared/repositoryPresentation.js
npm notice 9.5kB dist/vendor/shared/reviewContextBudget.js
npm notice 5.8kB dist/vendor/shared/reviewFeedbackIds.js
npm notice 1.7kB dist/vendor/shared/reviewPrompt.js
npm notice 907B dist/vendor/shared/runCostCap.js
npm notice 861B dist/vendor/shared/sessionSecret.js
npm notice 603B dist/vendor/shared/statusKeys.js
npm notice 7.5kB dist/vendor/shared/syntheticAgents.js
npm notice 2.2kB dist/vendor/shared/taskIdentifiers.js
npm notice 1.8kB dist/vendor/shared/taskLifecycle.js
npm notice 733B dist/vendor/shared/taskReplacement.js
npm notice 957B dist/vendor/shared/text.js
npm notice 9.8kB dist/vendor/shared/usageTips.catalog.json
npm notice 5.0kB dist/vendor/shared/usageTips.js
npm notice 335B dist/vendor/shared/usageTypes.js
npm notice 1.1kB dist/vendor/shared/userWhitelist.js
npm notice 758B dist/vendor/shared/validateRelayUrl.js
npm notice 2.2kB dist/vendor/shared/validateRoutingUrl.js
npm notice 7.1kB dist/vendor/shared/visualPreviewCapacity.js
npm notice 9.3kB dist/vendor/shared/voice.js
npm notice 222B dist/vendor/shared/workEvidence.js
npm notice 675B package.json
npm notice Tarball Details
npm notice name: propr-cli
npm notice version: 0.9.0
npm notice filename: propr-cli-0.9.0.tgz
npm notice package size: 471.6 kB
npm notice unpacked size: 1.9 MB
npm notice shasum: 25673984c4b785c28a3ed8651dc83c50104547f6
npm notice integrity: sha512-3Az5qfEm2i/tY[...]A30XjVuaQ4Ilw==
npm notice total files: 188
npm notice
propr-cli-0.9.0.tgz

Dry run only. Re-run with --publish to publish to npm.
✅ propr-cli release package verified
Starting changed-area validation process...
Reusing this job's @propr/shared build from CLI packaging.
Reusing this job's @propr/local-setup build from CLI packaging.

--- Core Service: Lint & Build ---
✅ Core Lint passed
✅ Core Source Build passed

--- UI: Typecheck, Lint & Build ---
✅ Client Package validation passed
✅ UI Typecheck passed
✅ UI Lint passed
✅ UI Build passed

--- Docs: Typecheck & Build ---
✅ Docs Typecheck passed
✅ Docs Build passed

--- Core Package: Build & Lint ---
✅ Core Package Build passed
❌ Core Package Lint FAILED

/home/runner/work/propr/propr/packages/core/src/extensions/extensionProfileStore.ts
  52:3  warning  Async method 'save' has too many parameters (6). Maximum allowed is 4  max-params

/home/runner/work/propr/propr/packages/core/src/fleet/extensions.ts
  105:3  warning  Async method 'dispatch' has a complexity of 29. Maximum allowed is 20  complexity

✖ 2 problems (0 errors, 2 warnings)

ESLint found too many warnings (maximum: 0).

--- CLI: Lint ---
✅ CLI Lint passed

--- API: Build & Lint ---
✅ API Build passed
✅ API Lint passed

--- API Reference: OpenAPI Spec & Client Contract ---
✅ OpenAPI spec is current and valid
✅ @propr/client matches the OpenAPI spec

--- Stage outcomes ---
Workflow lint: success
Release shell lint: success
Pre-setup gate: skipped
Node setup: success
Toolchain: success
Dependency install: success
Release metadata: success
CLI packaging: success
Change detection: success
Changed-area checks: failure

View Workflow

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ab0965c

Processed 2 comments:

  • Comment 1 by @propr-dev[bot] (ID: 6161316812✓)
  • Comment 2 by @github-actions[bot] (ID: 6161317239✓)

Summary of Changes

Fixed both reported lint warnings by grouping save options and extracting mutation and validation helpers from dispatch.

Validation: affected files pass lint with zero warnings, Core builds, and all 49 relevant tests pass. One expiry-sensitive test failed on an intermediate run and passed on rerun.

No visual changes; no preview required.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @propr-dev[bot], @github-actions[bot]
  • Time: 4m 7s
  • Tokens: 717,648 (714,149 in / 3,499 out)
  • Cost: $0.19

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment IDs: 6161316812✓, 6161317239✓

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Exact-head CI failed only because the Core lint stage uses --max-warnings=0 and this PR introduces two warnings:

  • packages/core/src/extensions/extensionProfileStore.ts:52:3 — ExtensionProfileStore.save has 6 parameters (max-params limit 4).
  • packages/core/src/fleet/extensions.ts:105:3 — FleetExtensionPlane.dispatch complexity 29 (limit 20).

Please eliminate both warnings without changing the published propr.fleet-extensions.v1 contract, capability pin, request/response behavior, authorization/fencing, or tested semantics. Prefer a small, maintainable refactor where it remains clear; if the signatures/switch are intentionally cohesive at this boundary, use the narrowest documented method-level ESLint suppression rather than a broad file/rule disable. Run the affected Core lint, focused fleet-extension/profile tests, and typechecks, and keep the worktree clean.

…and extracting mutation and validation helpers from `dispatch`.

Fixed both reported lint warnings by grouping save options and extracting mutation and validation helpers from `dispatch`.

Validation: affected files pass lint with zero warnings, Core builds, and all 49 relevant tests pass. One expiry-sensitive test failed on an intermediate run and passed on rerun.

No visual changes; no preview required.

PR: #3097
Comment by: @propr-dev[bot] (ID: 6161316812)
Comment by: @github-actions[bot] (ID: 6161317239)
Model: GPT-6.1 Sol
@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

ℹ️ Analyzed the follow-up request by @integry

Analysis Summary

Both warnings are already resolved on this branch by grouped save options and extracted dispatch helpers. No further edits were needed.

Validation passed:

  • Affected Core lint with --max-warnings 0.
  • All 99 tests across five relevant suites.
  • Shared, Core, and root typechecks.
  • Shared and Core builds.

Contract/pin, behavior, and authorization/fencing remain unchanged. Worktree is clean; no visual preview needed.

No code changes were necessary based on the current state of the branch.


🤖 Analysis Details

  • Model: GPT-6.1 Sol (medium)
  • Time: 3m 51s
  • Tokens: 785,584 (783,743 in / 1,841 out)
  • Cost: $0.20

View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6161331110✓

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR adds a separately pinned propr.fleet-extensions.v1 contract on the existing private Fleet Unix listener. It includes schema, fixtures, checksums, capability metadata and README. It also adds actor- and generation-fenced remote profile, skill and catalog operations, one-use authenticated P-256 recipients for write-only bearer tokens, and an exact-commit GitHub skill import. Fleet data v1/v2 bytes and the public-listener refusal are preserved. The newest revision adds an options-object save signature (4 params) and extracts saveProfile and validateProfile from dispatch. By my static count, that resolves the two lint warnings the author raised.

One native-API regression comes from the new save options union. Otherwise the remote path is carefully fenced and well tested. The PR needs a minor change before merge.

✅ Recipient claim-before-await and authenticated binding — decrypt removes every referenced recipient from the map synchronously before the first await. It requires mutationOperationId === a.operationId, an exact intentDigest, the same audience and a live extension instance identity. The browser producer verifies an Ed25519 signature against an independently provisioned SPKI pin and the exact expected binding before encrypting.

✅ Mutation response preflight inside the transaction — preflight(publicExtensionProfile(snapshot)) runs before the revision insert in ExtensionProfileStore.save. As a result, an oversized projection rolls back instead of committing behind a fenced reply. The "oversized public bundle metadata" test covers create, update and disable.

✅ Bounded, schema-consistent envelope — fleetExtensionProfileInputSchema bounds repositoryScope. The listener and plane share FLEET_EXTENSION_LIMITS. A worst-case eight-field create/update over 150 KiB is proven end-to-end through the Unix listener.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F2: 🔴 Native save misreads expected that is null or lacks profileId

  • Required behavior: Issue Publish encrypted remote extension-management contract for Connect #3096: "Preserve the existing native self-hosted UI/API behavior." A native save request that was previously accepted, or refused, must not change outcome because of the new remote-only options parameter.

  • Evidence: packages/core/src/extensions/extensionProfileStore.ts:57-59 (save, const { expected, guard, preflight } = 'profileId' in options ? { expected: options } : options;).

    The unchanged native route (packages/api/routes/extensionProfileRoutes.ts:26) passes untyped req.body.expected straight into this fourth argument. exact() only restricts the body's top-level keys.

    Static trace, case 1 (null):

    1. An admin's native client POSTs { "input": {...}, "secrets": {}, "expected": null } to create a profile.
    2. The default = {} does not apply to null.
    3. 'profileId' in null throws TypeError.
    4. The route's handle catch returns 400.
    5. Before this PR, expected?.profileId ?? randomUUID() and if (expected) treated null as a create, so the profile was created.

    Static trace, case 2 (object without profileId):

    1. A native client sends expected: {}, or a partial selection such as { "instanceId": "...", "revision": 3 }.
    2. Before this PR, the truthy expected entered the if (expected) revision-fenced branch, which cannot match and refuses.
    3. Now the object is destructured as options, so expected is undefined.
    4. The call takes the create path and commits a new profile instead of refusing a malformed compare-and-swap.

    A body such as expected: { "guard": 1 } also now reaches await guard(trx) and fails with a TypeError rather than a validation error. That failure is harmless but shows that untrusted JSON now reaches an internal callback slot.

    Existing protections do not cover this. extensionProfileInputSchema validates only input, and no schema validates expected before destructuring. Existing native tests pass select(profile) directly, which always contains profileId.

    Unverified assumption: I could not see whether the native UI currently sends expected: null for creates. Case 2 does not depend on it.

    Proposed regression: native store.save('100', input, {}, null as any) creates a profile, and store.save('100', input, {}, {} as any) and the partial-selection case are refused without inserting a row.

  • Minimum fix: Make the options form unreachable from native JSON and keep max-params satisfied. For example:

    • Treat options as ExtensionProfileSaveOptions only when it is a non-null object whose keys are a subset of {expected, guard, preflight} and whose guard/preflight, if present, are functions.
    • Otherwise treat the value as the legacy expected, with null/undefined meaning create and any other value taking the revision-fenced path as before.
    • Alternatively, route the remote callbacks through a separate internal method, and have both entry points share a private implementation.

    Add the native regression cases above.

Suggestions

These are optional follow-ups and are not sent to /fix.

S12: 🟢 Verify the MAC before authorization I/O

invoke calls this.authorize(a) before checking the HMAC and the time window. That call does filesystem authority reads, runtime.json comparison and uncached DB lookups. The socket is private, so this is not exploitable from outside. However, verifying issuedAt/expiresAt and the MAC first (with the secret from fleet.authority()) would avoid durable-authority work for unauthenticated envelopes.

S13: 🟢 Confirm the Core lint result on the current head

My static count puts dispatch at exactly 20: 14 non-default cases plus the operation.status ifs and || operators, with base 1. That is at the limit, not over it. save now gains two destructuring defaults and a ternary. If the configured ESLint version counts default values or optional chaining, either function could still trip --max-warnings=0. Validate Changes is still pending. If it warns, moving the operation.status body into a helper like saveProfile is the narrowest fix.

S14: 🟢 Measure the same object the response returns

The preflight measures publicExtensionProfile(snapshot), but dispatch returns the raw snapshot from store.save. Their sizes differ only when historical catalog secret statuses carry fields arrays. The gap is therefore tiny, but measuring or returning the same projection would make the "exact completed response" policy literally true. Projecting the returned profile would also stop historical catalog field names from crossing the remote boundary.

S15: 🟢 Scope skill-import repositories

importExactGitSkill lets the remote assertion name any owner/repo the native GitHub installation can read. The actor is a durable admin, so this is authorized. An operator-configured repository allowlist, or a check against the instance's configured repositories, would still narrow what a compromised relay plus an admin assertion could pull into skill storage.

S16: 🟢 Paginate list and history responses

profile.list, profile.history and skill.list are refused outright once their projection exceeds 256 KiB. This behavior is documented, but a large instance would permanently lose remote listing. A versioned follow-up with cursoring would address it.

Score

The remote contract, fencing and custody design are solid and well tested, but the new save options union regresses native API behavior for expected values that are null or lack profileId; the fix is localized. Current-head checks are still pending.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 31s
  • Tokens: 132,811 (124,464 in / 8,347 out)
  • Cost: $0.79

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F2 S12 S13 S14 S15 S16

🤖 Review by ProPR

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/fix F2

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit a4df959

Addressed 1 AI review comment (IDs: 6161463231)

Addressed finding F2

Summary of Changes

Applied F2 only. Native save now treats null as create and refuses malformed expectations without mutations. Remote callbacks use a separate entry point.

Added store and HTTP regressions. All 51 focused tests, Core/API typechecks, and affected-file lint passed.

Full Core lint remains blocked by unrelated warnings in dockerResultProcessor.ts and usageTrackingWrapper.ts.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 3m 46s
  • Tokens: 521,205 (517,660 in / 3,545 out)
  • Cost: $0.17

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6161467204✓

…d refuses malformed expectations without mutations. Remote callbacks use a separate entry point.

Applied F2 only. Native `save` now treats null as create and refuses malformed expectations without mutations. Remote callbacks use a separate entry point.

Added store and HTTP regressions. All 51 focused tests, Core/API typechecks, and affected-file lint passed.

Full Core lint remains blocked by unrelated warnings in `dockerResultProcessor.ts` and `usageTrackingWrapper.ts`.

PR: #3097
Comment by: @integry (ID: 6161467204)
Model: GPT-6.1 Sol
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR publishes propr.fleet-extensions.v1 as a separately pinned contract. It ships a schema, canonical fixtures, checksums, capabilities and an operator README, and serves the contract on the existing private Fleet Unix listener at /extensions/v1/invoke. Behind that endpoint it adds:

  • per-boundary durable actor and generation fencing;
  • one-use, authenticated P-256 recipients for write-only bearer tokens;
  • exact-commit GitHub skill import;
  • response-size preflight inside mutation transactions.

The latest fix cycle cleared both reported lint warnings:

  • save is back to 4 parameters, with options moved to saveWithOptions.
  • dispatch now delegates create/update and validate to helpers. By my static count it lands at exactly the complexity limit of 20.

The design is careful and the tests are extensive. One contract-consistency defect remains: Core verifies request and intent digests over Zod-transformed output, not the signed request as sent. It is localized but should be fixed before the immutable pin is consumed downstream.

Current-head status: 0 failed, 8 pending (including Validate Changes and the full test shards). Merge readiness also depends on those completing.

✅ Boundary-wide revocation fencing — guard(trx) runs inside the save, delete and skill-import transactions using the transaction handle. The "every create boundary" test demotes the actor at each counted check and proves nothing commits.

✅ Recipient custody discipline — decrypt claims all recipients synchronously before its first await, so concurrent replays lose. Private buffers are zeroed on every issuance failure path, and the issued recipient is destroyed if the completed reply cannot be journaled. All of these paths have dedicated tests.

✅ Native compatibility preserved — The legacy save(actor, input, replacements, expected) signature still forwards only expected, so native JSON can never inject guard/preflight. New tests prove expected: null creates and malformed selections are refused without mutation on both store and HTTP paths.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F3: 🔴 Request/intent digests use transformed Zod output, not signed bytes

  • Required behavior: The pinned contract binds the full request digest. Its fixtures define requestDigest = sha256(canonicalFleetJson(request)) over the request as sent, and every request valid under the published schema.json should verify identically in Core and in conforming clients.

  • Evidence: packages/core/src/fleet/extensions.ts (invoke: a.requestDigest !== digest(r), where r comes from fleetExtensionEnvelopeSchema.parse(parsed)). The same pattern appears in issue (intentDigest: digest(r.intent)) and decrypt (p.binding.intentDigest !== digest(intent)). The schema side is packages/shared/src/fleetExtensions.ts (fleetExtensionProfileInputSchema inherits name: z.string().trim().min(1).max(100)). The client-side digest definition is scripts/generate-fleet-extension-fixtures.mjs (requestDigest: hash(canonicalFleetJson(request))).

    Static trace:

    1. A Routing/Connect client builds a profile.create, profile.update or recipient.issue request whose profile name has leading or trailing whitespace, e.g. "Docs ". This is valid under the published JSON Schema (maxLength: 100, minLength: 1, no pattern).
    2. The client computes requestDigest over the canonical raw request, exactly as the generator and README describe, and MACs the assertion.
    3. invoke confirms canonicalFleetJson(parsed) === raw on the untransformed JSON. It then compares the assertion digest against digest(r), where Zod's .trim() has already rewritten name to "Docs".
    4. The digests differ, so the request is refused with generic fleet_extensions_unavailable. The nonce and operation tombstones are already counted against the permanent 4096-operation cap.
    5. The browser encryptor has the same mismatch. Its expectedBinding.intentDigest (raw) can never equal Core's signed binding.intentDigest (trimmed), so recipient authentication fails.

    Consequence: a whole class of schema-valid requests is unusable, and the published contract differs from Core's verification semantics. Once Fleet/Routing pin this immutable version, the discrepancy cannot be corrected without a v2.

    Existing protections do not cover this. The canonical-bytes check runs on pre-Zod JSON, and no test or fixture uses a name with surrounding whitespace. No other transform in the request schemas was found, so name is the only verified trigger. Proposed regression: a create, and a recipient issue, whose name is "Docs " with a raw-computed digest should either complete or be rejected by the published schema.

  • Minimum fix: Verify requestDigest against digest(parsed.request), the untransformed JSON already checked for canonical form. Compute recipient intentDigest from the raw intent in both issue and decrypt. Alternatively, refuse any request whose canonical Zod output differs from its canonical raw form, so the schema transform can never silently diverge. Either fix leaves schema.json and the pin unchanged. Add a whitespace-name regression.

Suggestions

These are optional follow-ups and are not sent to /fix.

S17: 🟢 Verify MAC before durable authorization

invoke calls this.authorize(a) before the HMAC check, because the secret comes from extensionAuthority. That path does filesystem reads and an uncached instance_members query. Any local process able to reach the 0600 socket can therefore trigger this work with unauthenticated assertions. Reading the secret first and checking the MAC before durable lookups would reduce this; the socket permissions make it optional.

S18: 🟢 Dispatch complexity sits exactly at the limit

By static count, dispatch has complexity 20: 14 cases, plus 5 decision points in operation.status, plus the function itself. That passes max 20 with zero headroom, so any added branch will reintroduce the warning that failed the exact-head lint. Moving the operation.status branch into a helper, as was done for saveProfile/validateProfile, would make this durable. I could not confirm the saveWithOptions complexity count because part of its body is outside the diff; the pending Validate Changes run is authoritative.

S19: 🟢 Status lookup expires with the original assertion

operation.status calls this.authorize(record.assertion), which refuses once the original assertion's expiresAt has passed. A client that loses a mutation reply has at most about 60 seconds to learn whether it committed. After that the outcome is permanently unavailable, even though the journal still records it. This matches the README ("Expired outcomes are unavailable"), but a longer status window, still revalidating the current actor and generations, would make lost-reply reconciliation more practical.

S20: 🟢 Skill import can outrun the 60-second assertion

importExactGitSkill fetches up to 256 blobs sequentially, each with a 10-second timeout, and runs guard() between fetches. Larger bundles will often hit assertion expiry and fail with the generic error. This fails closed, so it is safe, but bounded parallel fetches or a documented size expectation would make the operation predictable for consumers.

S21: 🟢 Readiness scan failure is permanent

FleetExtensionPlane.ready is a single readdir promise. If it ever rejects, every later invoke refuses until restart, with no diagnostics. Retrying on rejection, or surfacing the failure at listener start, would make the failure easier to operate.

Score

The implementation is thorough and well tested, and the lint warnings appear resolved. One localized contract-consistency blocker (F1) remains, where transformed-input digests make schema-valid requests unverifiable under the immutable pin, and current-head checks are still pending.

Score: 6/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 2m 1s
  • Tokens: 137,804 (126,895 in / 10,909 out)
  • Cost: $0.85

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F3 S17 S18 S19 S20 S21

🤖 Review by ProPR

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/fix F3

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 1e6f956

Addressed 1 AI review comment (IDs: 6161590162)

Addressed finding F3

Summary of Changes

Implemented F3 only. Request and recipient intent digests now use raw canonical JSON, while execution retains normalized names. The pinned schema is unchanged.

Added create/update whitespace regressions and rejection checks for substituted intents.

Validation: 52 tests pass, Core/Shared typechecks pass, and changed-file lint passes. Full Core lint remains blocked by two existing warnings in dockerResultProcessor.ts and usageTrackingWrapper.ts.

No visual preview was needed for this protocol change.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 4m 49s
  • Tokens: 553,831 (548,615 in / 5,216 out)
  • Cost: $0.21

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6161597496✓

…ow use raw canonical JSON, while execution retains normalized names. The pinned schema is unchanged.

Implemented F3 only. Request and recipient intent digests now use raw canonical JSON, while execution retains normalized names. The pinned schema is unchanged.

Added create/update whitespace regressions and rejection checks for substituted intents.

Validation: 52 tests pass, Core/Shared typechecks pass, and changed-file lint passes. Full Core lint remains blocked by two existing warnings in `dockerResultProcessor.ts` and `usageTrackingWrapper.ts`.

No visual preview was needed for this protocol change.

PR: #3097
Comment by: @integry (ID: 6161597496)
Model: GPT-6.1 Sol
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR adds propr.fleet-extensions.v1, a new contract with its own pin. Remote management planes use it to administer extension profiles over the existing private Fleet Unix listener. It does not touch propr.fleet-data.v1/v2, and the management plane never sees MCP credentials. The latest fix cycle addressed both Core lint warnings from the comment history:

  • Parameter count: ExtensionProfileStore.save keeps its native four-parameter signature and delegates to saveWithOptions(…, { expected, guard, preflight }). Native JSON can therefore no longer reach the internal callbacks.
  • Complexity: FleetExtensionPlane.dispatch was split into saveProfile and validateProfile.

Neither change alters the pinned schema, request/response shapes, authorization, or fencing.

I traced the main paths and found no PR-introduced blockers:

  • Admission and claims: admission → HMAC/pin/digest check → O_EXCL nonce/operation claim → dispatch → completion append.
  • Recipient lifecycle: issuance → synchronous claim → decrypt → custody.
  • Mutations: transaction-guarded mutations with response preflight before commit.
  • Status: operation status re-authorization.

Lint was not re-run in this read-only review. By my count, dispatch now sits at exactly 20 under ESLint's complexity rule, so it passes but has no headroom. Eleven current-head checks are still pending, including all test shards and Validate Changes. Merge readiness depends on those passing.

✅ Native/remote save separation — extensionProfileStore.ts save() passes only { expected } to saveWithOptions. New tests in both extensionProfiles.test.ts and extensionProfileRoutes.test.ts check four things: expected: null still creates; {}, {guard}, {preflight} and an extra-key selection are refused with "Invalid extension selection"; and neither profile nor revision rows change.

✅ Response preflight inside the transaction — preflight(publicExtensionProfile(snapshot)) runs before the revision insert for create, update and disable. An oversized projection therefore rolls back instead of committing and then returning fenced. The "oversized public bundle metadata" test covers all three actions.

✅ Worst-case contract self-consistency — fleetExtensionProfileInputSchema bounds repositoryScope to 64 × 200 characters. The listener test sends a schema-valid eight-field create and update above 150 KB through the real Unix listener and checks the 256 KiB request and response caps.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S22: 🟢 Handle a rejected ready promise

In packages/core/src/fleet/extensions.ts, the constructor stores this.ready = fs.readdir(...).then(...) and only awaits it inside invoke. If that readdir ever rejects, the promise has no handler until the first request arrives. Under Node's default --unhandled-rejections=throw, that could crash the process. Attaching a no-op .catch and re-throwing inside invoke keeps the fail-closed behaviour without that risk. This is optional because the control root was just initialized and validated by FleetDataPlane.initialize().

S23: 🟢 Give dispatch complexity headroom

By my count, dispatch is at exactly the complexity limit of 20. Adding any future case or condition will bring back the --max-warnings=0 failure. Moving the operation.status journal-verification block into a helper, like saveProfile/validateProfile, would leave margin.

S24: 🟢 Status becomes unavailable once the original assertion expires

operation.status re-authorizes record.assertion, and extensionAuthority refuses once Date.now() >= expiresAt. A relay that loses a reply therefore has at most about 60 seconds to learn whether a mutation committed. The README documents this ("Expired outcomes are unavailable"), and re-reading the current revision is the stated recovery. Consumers would still benefit from an explicit "status window equals assertion lifetime" note in capabilities.json, or a status check bound to the current assertion's audience instead.

S25: 🟢 profile.validate can outlive its assertion

Validating up to 8 servers, each with a 10s EXTENSION_LIMITS.timeoutMs, can exceed the 60s assertion. The request then fails closed with a generic refusal instead of returning partial results. This is safe, but a per-operation time budget or documented limit would make the outcome predictable for operators.

S26: 🟢 Paginate or bound list/history projections

profile.list, profile.history and skill.list are refused outright when they exceed 256 KiB, which the README documents. As profile history grows, a remote admin could lose list access with no recourse except native UI. A paginated v2 action, or a documented maximum revision count, would be a reasonable follow-up.

S27: 🟢 Restrict skill-import source repositories

importExactGitSkill uses the instance's native installation client for any owner/repo the request names. A durable admin can therefore copy content from any repository the installation can read into a skill bundle. That matches native authority, but an optional allowlist (for example, the profile's repositoryScope or installed repositories) would narrow what the remote plane can request.

Score

No verified PR-introduced blockers remain. The prior lint, schema-bound and response-preflight concerns are addressed and covered by focused tests. Merge readiness is conditional on the pending test shards, CodeQL and Validate Changes checks passing.

Score: 8/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 14s
  • Tokens: 133,772 (126,752 in / 7,020 out)
  • Cost: $0.77

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S22 S23 S24 S25 S26 S27

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 1/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 1/4
  • Result: failure
  • Commit: 1e6f956fc24d (1e6f956fc24d43323a57229f5ae44fe24f9e6afb)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:29246
Process completed with exit code 1.

.github:2
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@11d5960. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 85f5a6a

Summary of Changes

Fixed the flaky recipient-expiry test with a controlled clock, removing its sub-second issuance deadline. Production behavior is unchanged.

Validation: all 15 fleet-extension tests and Core typecheck pass. Strict Core lint remains blocked by two existing warnings in unrelated agent utilities.

No visual preview needed for this test-only change.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @propr-dev[bot]
  • Time: 3m 24s
  • Tokens: 531,646 (529,862 in / 1,784 out)
  • Cost: $0.16

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6161818376✓

@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Exact-head CI shard 1 failed only in recipient expiry/restart, substitutions, concurrent claims, rotation races and lost replies are fail closed at packages/core/test/fleetExtensions.test.ts:217. The test creates an assertion with expiresAt = floor(Date.now()/1000)+1; under loaded CI, recipient issuance itself crossed that one-second boundary and f.recipient(...) refused before the intended expiry assertion. All other 210 shard units passed, and this suite passes locally.

Please make this expiry regression deterministic without weakening production expiry behavior: give acquisition several seconds of valid lifetime within the 60-second assertion cap, then derive the sleep from the returned recipient binding/current clock plus a small safety margin before asserting consumption refusal. Keep the test proving that an actually issued recipient is rejected after expiry. Run the fleet-extension suite, changed-file lint, and Core/Shared typechecks. Do not change the contract schema or pin.

…ck, removing its sub-second issuance deadline. Production behavior is unchanged.

Fixed the flaky recipient-expiry test with a controlled clock, removing its sub-second issuance deadline. Production behavior is unchanged.

Validation: all 15 fleet-extension tests and Core typecheck pass. Strict Core lint remains blocked by two existing warnings in unrelated agent utilities.

No visual preview needed for this test-only change.

PR: #3097
Comment by: @propr-dev[bot] (ID: 6161818376)
Model: GPT-6.1 Sol
@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit c74bf03

Summary of Changes

Updated the expiry regression to allow 10 seconds for acquisition, then wait until the issued recipient’s binding expiry plus 100 ms before asserting consumption refusal. Production expiry behavior, schema, and pin are unchanged.

Validation passed:

  • Fleet-extension suite: 15 tests.
  • Changed-file TypeScript lint using a temporary config because Core excludes tests.
  • Core and Shared typechecks.
  • Diff whitespace check.

No visual preview needed for this test-only change.


🤖 Implementation Details

  • Model: GPT-6.1 Sol (medium)
  • Requested By: @integry
  • Time: 3m 24s
  • Tokens: 298,246 (295,529 in / 2,717 out)
  • Cost: $0.11

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 6161844463✓

…sition, then wait until the issued recipient’s binding expiry plus 100 ms before asserting consumption refusal. Production expiry behavior, schema, and pin are unchanged.

Updated the expiry regression to allow 10 seconds for acquisition, then wait until the issued recipient’s binding expiry plus 100 ms before asserting consumption refusal. Production expiry behavior, schema, and pin are unchanged.

Validation passed:

- Fleet-extension suite: 15 tests.
- Changed-file TypeScript lint using a temporary config because Core excludes tests.
- Core and Shared typechecks.
- Diff whitespace check.

No visual preview needed for this test-only change.

PR: #3097
Comment by: @integry (ID: 6161844463)
Model: GPT-6.1 Sol
@integry

integry commented Oct 14, 2026

Copy link
Copy Markdown
Owner

/review claude-opus

@propr-dev

propr-dev Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — claude-opus

Overall Evaluation

This PR adds the immutable, separately pinned propr.fleet-extensions.v1 contract and wires it into the existing private Fleet Unix listener at /extensions/v1/invoke. It includes:

  • the schema, fixtures, checksums, capabilities and README;
  • FleetExtensionPlane, which provides HMAC-authenticated, actor-bound operations with a durable nonce/operation claim, outcome-only journaling, and in-memory one-use P-256 recipients signed with Ed25519;
  • a browser WebCrypto producer;
  • exact-commit GitHub skill import;
  • guard and preflight hooks threaded into the native ExtensionProfileStore.

The Fleet data v1/v2 paths and native same-origin routes are preserved. The added tests cover the new null and malformed expected behavior on both the store and the HTTP route.

The most recent change, the deterministic expiry regression, is correct:

  • Issuance gets a 10-second assertion lifetime, well inside the 60-second cap and accepted by the issuedAt/expiresAt checks in invoke.
  • The sleep is derived from the issued binding.expiresAt plus 100 ms.
  • Consumption is then refused by both the p.assertion.expiresAt * 1000 <= Date.now() check in decrypt and the destroy timer.
  • Production expiry semantics are unchanged.

I traced admission, recipient issue and consumption, the mutation guards inside transactions, reservation and release accounting, the listener caps and shutdown. I found no PR-introduced defect with a reachable failure sequence. The PR is ready to merge once the pending current-head checks complete.

✅ One-use recipients are claimed before any await — decrypt removes every referenced recipient from the map synchronously, and zeroes it in finally. Concurrent or substituted attempts therefore burn the key. The concurrent-claim test confirms exactly one success.

✅ Revocation is fenced inside the mutation transaction — saveWithOptions, delete and importSkill run guard(trx) before and after the write. The transaction handle flows through FleetActorAuthorization into resolveDurableInstanceAuthorization, so the uncached role lookup uses the same connection. The boundary-sweep test revokes at every observed check.

✅ Reservation accounting distinguishes proven-unused from uncertain claims — Only an EEXIST refusal or an unattempted claim releases a slot. A post-write failure retains it, and restart re-counts the shared namespace.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S28: 🟢 Handle ready rejection eagerly

FleetExtensionPlane's constructor assigns this.ready = fs.readdir(...).then(...) without a rejection handler. If that readdir ever fails before the first invoke awaits ready, Node reports an unhandled rejection, which by default terminates the process. FleetDataPlane.initialize() has already validated the root, so this is unlikely. Still, adding .catch to store a failed state, and refusing in invoke, would keep the fail-closed behavior without any process-level risk.

S29: 🟢 Return the same projection that was preflighted

saveProfile and profile.disable return the raw snapshot from saveWithOptions. The in-transaction preflight, however, measures publicExtensionProfile(snapshot). If a carried-over historical catalog secret entry still has the legacy fields shape, two things follow:

  • The raw response could exceed the preflighted size, so a near-cap mutation could commit and then be fenced by response().
  • It would also echo the legacy field names that publicExtensionProfile exists to strip.

Returning publicExtensionProfile(...) from the remote dispatch paths would make the preflight exact. This is a narrow edge case and also exists in the native route, so it is not a blocker.

S30: 🟢 Clarify status availability window

operation.status re-authorizes record.assertion, so status is unavailable once the original assertion expires (at most 60 seconds). The README does say "Expired outcomes are unavailable". A consumer recovering from a lost reply after that window should be pointed explicitly to the "re-read the exact revision" path. A short reconciliation example in the README would make that clearer for the Fleet and Routing implementers.

S31: 🟢 Verify the MAC before durable authorization lookups

invoke calls this.authorize(a), which reads the authority files and performs two uncached DB lookups, before checking the HMAC and the clock window. The socket is private, so this is only an efficiency point. Even so, reading the secret first and refusing a bad MAC or a stale window before touching the database would make refusals cheaper and keep the ordering simpler to reason about.

S32: 🟢 Replace the source-regex wiring assertion

fleetDataPlane.test.ts asserts the exact text of the startConfiguredFleetData(...) call in server.ts. This breaks on harmless formatting changes. A behavioral test, or an exported wiring helper, would protect the same ordering guarantee with less churn.

Score

The implementation satisfies the pinned-contract objective, and I found no verified PR-introduced blockers; the latest fix makes the expiry regression deterministic without weakening production checks. Merge readiness is conditional on the currently pending shard, lint and validation checks passing.

Score: 8/10


🤖 Review Details

  • Model: Claude Opus 5.5
  • Time: 1m 29s
  • Tokens: 137,840 (129,214 in / 8,626 out)
  • Cost: $0.82

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S28 S29 S30 S31 S32

🤖 Review by ProPR

@integry
integry merged commit 46c981f into main Oct 14, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish encrypted remote extension-management contract for Connect

1 participant