Skip to content

[3763 by Claude Opus 5.5] Slim control plane: single-process mode and UI served by API - #3771

Merged
integry merged 3 commits into
3758-epic-runtime-abstraction-sc0from
3763/claude-opus-5-5-slim-control-plane-single-20261124-0015-aej
Nov 24, 2026
Merged

integry merged 3 commits into
3758-epic-runtime-abstraction-sc0from
3763/claude-opus-5-5-slim-control-plane-single-20261124-0015-aej

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3763

Branch: 3763/claude-opus-5-5-slim-control-plane-single-20261124-0015-aej
Commits: ✅ Changes committed (35ac401)


AI Processing Completed

Execution Details:

Summary:
I've added an all-in-one mode that runs the daemon, worker and API in one Node process. The API can now serve the UI itself, and propr start --profile minimal starts just Redis plus that one container. The multi-container stack is still the default and works as before.

I didn't run the full stack, because there's no Docker or Redis in this environment. I did measure memory a simpler way: importing each compiled entry point with startup turned off. The four separate processes come to about 800 MB together on this machine, and one combined process to about 254 MB. That's roughly a third, before any real work is running. The issue's figures are lower (~450 MB on a 1 GB Fly Machine) because Node sizes its memory to the host, so compare the ratio, not the numbers. Whether it fits in 512 MB under real load is still unconfirmed; the docs say so.

All-in-one entry (src/allInOne.ts, npm run all-in-one / all-in-one:dev, or node dist/src/allInOne.js as the image command)

  • Migrations run once, then the API (and UI) starts first. The worker can wait on an agent image build before taking jobs, and this way you can watch that from the dashboard.
  • The components share the SQLite handle, the task queue connection and other shared objects. Each component still opens some of its own Redis connections; I didn't merge those.
  • PROPR_INDEXING=inline|separate|off, defaulting to inline.
  • Shutdown order: stop taking in GitHub events → indexing worker → main worker → API → shared queue. The indexing worker has to stop before the main worker, because the main worker's cleanup closes every network proxy in the process. A second Ctrl-C/SIGTERM exits immediately.
  • To make this possible, the daemon, worker, indexing worker and API startup functions now take options to skip their own signal handlers and return a close(). Defaults are unchanged, so standalone behaviour is the same.

UI served by the API (packages/api/staticUi.ts)

  • This is off unless PROPR_SERVE_UI=1 or PROPR_UI_DIST_DIR is set; all-in-one turns it on.
  • config.js is still generated at startup and never cached. It defaults to the API's own origin and reads PROPR_SERVED_UI_API_URL, not PROPR_UI_PUBLIC_API_URL, because in tunnel mode that variable holds the hosted UI's proxy URL.
  • Unknown page paths fall back to index.html. API, Socket.IO, webhook and MCP/OAuth paths, missing assets and non-GET requests never do.
  • The API's own public origin is now allowed through CORS and Socket.IO, but only when it is serving the UI.
  • docker/Dockerfile.app.prod now builds the UI and bundles it into the app image, so building that image takes longer.

Launcher and CLI

  • PROPR_PROFILE=full|minimal (bad values fail propr check), plus propr start --profile minimal.
  • The minimal profile starts redis and the all-in-one container, plus the indexing worker container when PROPR_INDEXING=separate. That container gets the combined mounts and settings of the four services it replaces.
  • In the minimal profile:
    • FRONTEND_URL defaults to the API address, so the UI is at http://localhost:4000.
    • The tunnel attaches to the all-in-one container.
    • The UI image isn't pulled, and the dashboard's u (toggle UI) key explains there's nothing to toggle.
  • Starting one profile removes any leftover containers from the other, so two control planes can't run against the same database. propr status shows the other profile's containers only while they still exist.

Docs: a memory table in setup.md, a new "Slim Control Plane" section in the configuration reference, updates to the CLI and Docker Hub pages, and two new settings-catalog entries (settings-locations page regenerated).

Tests: new tests cover the launcher profile, static UI serving (over a real HTTP server) and the all-in-one config and shutdown order; they're added to test:unit. Typecheck, lint and the related existing launcher, CLI, Dockerfile and API tests all pass. The API tests that load the real server only pass with NODE_ENV=test, which the repo's test runner sets; they fail the same way on unmodified code without it. The worker and daemon tests that need a live Redis weren't run.

There are no preview images, since nothing in the UI looks different.

Review digest

Risk-tiered paths

  • High risk (1 file)
    • package.json (+3/−1): dependency manifest
  • Normal risk (16 files)
    • docker/Dockerfile.app.prod (+39/−2)
    • docker/launcher/entrypoint.mjs (+1/−0)
    • docker/launcher/orchestrator.mjs (+162/−48)
    • packages/api/mcp/settingsCatalog.ts (+2/−0)
    • packages/api/server.ts (+48/−7)
    • packages/api/staticUi.ts (added, +174/−0)
    • packages/cli/src/commands/startCommand.ts (+9/−1)
    • packages/cli/src/orchestrator/index.ts (+3/−0)
    • packages/cli/src/orchestrator/types.ts (+15/−0)
    • packages/cli/src/tui/StartApp.tsx (+4/−0)
    • packages/cli/src/tui/render.ts (+8/−2)
    • src/allInOne.ts (added, +137/−0)
    • src/allInOneConfig.ts (added, +71/−0)
    • src/daemon.ts (+27/−9)
    • src/indexing_worker.ts (+43/−14)
    • src/worker.ts (+11/−6)
  • Low risk (9 files)
    • docker/dockerhub/app.md (+2/−1)
    • docker/dockerhub/launcher.md (+3/−0)
    • docs/docs/features/propr-cli.md (+1/−0)
    • docs/docs/operations/configuration-reference.md (+14/−0)
    • docs/docs/operations/settings-locations.md (+2/−0)
    • docs/docs/tutorials/setup.md (+17/−0)
    • packages/api/test/staticUi.test.ts (added, +115/−0)
    • test/allInOneConfig.test.ts (added, +77/−0)
    • test/orchestratorMinimalProfile.test.mjs (added, +105/−0)

Diff size: 26 files changed, +1,093/−91 lines

View task for the run's logs and conversation.


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


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

I've added an all-in-one mode that runs the daemon, worker and API in one Node process. The API can now serve the UI itself, and `propr start --profile minimal` starts just Redis plus that one container. The multi-container stack is still the default and works as before.

I didn't run the full stack, because there's no Docker or Redis in this environment. I did measure memory a simpler way: importing each compiled entry point with startup turned off. The four separate processes come to about 800 MB together on this machine, and one combined process to about 254 MB. That's roughly a third, before any real work is running. The issue's figures are lower (~450 MB on a 1 GB Fly Machine) because Node sizes its memory to the host, so compare the ratio, not the numbers. Whether it fits in 512 MB under real load is still unconfirmed; the docs say so.

All-in-one entry (`src/allInOne.ts`, `npm run all-in-one` / `all-in-one:dev`, or `node dist/src/allInOne.js` as the image command)
- Migrations run once, then the API (and UI) starts first. The worker can wait on an agent image build before taking jobs, and this way you can watch that from the dashboard.
- The components share the SQLite handle, the task queue connection and other shared objects. Each component still opens some of its own Redis connections; I didn't merge those.
- `PROPR_INDEXING=inline|separate|off`, defaulting to `inline`.
- Shutdown order: stop taking in GitHub events → indexing worker → main worker → API → shared queue. The indexing worker has to stop before the main worker, because the main worker's cleanup closes every network proxy in the process. A second Ctrl-C/SIGTERM exits immediately.
- To make this possible, the daemon, worker, indexing worker and API startup functions now take options to skip their own signal handlers and return a `close()`. Defaults are unchanged, so standalone behaviour is the same.

UI served by the API (`packages/api/staticUi.ts`)
- This is off unless `PROPR_SERVE_UI=1` or `PROPR_UI_DIST_DIR` is set; all-in-one turns it on.
- `config.js` is still generated at startup and never cached. It defaults to the API's own origin and reads `PROPR_SERVED_UI_API_URL`, not `PROPR_UI_PUBLIC_API_URL`, because in tunnel mode that variable holds the hosted UI's proxy URL.
- Unknown page paths fall back to `index.html`. API, Socket.IO, webhook and MCP/OAuth paths, missing assets and non-GET requests never do.
- The API's own public origin is now allowed through CORS and Socket.IO, but only when it is serving the UI.
- `docker/Dockerfile.app.prod` now builds the UI and bundles it into the app image, so building that image takes longer.

Launcher and CLI
- `PROPR_PROFILE=full|minimal` (bad values fail `propr check`), plus `propr start --profile minimal`.
- The minimal profile starts redis and the all-in-one container, plus the indexing worker container when `PROPR_INDEXING=separate`. That container gets the combined mounts and settings of the four services it replaces.
- In the minimal profile:
  - `FRONTEND_URL` defaults to the API address, so the UI is at `http://localhost:4000`.
  - The tunnel attaches to the all-in-one container.
  - The UI image isn't pulled, and the dashboard's `u` (toggle UI) key explains there's nothing to toggle.
- Starting one profile removes any leftover containers from the other, so two control planes can't run against the same database. `propr status` shows the other profile's containers only while they still exist.

Docs: a memory table in `setup.md`, a new "Slim Control Plane" section in the configuration reference, updates to the CLI and Docker Hub pages, and two new settings-catalog entries (settings-locations page regenerated).

Tests: new tests cover the launcher profile, static UI serving (over a real HTTP server) and the all-in-one config and shutdown order; they're added to `test:unit`. Typecheck, lint and the related existing launcher, CLI, Dockerfile and API tests all pass. The API tests that load the real server only pass with `NODE_ENV=test`, which the repo's test runner sets; they fail the same way on unmodified code without it. The worker and daemon tests that need a live Redis weren't run.

There are no preview images, since nothing in the UI looks different.

ProPR-Agent: claude/claude-opus-5-5

integry commented Nov 24, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=8 max=10

@propr-dev propr-dev Bot added the ultrafix label Nov 24, 2026
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 8/10, max cycles: 10)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

CI failed: Full Test Suite Shard 3/4

Please investigate and fix this CI failure.

  • Check: Full Test Suite Shard 3/4
  • Result: failure
  • Commit: 35ac4011fef1 (35ac4011fef110ded9f38014c3b07ad9e201080d)
  • Run: View CI failure

Failure evidence

.github:11
Process completed with exit code 1.

.github:47680
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 Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 7e20cd7

Summary of Changes

I fixed the Shard 3/4 failure. It was the only failing test file in that shard: packages/api/test/openapiRouteCoverage.test.ts.

Cause: that test scans the API source for routes registered directly on the Express app. Every one must be listed in packages/api/openapi/directRoutes.ts. This PR's new GET /config.js route in packages/api/staticUi.ts wasn't listed, so the test failed with "GET /config.js is registered directly; list it in openapi/directRoutes.ts".

Fix:

  • Listed the route: /config.js is now in packages/api/openapi/directRoutes.ts as a public route from staticUi.ts. A comment notes it only exists when the API serves the UI.
  • Documented it: once listed, the spec generator also wants the route in a tag or with its own doc. I added a short System-tagged doc entry in packages/api/openapi/routeDocsSystem.ts, with response type application/javascript. I kept it to a few lines so the file stays under the 400-line lint limit.
  • Regenerated the spec: ran npm run gen:openapi, which adds the /config.js entry to docs/static/openapi/propr-api.yaml and moves the route counts from 327 to 328. The generated client types didn't change.

Checks run locally, all passing:

  • openapiRouteCoverage.test.ts: 16 of 16 (with NODE_ENV=test, as CI sets).
  • npm run gen:openapi:check.
  • scripts/check-client-contract.ts.
  • test/ciChangeClassification.test.mjs.
  • tsc --noEmit and zero-warning eslint on packages/api.

I didn't rerun the rest of the shard; CI will confirm that.

There are no preview images, since nothing in the UI changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • packages/api/openapi/directRoutes.ts (+3/−0)
    • packages/api/openapi/routeDocsSystem.ts (+5/−0)
  • Low risk (1 file)
    • docs/static/openapi/propr-api.yaml (+21/−2)

Diff size: 3 files changed, +29/−2 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-dev[bot]
  • Time: 6m 19s
  • Tokens: 1,461,446 (1,455,625 in / 5,821 out)
  • Cost: $0.71

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

I fixed the Shard 3/4 failure. It was the only failing test file in that shard: `packages/api/test/openapiRouteCoverage.test.ts`.

**Cause:** that test scans the API source for routes registered directly on the Express app. Every one must be listed in `packages/api/openapi/directRoutes.ts`. This PR's new `GET /config.js` route in `packages/api/staticUi.ts` wasn't listed, so the test failed with "GET /config.js is registered directly; list it in openapi/directRoutes.ts".

**Fix:**
- **Listed the route:** `/config.js` is now in `packages/api/openapi/directRoutes.ts` as a public route from `staticUi.ts`. A comment notes it only exists when the API serves the UI.
- **Documented it:** once listed, the spec generator also wants the route in a tag or with its own doc. I added a short System-tagged doc entry in `packages/api/openapi/routeDocsSystem.ts`, with response type `application/javascript`. I kept it to a few lines so the file stays under the 400-line lint limit.
- **Regenerated the spec:** ran `npm run gen:openapi`, which adds the `/config.js` entry to `docs/static/openapi/propr-api.yaml` and moves the route counts from 327 to 328. The generated client types didn't change.

**Checks run locally, all passing:**
- `openapiRouteCoverage.test.ts`: 16 of 16 (with `NODE_ENV=test`, as CI sets).
- `npm run gen:openapi:check`.
- `scripts/check-client-contract.ts`.
- `test/ciChangeClassification.test.mjs`.
- `tsc --noEmit` and zero-warning eslint on `packages/api`.

I didn't rerun the rest of the shard; CI will confirm that.

There are no preview images, since nothing in the UI changed.

PR: #3771
Comment by: @propr-dev[bot] (ID: 7118657360)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR implements the minimal profile with sensible separation between configuration, service composition, and UI serving. It needs a lifecycle correction before merge.

✅ Preserved default deployment — The full profile remains the default, while minimal mode explicitly selects Redis and the combined service.

✅ Protected server routes — Static UI middleware excludes API, Socket.IO, webhook, and OAuth paths and preserves runtime-config cache controls.

✅ Explicit shared-resource ownership — Inline indexing relinquishes proxy ownership, and normal shutdown orders indexing before the main worker.

The supplied checks report 34 passed, one pending, and no failures. This review used static analysis only; no commands were run.

Merge blockers

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

F1: 🔴 Coordinate shutdown with unfinished startup

  • Category: correctness

  • Required behavior: Shutdown must stop and drain every component started by the combined process, including components whose startup overlaps a termination signal.

  • Evidence: src/allInOne.ts:43–75, close() and the signal handlers; src/allInOne.ts:90–103, asynchronous component startup and handle registration.

    1. During startup, SIGTERM arrives while await startWorker(...) is unfinished. The API and daemon have registered handles, but the worker has not.
    2. The signal handler invokes close(), which immediately snapshots the currently registered handles. That shutdown sequence therefore excludes the worker.
    3. While shutdown awaits daemon or API cleanup, worker startup finishes and registers its handle. Startup never checks signalled or closing, so it continues into status maintenance and potentially inline indexing.
    4. These newly started workers are absent from the cached shutdown sequence. When that sequence completes, the signal handler calls process.exit(), interrupting their work without invoking their drain or proxy cleanup.

    The interruption window is the awaited component startup; the competing actor is the process signal handler. There is no startup cancellation or synchronization, and late handle registration cannot change the already-created steps array. The shutdown-order test checks source text and the helper test exercises a fixed list; neither covers registration during shutdown. static trace: the supplied supervisor code demonstrates this interleaving. proposed regression: defer worker startup, initiate shutdown, then resolve startup and verify that no component escapes cleanup or starts taking additional work.

  • Minimum fix: Coordinate startup and shutdown so termination prevents subsequent component starts, and any component already starting is registered and closed before shutdown completes. Add a regression covering termination during deferred startup.

Suggestions

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

S1: 🟢 Measure the running minimal stack

The documented module-import measurements usefully distinguish baseline memory from operational usage. A Docker smoke test with Redis, an authenticated dashboard, and an indexing or task run would establish the actual memory footprint and exercise component coexistence. This is a follow-up because the documentation explicitly leaves the 512 MB target unconfirmed.

S2: 🟢 Clean up rejected startup

The supervisor’s comment promises cleanup after startup failure, but its outer rejection handler logs and immediately exits without invoking registered close handles. Consider routing startup rejection through cleanup as well, particularly for callers importing startAllInOne(). This would strengthen the composable lifecycle contract beyond the demonstrated signal-overlap blocker.

Score

The implementation is focused and has substantial passing validation, but shutdown can omit components that finish starting after termination begins. That lifecycle defect prevents merge readiness.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 0s
  • Tokens: 75,844 (74,582 in / 1,262 out)
  • Cost: $0.70

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

🤖 Review by ProPR

@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 0247739

Addressed 1 AI review comment (IDs: 7119163039)

Addressed finding F1

Summary of Changes

I fixed F1: a stop signal that arrives while the all-in-one process is still starting no longer misses components or lets startup carry on. The new tests pass, typecheck is clean, lint passes on both source files, and the main regression fails if the fix is taken out. As before, I couldn't run the real combined process (no Redis or Docker here).

The fix

  • Shared coordinator: startup and shutdown now go through one coordinator, createComponentSupervisor in src/allInOneConfig.ts. Startup runs as an ordered list of stages: migrations, API, daemon, worker, PR status maintenance, then the indexing worker if enabled.
  • No new starts once shutdown begins: the coordinator checks before every stage. A signal during migrations or any component's startup starts nothing further, including status maintenance and inline indexing.
  • The component still starting gets closed: close() waits for any startup still in progress, then decides what to close. A worker that finishes starting during shutdown is closed with the rest, in the same order as before (daemon → indexing → worker → API → shared task queue).
  • Startup failures during shutdown are logged, not thrown: before, such an error reached the entry point's process.exit(1) and cut the drain short. A failure with no signal involved still fails startup as before.
  • src/allInOne.ts now feeds its startup steps through this coordinator instead of keeping its own list of handles.

Tests (test/allInOneConfig.test.ts)

  • The test the finding asks for: worker startup is held back, shutdown starts and is shown to wait, then the worker finishes. The worker is closed in order, and status maintenance and indexing never start.
  • A worker startup that fails during shutdown is logged and the API still closes.
  • A startup failure with no signal still rejects.
  • A signal before startup means nothing starts.
  • A normal startup closes everything in the usual order.
  • The source-text order check now asserts the exported SHUTDOWN_ORDER directly.

Unchanged: if a component that is still starting never finishes, shutdown waits for it; a second Ctrl-C/SIGTERM still exits immediately.

Separate issue, not fixed: if startup fails with no signal involved, the entry point still exits without closing the components that already started. That was already the case on this branch. I removed the old code comment that claimed otherwise but left the behaviour alone, since it is outside F1.

No previews, since nothing visible changed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (2 files)
    • src/allInOne.ts (+59/−56)
    • src/allInOneConfig.ts (+98/−0)
  • Low risk (1 file)
    • test/allInOneConfig.test.ts (+108/−2)

Diff size: 3 files changed, +265/−58 lines


🤖 Implementation Details

  • Model: Claude Opus 5.5 (medium)
  • Requested By: @propr-ultrafix
  • Time: 5m 21s
  • Tokens: 615,699 (605,545 in / 10,154 out)
  • Cost: $0.59
  • Subscription usage: Weekly +1%

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

I fixed F1: a stop signal that arrives while the all-in-one process is still starting no longer misses components or lets startup carry on. The new tests pass, typecheck is clean, lint passes on both source files, and the main regression fails if the fix is taken out. As before, I couldn't run the real combined process (no Redis or Docker here).

**The fix**
- **Shared coordinator:** startup and shutdown now go through one coordinator, `createComponentSupervisor` in `src/allInOneConfig.ts`. Startup runs as an ordered list of stages: migrations, API, daemon, worker, PR status maintenance, then the indexing worker if enabled.
- **No new starts once shutdown begins:** the coordinator checks before every stage. A signal during migrations or any component's startup starts nothing further, including status maintenance and inline indexing.
- **The component still starting gets closed:** `close()` waits for any startup still in progress, then decides what to close. A worker that finishes starting during shutdown is closed with the rest, in the same order as before (daemon → indexing → worker → API → shared task queue).
- **Startup failures during shutdown are logged, not thrown:** before, such an error reached the entry point's `process.exit(1)` and cut the drain short. A failure with no signal involved still fails startup as before.
- `src/allInOne.ts` now feeds its startup steps through this coordinator instead of keeping its own list of handles.

**Tests** (`test/allInOneConfig.test.ts`)
- The test the finding asks for: worker startup is held back, shutdown starts and is shown to wait, then the worker finishes. The worker is closed in order, and status maintenance and indexing never start.
- A worker startup that fails during shutdown is logged and the API still closes.
- A startup failure with no signal still rejects.
- A signal before startup means nothing starts.
- A normal startup closes everything in the usual order.
- The source-text order check now asserts the exported `SHUTDOWN_ORDER` directly.

**Unchanged:** if a component that is still starting never finishes, shutdown waits for it; a second Ctrl-C/SIGTERM still exits immediately.

**Separate issue, not fixed:** if startup fails with no signal involved, the entry point still exits without closing the components that already started. That was already the case on this branch. I removed the old code comment that claimed otherwise but left the behaviour alone, since it is outside F1.

No previews, since nothing visible changed.

PR: #3771
Comment by: @propr-ultrafix (ID: 0)
Model: Claude Opus 5.5

ProPR-Agent: claude/claude-opus-5-5
@propr-dev

propr-dev Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @propr-ultrafix

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

The PR adds an opt-in combined control plane while retaining the full profile as the default. The changes are coherent with the objective; no merge-blocking defect is demonstrated by the supplied code.

✅ Ordered shutdown — The supervisor waits for an in-flight startup, captures its eventual close handle, and drains indexing before the worker closes shared egress proxies.

✅ Static routing boundaries — UI serving excludes server-owned paths, preserves runtime configuration precedence, and returns real errors for missing file assets.

✅ Profile isolation — Both synchronous and asynchronous stack startup remove inactive-profile services before migration and startup.

Merge-ready within the reviewed scope, conditional on the remaining validation check. The authoritative status is 34 passed, one pending, and no failures. This review used static analysis only; no commands were run.

Merge blockers

No merge blockers.

Suggestions

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

S3: 🟢 Exercise the composed runtime

Add a Docker/Redis smoke test that starts the minimal profile, requests the UI and API, processes work, and terminates during startup and active processing. The new supervisor tests establish ordering with synthetic components, but cannot establish that actual components share resources safely. This is useful additional integration coverage, not a demonstrated code blocker.

S4: 🟢 Qualify the memory guidance

In docs/docs/tutorials/setup.md, qualify “Comfortable in 1 GB” as an estimate pending steady-state measurement. The documented module-import experiment supports a reduced baseline, but does not measure initialized services or active workloads. The measurement limitations are already explained; aligning the table wording would make the guidance more precise.

Score

The implementation is appropriately scoped and includes focused configuration, routing, and shutdown tests. No actionable defect was verified; live runtime behavior and memory usage remain less directly validated than the pure helpers.

Score: 8/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 42s
  • Tokens: 77,037 (76,227 in / 810 out)
  • Cost: $0.69

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 S3 S4

🤖 Review by ProPR

@propr-dev propr-dev Bot removed the ultrafix label Nov 24, 2026
@integry
integry merged commit b088bca into 3758-epic-runtime-abstraction-sc0 Nov 24, 2026
50 checks passed
@propr-dev propr-dev Bot changed the title 🔨 [3763 by Claude Opus 5.5] Slim control plane: single-process mode and UI served by API ✅❽ [3763 by Claude Opus 5.5] Slim control plane: single-process mode and UI served by API Nov 24, 2026
@propr-dev propr-dev Bot changed the title ✅❽ [3763 by Claude Opus 5.5] Slim control plane: single-process mode and UI served by API [3763 by Claude Opus 5.5] Slim control plane: single-process mode and UI served by API Nov 24, 2026
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.

1 participant