Skip to content

[3153 by Claude Fable 5] Remove obsolete in-guest Hosted reset protocol - #3159

Merged
integry merged 2 commits into
mainfrom
3153/claude-fable-5-remove-obsolete-in-guest--20261016-0041-ty1
Oct 16, 2026
Merged

integry merged 2 commits into
mainfrom
3153/claude-fable-5-remove-obsolete-in-guest--20261016-0041-ty1

Conversation

@propr-dev

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

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3153

Branch: 3153/claude-fable-5-remove-obsolete-in-guest--20261016-0041-ty1
Commits: ✅ Changes committed (83bf7d8)


AI Processing Completed

Execution Details:

  • Issue: Remove obsolete in-guest Hosted reset protocol #3153
  • Repository: integry/propr
  • Status: Success
  • Execution Time: 12m 47s
  • Tokens used: 5.44M tokens [5.4M input + 38.78K output]
  • API cost: $8.70
  • Timestamp: Oct 16, 2026, 12:54 AM UTC
  • LLM Model: Claude Fable 5
  • Subscription usage: Session +2%, Fable +1%

Summary:
Everything is verified. This change is backend-only with no visually perceptible effect, so no preview files are needed.

Summary

I removed the obsolete in-guest Hosted reset protocol from PR #3112 (merge f3de8e277a), per issue #3153 and the Fleet-ownership decision in integry/propr-fleet#114.

Deleted outright (reset-only):

  • packages/core/src/fleet/: resetFence.ts, resetProof.ts, nativeReset.ts, resetAdapters.ts, configuredReset.ts — only contract.ts, dataPlane.ts, files.ts remain
  • packages/api/fleetResetRecovery.ts (dedicated recovery entry point) and packages/shared/src/fleetReset.ts (reset contract/schemas, un-exported from the shared index)
  • packages/core/test/fleetNativeReset.test.ts, packages/core/test/fleetResetProof.test.ts, scripts/generate-fleet-reset-fixtures.mjs, docs/contracts/fleet-reset-v1/ (whole contract dir), and .github/workflows/fleet-reset-mounts.yml

Surgically cleaned (reset hooks removed, independently useful behavior preserved):

  • packages/api/fleetDataListener.ts: dropped the /reset/v1/invoke route, FleetResetProofPlane wiring, the recovery listener, and the nativeReset plumbing in startConfiguredFleetData; the fleet-data plane, Unix-socket hygiene, and public refusal of /v1/invoke are unchanged
  • packages/api/server.ts: removed the per-request generation-fence middleware and configuredNativeReset startup block; the listener now starts directly. Browser-session shutdown (socketAuthMiddleware.close) stays — it was already independently wired into server shutdown
  • packages/api/auth.ts, core/src/utils/logger.ts, core/src/db/connection.ts, core/src/storage/lifecycle.ts: removed assertConfiguredResetGeneration/configuredResetFence guards, restoring the pre-reset query path and the original SQLITE_BUSY retry comment
  • src/daemon.ts, src/worker.ts: unwrapped watchResetGeneration back to plain graceful-shutdown closures (the native --reset queue-clearing flags are untouched)
  • authSession.ts (BrowserSessionLifecycle), socketService.ts, taskWatcher.ts and their tests were left entirely alone, as the issue requires

Regressions added (packages/core/test/fleetDataPlane.test.ts): a new test proves /reset/v1/invoke is refused (403, fleet_data_unavailable) on the private listener while ordinary signed data-plane work still succeeds, that only the three data-plane modules remain in core/src/fleet, the contract dir is gone, and no reset symbol survives in the listener, server, shared index, daemon, or worker. The configured-startup test was rewritten to execute the simplified production startup expression (including demo-mode gating) and now asserts server.ts contains no reset wiring at all.

Validation: shared/core/API builds, root typecheck, git diff --check, and zero-warning lint on all changed files all pass. Tests: 49/49 fleet data-plane, 77/77 API (instance authorization, browser-session shutdown, socket ordering, task watcher), 84 pass/0 fail storage-lifecycle/sqlite-retry/logger suites. The two remaining core lint warnings are pre-existing in files this change never touched. All Hosted/reset/public gates remain false; native data controls, billing, backups, and deployment paths were not touched.

Detailed Logs:

  • Conversation: 146 messages
  • Session: 265c7e34-1c8a-400b-a9b0-2696462e9665

Log files stored at:

  • conversation: /usr/src/app/logs/executions/issue-3153-2026-10-16T00-54-03-231Z-conversation.json
  • output: /usr/src/app/logs/executions/issue-3153-2026-10-16T00-54-03-231Z-output.txt
Latest Conversation Messages
ASSISTANT: [content unavailable]

ASSISTANT: Everything is verified. This change is backend-only with no visually perceptible effect, so no preview files are needed.

## Summary

I removed the obsolete in-guest Hosted reset protocol from PR #311...


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


💡 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!

…perceptible effect, so no preview files are needed.

Summary

I removed the obsolete in-guest Hosted reset protocol from PR #3112 (merge `f3de8e277a`), per issue #3153 and the Fleet-ownership decision in `integry/propr-fleet#114`.

Deleted outright (reset-only):
- `packages/core/src/fleet/`: `resetFence.ts`, `resetProof.ts`, `nativeReset.ts`, `resetAdapters.ts`, `configuredReset.ts` — only `contract.ts`, `dataPlane.ts`, `files.ts` remain
- `packages/api/fleetResetRecovery.ts` (dedicated recovery entry point) and `packages/shared/src/fleetReset.ts` (reset contract/schemas, un-exported from the shared index)
- `packages/core/test/fleetNativeReset.test.ts`, `packages/core/test/fleetResetProof.test.ts`, `scripts/generate-fleet-reset-fixtures.mjs`, `docs/contracts/fleet-reset-v1/` (whole contract dir), and `.github/workflows/fleet-reset-mounts.yml`

Surgically cleaned (reset hooks removed, independently useful behavior preserved):
- `packages/api/fleetDataListener.ts`: dropped the `/reset/v1/invoke` route, `FleetResetProofPlane` wiring, the recovery listener, and the `nativeReset` plumbing in `startConfiguredFleetData`; the fleet-data plane, Unix-socket hygiene, and public refusal of `/v1/invoke` are unchanged
- `packages/api/server.ts`: removed the per-request generation-fence middleware and `configuredNativeReset` startup block; the listener now starts directly. Browser-session shutdown (`socketAuthMiddleware.close`) stays — it was already independently wired into server shutdown
- `packages/api/auth.ts`, `core/src/utils/logger.ts`, `core/src/db/connection.ts`, `core/src/storage/lifecycle.ts`: removed `assertConfiguredResetGeneration`/`configuredResetFence` guards, restoring the pre-reset query path and the original SQLITE_BUSY retry comment
- `src/daemon.ts`, `src/worker.ts`: unwrapped `watchResetGeneration` back to plain graceful-shutdown closures (the native `--reset` queue-clearing flags are untouched)
- `authSession.ts` (BrowserSessionLifecycle), `socketService.ts`, `taskWatcher.ts` and their tests were left entirely alone, as the issue requires

Regressions added (`packages/core/test/fleetDataPlane.test.ts`): a new test proves `/reset/v1/invoke` is refused (403, `fleet_data_unavailable`) on the private listener while ordinary signed data-plane work still succeeds, that only the three data-plane modules remain in `core/src/fleet`, the contract dir is gone, and no reset symbol survives in the listener, server, shared index, daemon, or worker. The configured-startup test was rewritten to execute the simplified production startup expression (including demo-mode gating) and now asserts `server.ts` contains no reset wiring at all.

Validation: shared/core/API builds, root typecheck, `git diff --check`, and zero-warning lint on all changed files all pass. Tests: 49/49 fleet data-plane, 77/77 API (instance authorization, browser-session shutdown, socket ordering, task watcher), 84 pass/0 fail storage-lifecycle/sqlite-retry/logger suites. The two remaining core lint warnings are pre-existing in files this change never touched. All Hosted/reset/public gates remain false; native data controls, billing, backups, and deployment paths were not touched.
@integry

integry commented Oct 16, 2026

Copy link
Copy Markdown
Owner

/review gpt-6-astra

@propr-dev

propr-dev Bot commented Oct 16, 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 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — gpt-6-astra

Overall Evaluation

The PR cleanly retires the in-guest reset protocol and leaves infrastructure replacement to Fleet. It is merge-ready within the reviewed scope, conditional on the pending checks completing successfully.

✅ Complete protocol removal — Removes the reset contracts, private listener actions, recovery entry point, native erasure implementation, proof generation, fixtures, documentation, and dedicated workflow.

✅ General safety preserved — Storage claims and nested-work tracking, SQLite retries, browser-session lifecycle controls, and ordinary authentication checks remain intact.

✅ Retained transport coverage — The new regression test checks that the private listener refuses /reset/v1/invoke while continuing to accept signed data-plane requests. Startup tests retain readiness gating and demo-mode isolation.

This assessment is based on static tracing of the supplied diff and surrounding context; no commands or tests were run. The supplied current-head status reports no failures and six pending checks.

Merge blockers

No merge blockers.

Suggestions

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

S1: 🟢 Narrow structural test assertions

In packages/core/test/fleetDataPlane.test.ts, the exact three-file directory assertion and assert.doesNotMatch(source, /reset/i) constrain unrelated future development: adding a legitimate Fleet module or an unrelated reset reference would fail these tests. Consider checking specifically for the retired modules, imports, and registrations while retaining the behavioral endpoint test. This is optional test-maintenance cleanup; the current assertions do not demonstrate a runtime defect.

Score

The changes match the removal objective, preserve the relevant independent safety mechanisms, and add focused refusal coverage. No merge-blocking regression was identified; final CI results remain pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 21s
  • Tokens: 106,802 (106,398 in / 404 out)
  • Cost: $1.02

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 S1

🤖 Review by ProPR

@integry

integry commented Oct 16, 2026

Copy link
Copy Markdown
Owner

Please apply Astra S1 as a tightly scoped Fable cleanup on exact head 83bf7d8f0c03c5e627ad88f5ed2d98249a822fdc.

  • Keep the behavioral assertion that the private listener refuses /reset/v1/invoke while ordinary signed Fleet data-plane work succeeds.
  • Replace the exact three-file directory enumeration with targeted assertions that each retired reset-only module, contract, export, endpoint, recovery entry point, and startup registration is absent. A future legitimate module under packages/core/src/fleet must not fail this test.
  • Replace broad whole-file /reset/i source assertions with specific retired-symbol/import/registration assertions. Ordinary unrelated reset wording or the native daemon/worker --reset queue-maintenance flags must remain allowed.
  • Clean the mechanical spacing artifacts introduced in packages/api/server.ts (const PORT = Number(...)) and packages/core/src/utils/logger.ts (const redacted = /.../). Do not otherwise reformat unrelated code.

Do not restore or replace any in-guest Hosted reset behavior and do not touch Fleet hard replacement, native database export/repository controls, MCP/skills, billing, backup, rollout, deployment, credentials, or live instances. Run the focused Fleet data-plane/API/storage/session tests, lint/typecheck/build, and git diff --check.

@propr-dev

propr-dev Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit ef879c0

Summary of Changes

Astra S1 is applied as a tightly scoped cleanup on head 83bf7d8f0, touching exactly three files.

packages/core/test/fleetDataPlane.test.ts — targeted absence assertions

  • The behavioral core is unchanged: the private listener still refuses /reset/v1/invoke with 403 fleet_data_unavailable, and an ordinary signed repositories.list succeeds on the same socket within the same test.
  • The exact three-file readdir enumeration of packages/core/src/fleet is gone. In its place, each retired reset-only artifact is asserted ENOENT individually: the five reset modules (resetFence, resetProof, nativeReset, resetAdapters, configuredReset), the recovery entry point packages/api/fleetResetRecovery.ts, the shared contract packages/shared/src/fleetReset.ts, docs/contracts/fleet-reset-v1, the fixture generator script, and the retired workflow. The retired exports (FLEET_RESET_CONTRACT, FLEET_RESET_PATH, schemas, etc.) are asserted absent from the live @propr/shared surface.
  • The broad per-file regex was replaced with a per-file list of exact retired symbol/import/registration strings (e.g. FleetResetProofPlane and fleet_reset_unavailable in the listener, configuredNativeReset/assertConfiguredResetGeneration in server.ts, ./fleetReset.js in the shared index, watchResetGeneration in daemon/worker). The configured-startup test's whole-file assert.doesNotMatch(source, /reset/i) was likewise replaced with the specific startup-registration symbols.

Spacing artifacts cleaned: const PORT = Number(...) in packages/api/server.ts:189 and const redacted = /.../ in packages/core/src/utils/logger.ts:19. Nothing else was reformatted, and no reset behavior, Fleet replacement, native controls, or other subsystems were touched.

Verification

  • Mutation probes confirm the new assertions are neither too loose nor too tight: appending a configuredNativeReset reference to server.ts fails the test; adding a brand-new packages/core/src/fleet/futureModule.ts passes; adding benign "resets the connection pool" wording to server.ts passes the startup test (all probe edits reverted).
  • Tests: fleet data-plane 49/49, focused API suites (instance authorization, browser-session shutdown, socket ordering, task watcher) 77/77, storage/sqlite-retry/logger suites 84 pass / 0 fail (6 pre-existing skips) — matching the head commit's baselines.
  • Zero-warning lint passes on server.ts and logger.ts (the test file is outside the core lint config scope, as previously established), shared/core/API builds and the root typecheck pass, and git diff --check is clean.

This is a backend/test-only change with no visually perceptible effect, so no preview files were created.


🤖 Implementation Details

  • Model: Claude Fable 5 (medium)
  • Requested By: @integry
  • Time: 7m 51s
  • Tokens: 2,023,137 (2,008,869 in / 14,268 out)
  • Cost: $3.64
  • Subscription usage: Session +4%, Weekly +1%, Fable +2%

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: 6205615215✓

…bf7d8f0`, touching exactly three files.

Astra S1 is applied as a tightly scoped cleanup on head `83bf7d8f0`, touching exactly three files.

**`packages/core/test/fleetDataPlane.test.ts` — targeted absence assertions**
- The behavioral core is unchanged: the private listener still refuses `/reset/v1/invoke` with 403 `fleet_data_unavailable`, and an ordinary signed `repositories.list` succeeds on the same socket within the same test.
- The exact three-file `readdir` enumeration of `packages/core/src/fleet` is gone. In its place, each retired reset-only artifact is asserted ENOENT individually: the five reset modules (`resetFence`, `resetProof`, `nativeReset`, `resetAdapters`, `configuredReset`), the recovery entry point `packages/api/fleetResetRecovery.ts`, the shared contract `packages/shared/src/fleetReset.ts`, `docs/contracts/fleet-reset-v1`, the fixture generator script, and the retired workflow. The retired exports (`FLEET_RESET_CONTRACT`, `FLEET_RESET_PATH`, schemas, etc.) are asserted absent from the live `@propr/shared` surface.
- The broad per-file regex was replaced with a per-file list of exact retired symbol/import/registration strings (e.g. `FleetResetProofPlane` and `fleet_reset_unavailable` in the listener, `configuredNativeReset`/`assertConfiguredResetGeneration` in `server.ts`, `./fleetReset.js` in the shared index, `watchResetGeneration` in daemon/worker). The configured-startup test's whole-file `assert.doesNotMatch(source, /reset/i)` was likewise replaced with the specific startup-registration symbols.

**Spacing artifacts cleaned:** `const PORT = Number(...)` in `packages/api/server.ts:189` and `const redacted = /.../ ` in `packages/core/src/utils/logger.ts:19`. Nothing else was reformatted, and no reset behavior, Fleet replacement, native controls, or other subsystems were touched.

**Verification**
- Mutation probes confirm the new assertions are neither too loose nor too tight: appending a `configuredNativeReset` reference to `server.ts` fails the test; adding a brand-new `packages/core/src/fleet/futureModule.ts` passes; adding benign "resets the connection pool" wording to `server.ts` passes the startup test (all probe edits reverted).
- Tests: fleet data-plane 49/49, focused API suites (instance authorization, browser-session shutdown, socket ordering, task watcher) 77/77, storage/sqlite-retry/logger suites 84 pass / 0 fail (6 pre-existing skips) — matching the head commit's baselines.
- Zero-warning lint passes on `server.ts` and `logger.ts` (the test file is outside the core lint config scope, as previously established), shared/core/API builds and the root typecheck pass, and `git diff --check` is clean.

This is a backend/test-only change with no visually perceptible effect, so no preview files were created.

PR: #3159
Comment by: @integry (ID: 6205615215)
Model: Claude Fable 5
@integry

integry commented Oct 16, 2026

Copy link
Copy Markdown
Owner

/review gpt-6-astra

@propr-dev

propr-dev Bot commented Oct 16, 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 16, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — gpt-6-astra

Overall Evaluation

The PR cleanly retires the in-guest reset protocol and its startup wiring, contracts, recovery entry point, destructive implementation, documentation, and dedicated tests. It is merge-ready within the reviewed scope, conditional on pending checks completing successfully.

✅ Scoped removal — Reset-specific fencing is removed while ordinary authentication, browser-session lifecycle handling, storage read claims, queue protection, and SQLite retries remain intact.

✅ Private listener behavior preserved — The listener now accepts only /v1/invoke. The added regression test checks that /reset/v1/invoke is refused and ordinary signed repository requests succeed on the same listener.

✅ Focused regression assertions — Targeted retired-file and symbol assertions allow future Fleet modules and unrelated reset wording. The requested spacing cleanup is also present.

This assessment is based on static review of the supplied diff and context; no commands or tests were run. The authoritative check summary reports no failures and 15 pending checks.

Merge blockers

No merge blockers.

Suggestions

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

No suggestions.

Score

The changes satisfy the retirement objective without a demonstrated regression in surviving behavior, and the revised tests address the earlier maintainability concern. Final CI results remain pending.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 18s
  • Tokens: 108,001 (107,657 in / 344 out)
  • Cost: $1.09

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

@propr-dev

propr-dev Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 4/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 4/4
  • Result: failure
  • Commit: ef879c0ee918 (ef879c0ee91820c9244f83334529caab51cb4d09)
  • Details: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:34866
Process completed with exit code 1.

propr-ui/src/pages/PlansPage.liveActivity.test.tsx:103 — src/pages/PlansPage.liveActivity.test.tsx > PlansPage plan activity > moves a visible plan from running to in review while its status stays pr_created, without a reload
AssertionError: expected "vi.fn()" to be called 1 times, but got 2 times
❯ src/pages/PlansPage.liveActivity.test.tsx:103:27

@propr-dev

propr-dev Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Starting work on follow-up changes requested by @propr-dev[bot]

I'll analyze the 1 request and implement the necessary changes.

View Task Progress


Processing comment ID: 6205895225✓

@propr-dev

propr-dev Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

⌛ Processing Delayed: Claude's usage limit was reached while processing requests from @propr-dev[bot].

The job has been automatically rescheduled and will restart 01:50 AM UTC on 10/16/2026.


Job ID: pr-comments-batch-integry-propr-3159-claude-fable-3153-claude-fable-5-remove-obs-ratelimit-retry-c170035c4573d7dc will run again after delay.

@integry
integry merged commit 43a749e into main Oct 16, 2026
59 of 65 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.

Remove obsolete in-guest Hosted reset protocol

1 participant