Repository navigation
[3152 by Claude Fable 5.1] Remove unused Connect-managed extension transport while preserving native MCP/skills - #3155
Conversation
…til it finishes. The background task will notify me on completion; nothing else is pending. Not creating preview files, as the change is not visually perceptible.
…one, the native instance-admin path from #3079 is intact, and all affected suites pass. What I removed - Core private Fleet extension plane, extension authority proof v1, authority v2 and result delivery modules, plus the remote Git skill transport in `packages/core/src/fleet` and `packages/core/src/extensions`. - Shared contracts for Fleet extensions, authority proof, authority v2 and result delivery, and their exports from the shared index. - The two retired migrations creating the authority epoch, challenge, operation, intent and receipt tables. - Five contract bundles under `docs/contracts` and four fixture generator scripts. - Five retired core test suites and two test helpers. What I reshaped in surviving files - The Fleet data listener now serves only the data path and the reset path. The extension routes, their byte limits and refusal codes, and the extension plane parameter are gone. The public refusal middleware no longer reserves retired paths. - `startConfiguredFleetData` no longer takes a profile store, and `server.ts` passes the durable authorization callback without the transaction-bound database argument. - The profile store keeps native null-create handling and explicit provenance projection, but the remote-only `saveWithOptions`, guard and preflight callbacks are removed from save, delete and import. - The data plane drops the extension authority reuse, entry reservation and synchronous proof observation. Fleet files lose the synchronous reader, and the storage service loses the proof identity probe. Regressions added or adjusted - A new test in the data plane suite posts to the three retired paths on the private Unix listener and expects a plain data refusal, confirms the grant is not consumed, and asserts the modules, contracts, bundles, shared exports and migrations no longer exist. - The API mount test now checks that the retired paths are ordinary unknown routes with no special refusal code, including under forwarded-host and authenticated headers. - The native cleanup test runs only the native profile suite. Two reset suites were updated for the listener's new signature. Verification | Check | Result | | --- | --- | | Shared and core build, core/api/root typecheck | pass | | Lint on changed core and api sources | clean | | Data plane, profiles, cleanup, mount, routes, reset proof, instance authorization | all pass | | Native reset suite | 176 pass, 4 skipped for missing mount capability | One caveat to know about. Deleting the two migrations means any development database that already applied them will fail Knex's migration-list validation at startup until the rows for those two files are removed from the migrations table. No released instance ran them, since Hosted gates were never enabled. The operations note on the Node 24 cleanup now records the retirement in place of the deleted bundle checksums. No preview files were created because the change has no visible UI surface.
|
/merge |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
…ude-fable-5-1-remove-unused-connect-man-20261015-2235-hsi
|
/review gpt-6-astra |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — gpt-6-astraOverall EvaluationThe PR removes the Connect-managed extension transport, authority implementations, shared contracts, and associated fixtures while retaining native extension management. The supplied changes are coherent and appear merge-ready within the reviewed scope, conditional on pending checks completing successfully. ✅ Transport removal — ✅ Native authorization retained — ✅ Reset callers updated — Startup, recovery, and reset tests consistently use the revised listener argument positions. This is a static review of the supplied partial diff. Four generated contract files were omitted; no commands or tests were run. The authoritative check summary reports zero failures and eight pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Exercise the actual retired v2 pathBoth S2: 🟢 Check existing database migration compatibilityThe PR deletes S3: 🟢 Assert the correct removed exportThe new absence test checks ScoreThe reviewed implementation meets the retirement objective without a demonstrated native functionality regression. Pending checks and small regression-test inaccuracies leave some verification outstanding. Score: 8/10 🤖 Review Details
Files omitted from review diff4 files were omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized. No patch content from GitHub (a larger review budget cannot recover these)
Did not fit the review context budget
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
/use claude-opus |
|
ℹ️ Analyzed the follow-up request by @integry Analysis SummaryThe working tree is clean and the branch is at the merge commit of main into the PR branch. The exit code came from the preview directory not existing, which is expected. No follow-up change was requested. The new request body is empty, and the three latest comments from @integry are ProPR control commands rather than code requests:
None of these describe a code change, so I made no edits. The branch state is clean with the implementation commit and the main merge already in place, and nothing is visually perceptible, so no preview files were created. No code changes were necessary based on the current state of the branch. 🤖 Analysis Details
💡 ProPR Slash Commands
🤖 Generated by ProPR |
|
Please complete the cleanup at the current PR head by addressing all three Astra findings and the migration-upgrade hazard they expose. This is deletion/compatibility work only; preserve native instance-level extension/MCP/skills behavior and do not restore any Connect-managed extension authority or transport.
Run the focused listener/server/export/migration regressions plus the normal relevant package checks. Keep this PR narrowly scoped to retiring the remote Connect-managed extension plane; no deployment, release, provider mutation, or unrelated feature changes. |
|
✅ Applied the requested follow-up changes in commit d9423d1 Summary of ChangesAll three Astra findings and the migration-upgrade hazard are addressed. All focused regressions, lint on the migrations, and core and API typechecks pass. What changed
New regression in
Verification
Core's ESLint config ignores its 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…re addressed. All focused regressions, lint on the migrations, and core and API typechecks pass. All three Astra findings and the migration-upgrade hazard are addressed. All focused regressions, lint on the migrations, and core and API typechecks pass. **What changed** - **Retired endpoint coverage.** The private-listener test in `packages/core/test/fleetDataPlane.test.ts` and the public-server test in `packages/api/test/extensionServerMount.test.ts` now exercise the real former path, `/extensions/authority/v2/invoke`, alongside the v1 prove route and the extension invoke route. The extra `/prove` assertion stays as a harmless addition. - **Migration tombstones restored.** The two published filenames, `20261015070000_extension_authority_epoch.js` and `20261015130000_extension_authority_v2.js`, exist again with empty up and down functions and a comment explaining why. They create nothing, so databases whose ledger already records them keep passing migration-list validation. - **Append-only cleanup migration.** New `20261015220000_remove_extension_authority_schema.js` idempotently drops the nine retired triggers, the partial unique index, and all seven `native_authority_*`, `extension_authority_*`, and `extension_authority_v2_*` tables using IF EXISTS forms. Its down is a no-op, so the retired schema can never come back through rollback. No ledger rows are edited by hand. - **Export assertion corrected.** The absence check now targets the actually deleted `EXTENSION_RESULT_DELIVERY` export instead of the never-exported contract name. The migration-directory assertion in the same test now expects exactly the two tombstones plus the cleanup file, and verifies the tombstones contain no create statements. **New regression** in `packages/core/test/extensionAuthorityMigrationCleanup.test.ts`: - Builds an old-style database by letting Knex itself run a historical migration source that reproduces the original schema of both retired migrations, so the ledger records both names and the obsolete tables, triggers, and index physically exist. - Runs the normal startup gate on the current migration directory and proves it succeeds, leaves no pending migrations, keeps the pre-existing ledger rows intact, appends the cleanup entry, and removes every obsolete object while preserving `instance_members`. - Replays the cleanup migration directly to confirm idempotence. - Migrates a blank database to latest, proves it contains none of the obsolete schema, and asserts its full `sqlite_master` contents equal the upgraded database's, preserving schema equivalence. - Separately proves the tombstones are inert against a sentinel that throws on any schema or SQL call. **Verification** | Check | Result | | --- | --- | | Migration cleanup regression (2 tests) | pass, about 2.5s | | Private-listener retired-transport test | pass | | Public-server mount test via the repo suite runner | pass | | ESLint zero-warning on the three migration files and API test | pass | | `tsc --noEmit` for packages/core and packages/api, plus the new test file | pass | Core's ESLint config ignores its `test/` directory, so the two core test files were not lintable there. Nothing visual changed, so no preview files were created. PR: #3155 Comment by: @integry (ID: 6204248029) Model: Claude Fable 5.1
|
/merge |
|
🔀 Auto-merged No conflicts were found — the merge was verified by an AI agent. 🤖 Verification Details
System-triggered merge conflict resolution |
…ude-fable-5-1-remove-unused-connect-man-20261015-2235-hsi
|
/review gpt-6-astra |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — gpt-6-astraOverall EvaluationThe PR removes the Connect-managed extension transport, authority protocols, and related artifacts while retaining native extension administration. It appears merge-ready within the reviewed scope, conditional on pending checks completing successfully. ✅ Transport removal — The private listener now dispatches only Fleet data and reset requests; retired extension handlers and shared exports are removed. ✅ Native authorization preserved — Store mutations retain native authorization checks inside their transactions, while removing remote-only callbacks. ✅ Migration compatibility — Historical migration filenames remain as inert tombstones, and the cleanup migration drops triggers before tables. Added tests cover upgrade history, fresh-schema convergence, and idempotence. This was a static review; no commands were run. Four explicitly omitted generated artifact files were not reviewed. The supplied current checks show no failures and ten pending checks. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S4: 🟢 Exercise populated upgrade preservationConsider extending ScoreThe reviewed changes align with the retirement objective, preserve native transactional authorization, and add focused migration and route-removal coverage. No verified blocker was found; pending checks and omitted generated artifacts limit final verification. Score: 9/10 🤖 Review Details
Files omitted from review diff4 files were omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized. No patch content from GitHub (a larger review budget cannot recover these)
Did not fit the review context budget
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
CI failed: Full Test Suite Shard 3/4 Please investigate and fix this CI failure.
Failure evidence
|
|
✅ Applied the requested follow-up changes in commit ce21ed9 Summary of ChangesThe test file is outside the core lint config scope, so lint does not apply. The fix is verified; no visual preview applies to a test-only change. Fixed the Shard 3/4 failure in Cause. The test asserted that the last two rows of the historical migration ledger were the two retired tombstone names. Main's merged #3125 added Fix. The assertion now filters the ledger for extension-authority names and expects exactly the epoch and v2 entries in order, plus a check that v2 is the final row. The rest of the test, including the tombstone and cleanup checks, is unchanged. Verification. The suite passes locally with both tests green. 🤖 Implementation Details
Undo Changes • View Task Execution 💡 ProPR Slash Commands
🤖 Generated by ProPR |
…t does not apply. The fix is verified; no visual preview applies to a test-only change. The test file is outside the core lint config scope, so lint does not apply. The fix is verified; no visual preview applies to a test-only change. Fixed the Shard 3/4 failure in `packages/core/test/extensionAuthorityMigrationCleanup.test.ts`. **Cause.** The test asserted that the last two rows of the historical migration ledger were the two retired tombstone names. Main's merged #3125 added `20261015090000_add_issue_retry_request_resumed_at.js`, which sorts between the epoch and v2 timestamps, so the second-to-last row was no longer the epoch migration. The CI merge-ref included that migration while the test still assumed adjacency. **Fix.** The assertion now filters the ledger for extension-authority names and expects exactly the epoch and v2 entries in order, plus a check that v2 is the final row. The rest of the test, including the tombstone and cleanup checks, is unchanged. **Verification.** The suite passes locally with both tests green. PR: #3155 Comment by: @propr-dev[bot] (ID: 6204682460) Model: Claude Fable 5.1
|
/review gpt-6-astra |
|
✅ AI Code Review Complete requested by @integry Posted 1 review: |
🔍 AI Code Review — gpt-6-astraOverall EvaluationThe PR removes the Connect-managed extension transport, authority contracts, and remote-only store hooks while preserving native extension administration. No merge-blocking defect is demonstrated by the supplied diff. It is merge-ready within the reviewed scope, conditional on pending checks completing successfully. ✅ Transport removal — Private listener dispatch no longer exposes extension operations; updated tests cover retired paths on private and public listeners. ✅ Migration compatibility — Published migration filenames remain as inert tombstones. The cleanup drops dependent receipts before intents and removes membership triggers before their backing table. ✅ Native authorization retained — Store mutations retain native authorization and transaction boundaries after remote-only callbacks are removed. This was a static review; no commands were run. Four explicitly omitted contract-artifact patches were not reviewed. Current checks report zero failures and 14 pending. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Exercise populated upgrade preservationConsider extending ScoreThe reviewed changes closely match the retirement objective, with focused route and migration regression coverage. Pending checks and omitted artifact patches limit verification, but neither demonstrates a code blocker. Score: 9/10 🤖 Review Details
Files omitted from review diff4 files were omitted from the review diff. Large, binary, generated, and lockfile changes are deprioritized. No patch content from GitHub (a larger review budget cannot recover these)
Did not fit the review context budget
Copy and edit to choose records from this review: 🤖 Review by ProPR |
|
CI failed: Full Test Suite Shard 2/4 Please investigate and fix this CI failure.
Failure evidence
|
|
❌ Failed to apply follow-up changes requested by @propr-dev[bot] An error occurred while processing your request: Comment ID: 6204919635✓ |
AI Implementation Summary
Closes #3152
Branch:
3152/claude-fable-5-1-remove-unused-connect-man-20261015-2235-hsiCommits: ✅ Changes committed (d1c9a0d)
AI Processing Completed
Execution Details:
Summary:
Implementation complete. The Connect-managed extension transport is gone, the native instance-admin path from #3079 is intact, and all affected suites pass.
What I removed
packages/core/src/fleetandpackages/core/src/extensions.docs/contractsand four fixture generator scripts.What I reshaped in surviving files
startConfiguredFleetDatano longer takes a profile store, andserver.tspasses the durable authorization callback without the transaction-bound database argument.saveWithOptions, guard and preflight callbacks are removed from save, delete and import.Regressions added or adjusted
Verification
One caveat to know about. Deleting the two migrations means any development database that already applied them will fail Knex's migration-list validation at startup until the rows for those two files are removed from the migrations table. No released instance ran them, since Hosted gates were never enabled. The operations note on the Node 24 cleanup now records the retirement in place of the deleted bundle checksums.
No preview files were created because the change has no visible UI surface.
Detailed Logs:
4d1fe11d-1c6d-42b3-a9cc-0c9e38103844Log files stored at:
/usr/src/app/logs/executions/issue-3152-2026-10-15T23-02-57-132Z-conversation.json/usr/src/app/logs/executions/issue-3152-2026-10-15T23-02-57-132Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3152.
💡 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!