Repository navigation
feat(D147): push-delivery seams — announce new work, replaceable conversion, no local state, per-bucket keys, pool options - #536
Conversation
…rsion, no local state Follow-up seams the UMC relaunch designs need, all generic: - New work is announced through the context's TaskQueuePort: enqueue_on records created rows while a collector is active (spine/new_work.py); run_task announces its successors after the task, and an ApiDeployment with a task_queue announces the rows a request created. Best effort; a host's janitor stays the backstop. - Replaceable conversion: conversion_routes (MIME -> Converter) on the profile and from_settings, used by the convert stage and upload admission. - Hard-forget manifests can live in a dedicated bucket (forget_manifest_bucket_name, ObjectStoreForgetManifestStore) instead of a local directory. - EngineSettings.object_store_by_bucket: a credential per bucket. - from_settings(engine_options=...) for the main engine's pool. - Docs: partition maintenance can run per database without pg_partman's background worker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
…rd compatible Codex round 1 minors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Codex review round 1 (gpt-6.1-sol, max effort)VERDICT: APPROVE No blocker or major findings. Two minor documentation inconsistencies:
Every work-row insert goes through Focused tests passed, including ledger and version-reuse tests, with the existing expected failure. PostgreSQL tests used a dedicated PG 19 Beta 3 container without Disposition (Claude)Both minors are fixed in 70a150e. The requirements page now allows scheduled |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm
Follow-up to #531 (library seams, now D147). These are the generic seams the merged UMC relaunch designs need: UMC
design/designs/task-dispatch-and-portability.md§5 and §7, and the shared-runtime design. They were requested by the orchestrator and by the UMC runtime agent. Nothing multi-tenant is added: no resolver, no Cloud Tasks adapter, no cache.Public API added
How it works and what to rely on:
processing_stateinsert in the engine goes throughspine.work_ledger.enqueue_on. That function now callsrecord_new_work(...)for an inserted row and for a backfill row promoted to steady, but only while a collector (a ContextVar) is active.pg_notifystays the only wake. With the default queue,run_taskadds one harmless extrapg_notifyper successor.Converterprotocol. The claim, lease, artifacts and completion stay in the engine's convert stage.CALL run_maintenance_proc();per database works too.Tests
test_two_deployment_contexts_pg.py(two DBs, one process), extended:convertrow is announced through its own deployment's queue;structuresuccessor is announced afterrun_task;test_engine_settings.py: the per-bucket credential choice,NullPoolviaengine_options, and the bucket-backed forget store chosen by settings.test_new_work.py: collector scope, de-duplication, and a failed announce being logged.test_selfhost_forget.py: the bucket-backed manifest store contract (idempotent append, conflict, deployment filter, tampered key).Checks
ruff, format, pyright (0), import-linter (5 kept), unit lane (3088 passed after the classification fix), the two-DB test on PG 19 Beta 3, docs checks
CI (green; one test fix: Alembic logging config disabled the logger under test in the full lane)
Codex review: round 1 APPROVE (two doc minors fixed)
I have read and agree to the RememberStack Contributor License Agreement v1.0.
🤖 Generated with Claude Code
https://claude.ai/code/session_01F9cMsQBqiW2qU2ow4zeNCm