Repository navigation
feat: implement artifact processing supervisors - #1523
Merged
Merged
Conversation
frf12
force-pushed
the
feat/rfc-1515-supervisor
branch
from
September 9, 2026 06:00
fe39d05 to
8f8bdb2
Compare
frf12
force-pushed
the
feat/rfc-1515-supervisor
branch
from
September 9, 2026 07:34
dd87aa1 to
dec1c55
Compare
frf12
force-pushed
the
feat/rfc-1515-supervisor
branch
from
September 9, 2026 08:33
b350231 to
b5cf4f6
Compare
AlexStocks
pushed a commit
that referenced
this pull request
Nov 14, 2026
The Artifact Processing Supervisor replaced in-process APScheduler activation in #1523, which also removed the only `start_scheduler` call. The scheduler module, `BuiltinRuntime.start_scheduler`, the scheduled Source and Experience processors, the access-scoped runners the Server factory built for them, and the Scope enumeration helpers that only fed them were left without production callers. Remove that path and its tests. APScheduler stays a dependency because cron bindings still parse expressions with `CronTrigger`. `scheduler_path` on `open_builtin_runtime` and `create_server_app` is now deprecated: it is ignored and emits a DeprecationWarning. The `default_scheduler_path` helper and the `ScheduledSourceProcessor` and `ScheduledExperienceProcessor` exports are removed. In-repository callers, examples, and docs no longer pass or describe the scheduler sidecar. The enforced-mode startup test now checks the background-principal guard through the supervisor's worker security, where it applies, and separately checks that a schedule without a runnable family is rejected at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Implements the Artifact Processing Supervisor RFC in #1515, building on #1512.
Rationale for this change
Memory, Topic Memory, Experience, and Profile use separate background execution paths. A shared supervisor gives all four families durable requests, bounded scheduling, isolated Scope workers, and transactional completion so accepted work can recover after interruption.
What changes are included in this PR?
Are there any user-facing changes?
Existing databases require offline migration through
powercontext server processing-migrateplan/apply/verify. Stop old workers and pause writes and explicit triggers first. Switching supervisor mode also requires maintenance; mixed-mode rolling deployment is unsupported.Family-specific concurrency and timeout settings replace shared settings. Legacy aliases remain supported; conflicting explicit values fail startup. SQLite and embedded SeekDB require a single-host
allprocess; OceanBase supports separate API/background roles.Built-in workers require reconstructible model configuration. Workers with Server security configured also require reconstructible authorization configuration. Built-in background workers require the supported built-in Source Definitions; unsupported custom registries fail at startup. Synchronous/API roles and fully custom processing bindings retain custom registry support. Synchronous API contracts, explicit Profile requests, and Profile/Experience review requirements are preserved. Configuration and migration documentation follows the current
operate/layout with redirects from old migration URLs.How was this change tested?
Current HEAD:
2d3da2047714d77d722af4e2483a5336237dd49c. Local and real-backend checks ran directly on this revision; GitHub Actions tested its merge withmasterat4043710abc5410f17c50d7e2a11d889732fbccd9.make test: 1,983 passed, 60 optional tests skipped;make check: passed.deepseek-v4-flash-0731andtext-embedding-v4with the supplied credentials:All six runs verified persistent artifacts/candidates, custom prompts, ownership, Cursor/G acknowledgment, hybrid retrieval, and two Profile cron fires with missing/disabled Policy controls. Replays left all five recorded processing-purpose counters unchanged; explicit retrieval performs a separate recall embedding. Optional skips do not count toward required real-backend/provider acceptance. All 1,377 tracked files remained frozen during local validation.
Real-provider checks use reconstructible static-admin identity; enforced authorization ordering is covered by deterministic security regressions. Existing databases already initialized by an older failed startup retain the maintenance recovery requirement; this fix prevents unsupported registries from initializing new databases.
AI usage statement
OpenAI Codex (GPT-6) assisted with implementation, tests, documentation, and preparation of this PR.