Skip to content
Closed
Show file tree
Hide file tree
Changes from 76 commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
dd80249
feat(runtime): durable Work Ledger rebased onto current master
jasondeng1997 Oct 29, 2026
3243572
fix(migration): register the Work Ledger boolean column as TINYINT(1)
jasondeng1997 Oct 29, 2026
3026ca2
test(native): expect the new head revision after the personal-service…
jasondeng1997 Oct 29, 2026
9683d25
refactor(migration): name the Work Ledger revision v1_4_1_006
jasondeng1997 Oct 29, 2026
b311e14
feat(server): compose the durable Work Ledger into the runtime
jasondeng1997 Oct 29, 2026
02ca795
fix(runtime): keep the Work Ledger and the APScheduler supervisors ex…
jasondeng1997 Oct 29, 2026
8f74ab2
docs: describe which scheduler owns a Family in each deployment mode
jasondeng1997 Oct 29, 2026
8005d53
fix(dsh): rebuild the plugin bundle from the committed operation catalog
jasondeng1997 Oct 29, 2026
1fa2a0c
fix(config): validate a distributed deployment against its real role
jasondeng1997 Oct 29, 2026
feb9e7f
test(zcode): re-issue the bounded boundary flush instead of racing it…
jasondeng1997 Oct 30, 2026
11f4319
feat(server): serve the durable operation endpoints the docs promise
jasondeng1997 Oct 30, 2026
cf81c1a
chore(desktop): regenerate the contract types for the new operation p…
jasondeng1997 Oct 30, 2026
886a0cf
chore(desktop): qualify the bundled contract for the new operation paths
jasondeng1997 Oct 30, 2026
843aac3
Merge up/master (745ebf2e) into the Work Ledger branch
jasondeng1997 Nov 2, 2026
d9f33be
fix(persistence): finish the v1_4_1_007 renumbering after the master …
jasondeng1997 Nov 2, 2026
5fa749d
chore(desktop): qualify the merged contract for the renumbered chain
jasondeng1997 Nov 2, 2026
20bd462
fix(migrations): append the Work Ledger after the published v1_5_0_00…
jasondeng1997 Nov 4, 2026
c9934b7
fix(docker): run the migrator through the supported db-migrate plan/a…
jasondeng1997 Nov 4, 2026
719c826
fix(runtime): fence the Memory publication with the Work completion
jasondeng1997 Nov 4, 2026
33eb25e
fix(server): gate the data plane by deployment role in the factory ou…
jasondeng1997 Nov 4, 2026
ccef697
fix(runtime): keep the cron next run in the future across DST transit…
jasondeng1997 Nov 4, 2026
7512efb
fix(runtime): bound the rate limit window table in single-node installs
jasondeng1997 Nov 4, 2026
448e152
fix(runtime): wire the WorkObserver into the composed ledger
jasondeng1997 Nov 4, 2026
88baf5a
Merge up/master (1c52626d) into the Work Ledger branch
jasondeng1997 Nov 4, 2026
4e8b30a
chore(desktop): regenerate the contract artifacts for the merged OpenAPI
jasondeng1997 Nov 4, 2026
a8cb90e
chore(desktop): qualify the merged bundled contract (4e8b30aa)
jasondeng1997 Nov 4, 2026
5cfc8e1
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 4, 2026
b175d3a
test(migration): expect the appended v1_5_0_004 head
jasondeng1997 Nov 4, 2026
da48a23
fix(runtime): return the earliest future cron occurrence on transitio…
jasondeng1997 Nov 4, 2026
5a0a1f4
fix(docker): escape the migrator's shell variables from Compose
jasondeng1997 Nov 4, 2026
3c03a47
fix(runtime): pin Memory preparation to the persisted window
jasondeng1997 Nov 4, 2026
fad4d46
docs(operate): use the Server-prefixed generation model variable
jasondeng1997 Nov 4, 2026
6e7bac2
docs(desktop): keep this branch's protocol qualification records
jasondeng1997 Nov 4, 2026
3c37a15
style: apply ruff formatting to the review fixes
jasondeng1997 Nov 4, 2026
deda9e1
fix(migrations): back up the Work Ledger tables with the rest of the …
jasondeng1997 Nov 4, 2026
3df12c9
test(persistence): follow the v1_5_0_004 head in the evidence upgrade…
jasondeng1997 Nov 4, 2026
e03e4ee
docs(desktop): qualify the merged Desktop contract b4d241e6
jasondeng1997 Nov 4, 2026
b1eef2f
refactor(server): keep create_app inside the complexity budget
jasondeng1997 Nov 4, 2026
2dcc253
style: restore the formatter and end-of-file output CI enforces
jasondeng1997 Nov 4, 2026
51c3e61
fix(runtime): report rate limit maintenance failures instead of dropp…
jasondeng1997 Nov 4, 2026
294a3d9
test: satisfy the repository type gate for the new Work Ledger fixtures
jasondeng1997 Nov 4, 2026
44d6b76
test(cli): expect the Work Ledger head from the packaged migration chain
jasondeng1997 Nov 4, 2026
6c2aa7a
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 5, 2026
8ea1ae2
docs(desktop): qualify the merged contract after restoring statistics
jasondeng1997 Nov 5, 2026
3535c29
perf(migrations): declare the Work Ledger indexes inline on MySQL
jasondeng1997 Nov 5, 2026
906beae
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 5, 2026
44cc6b0
fix(review): rebuild the OpenCode bundle and close the remaining revi…
jasondeng1997 Nov 5, 2026
cd7e4be
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 5, 2026
9efb56f
fix(desktop): qualify the bundled contract after the Operations paths
jasondeng1997 Nov 5, 2026
89e8170
docs(desktop): record the clean-tree qualification run
jasondeng1997 Nov 5, 2026
2101fe8
test(work): keep the distributed authorizer check type-checkable
jasondeng1997 Nov 5, 2026
15a75c3
ci: raise the two deadlines the v1_5_0_004 chain outgrew
jasondeng1997 Nov 6, 2026
73fb088
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 6, 2026
9da3a20
fix(gateway): carry the license header until #2504 lands
jasondeng1997 Nov 6, 2026
95e1626
fix(tests): treat ESRCH as a vanished process in release gate probe
jasondeng1997 Nov 6, 2026
8464c73
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 6, 2026
0658894
refactor(migrations): renumber the Work Ledger revision to v1_5_0_005
jasondeng1997 Nov 9, 2026
6836557
Merge remote-tracking branch 'origin/master' into rebase/onto-master
jasondeng1997 Nov 9, 2026
2cb8da3
fix(migrations): chain the Work Ledger after v1_5_0_004
jasondeng1997 Nov 9, 2026
182106b
fix(desktop,runtime): requalify the merged contract and renew schedul…
jasondeng1997 Nov 9, 2026
b9589ab
fix(runtime): publish ledger Memory under the worker's background pri…
jasondeng1997 Nov 9, 2026
7d716b6
Merge remote-tracking branch 'up/master' into rebase/onto-master
jasondeng1997 Nov 9, 2026
253ee2a
chore(desktop): qualify the merged 1.5.1 Work Ledger contract
jasondeng1997 Nov 9, 2026
c8b62cf
test(runtime): narrow the memory publication context for ty
jasondeng1997 Nov 9, 2026
fb2a984
fix(runtime): wait for the first cron boundary before Profile discovery
jasondeng1997 Nov 9, 2026
0bb9eda
fix(runtime): keep existing Profile cron configurations loadable
jasondeng1997 Nov 9, 2026
c9dd22b
fix(persistence): keep a repeated cancellation idempotent
jasondeng1997 Nov 9, 2026
bfbd2e9
fix(website): pin the generator to the griffe major fumapy imports
jasondeng1997 Nov 9, 2026
ed3accd
chore(release): declare the persistence digest for the cancellation fix
jasondeng1997 Nov 9, 2026
e767946
test(runtime): pin the idempotent cancel replay at the transport
jasondeng1997 Nov 9, 2026
0a478b2
fix(runtime): accept the legacy cron marker without relaxing validation
jasondeng1997 Nov 9, 2026
5a8dd23
chore(ci): pin the standalone Connector type checker to the locked ty
jasondeng1997 Nov 9, 2026
a25b6ad
fix(e2e): pin the ACP SDK Harbor's runner venv installs unpinned
jasondeng1997 Nov 9, 2026
7db9ebe
test(e2e): require the resolved pip index on every step that installs…
jasondeng1997 Nov 9, 2026
3eaccdd
test(inference): wait for the spawned worker's exit instead of racing it
jasondeng1997 Nov 9, 2026
9c43653
fix(e2e): pin the runner venv to the last ACP SDK release the runner …
jasondeng1997 Nov 10, 2026
8bc8aff
fix(runtime): retire ledger snapshots superseded by any racing cursor…
jasondeng1997 Nov 11, 2026
50a3b61
fix(runtime): recheck publication authorization in the Experience and…
jasondeng1997 Nov 11, 2026
6a889ff
fix(runtime): stop claiming ledger work while the membership is incom…
jasondeng1997 Nov 11, 2026
8099c4c
Merge up/master (d64381bf) into the Work Ledger branch
jasondeng1997 Nov 11, 2026
638ec46
refactor(runtime): separate the ledger background identity from its p…
jasondeng1997 Nov 11, 2026
95e0a35
test(dsh): declare the Memory contract on the synthetic setup fixture…
jasondeng1997 Nov 11, 2026
8faa834
test(dsh): declare the Memory contract in the explicit-Web doctor fix…
jasondeng1997 Nov 12, 2026
88c86f6
Merge up/master (fd9f1682b) into the Work Ledger branch
jasondeng1997 Nov 12, 2026
96d6db3
test(inference): make the spawned Codex worker exit deterministically
jasondeng1997 Nov 12, 2026
eb6a9dc
test(gateway): stop reusing half-closed keep-alive connections in aut…
jasondeng1997 Nov 12, 2026
d29754c
test(e2e): reserve the source manager port immediately before spawnin…
jasondeng1997 Nov 13, 2026
8d9d107
Merge up/master (1cb0e75db) into the Work Ledger branch
jasondeng1997 Nov 13, 2026
c441634
chore(desktop): qualify the merged Work Ledger / task stop reason con…
jasondeng1997 Nov 13, 2026
c08c8c6
fix(runtime): recheck Scope contribution inside the Profile publicati…
jasondeng1997 Nov 13, 2026
db2c2cf
docs(desktop): pin the merged-contract qualification anchor
jasondeng1997 Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,42 @@ POWERCONTEXT_SERVER_DATABASE_KIND=sqlite
# The default database is powercontext; set test before upgrading an existing seekdb deployment.
# POWERCONTEXT_SERVER_DATABASE_DATABASE=test

# Deployment and durable work -------------------------------------------------
# Local installs run every role in one process. Distributed mode requires OceanBase and one role per process.
POWERCONTEXT_SERVER_DEPLOYMENT_MODE=single_node
POWERCONTEXT_SERVER_DEPLOYMENT_ROLE=all
POWERCONTEXT_SERVER_DEPLOYMENT_ID=local
POWERCONTEXT_SERVER_DEPLOYMENT_BEHAVIOR_REVISION=default

# Scheduler and member leases use database time. Renewal must stay within the validated lease ratios.
POWERCONTEXT_SERVER_COORDINATION_SCHEDULER_LEASE_SECONDS=30
POWERCONTEXT_SERVER_COORDINATION_SCHEDULER_RENEW_SECONDS=10
POWERCONTEXT_SERVER_COORDINATION_SCAN_PAGE_SIZE=100
POWERCONTEXT_SERVER_COORDINATION_MEMBER_TTL_SECONDS=30
POWERCONTEXT_SERVER_COORDINATION_MEMBER_HEARTBEAT_SECONDS=10
POWERCONTEXT_SERVER_COORDINATION_EMIT_PAYLOAD_VERSION=1

POWERCONTEXT_SERVER_WORKER_CONCURRENCY=4
POWERCONTEXT_SERVER_WORKER_LEASE_SECONDS=120
POWERCONTEXT_SERVER_WORKER_HEARTBEAT_SECONDS=30
POWERCONTEXT_SERVER_WORKER_SHUTDOWN_GRACE_SECONDS=90
POWERCONTEXT_SERVER_WORKER_MAX_ATTEMPTS=5
POWERCONTEXT_SERVER_WORKER_RETRY_BASE_SECONDS=2
POWERCONTEXT_SERVER_WORKER_RETRY_MAX_SECONDS=300
POWERCONTEXT_SERVER_WORKER_POLL_SECONDS=1

POWERCONTEXT_SERVER_OPERATIONS_DEFAULT_WAIT_SECONDS=10
POWERCONTEXT_SERVER_OPERATIONS_MAXIMUM_WAIT_SECONDS=30
POWERCONTEXT_SERVER_OPERATIONS_POLL_SECONDS=0.2
POWERCONTEXT_SERVER_OPERATIONS_RETENTION_DAYS=30
POWERCONTEXT_SERVER_OPERATIONS_CLEANUP_BATCH_SIZE=500
POWERCONTEXT_SERVER_OPERATIONS_CLEANUP_INTERVAL_SECONDS=3600

# Shared OceanBase fixed-window limiting is optional and disabled by default.
POWERCONTEXT_SERVER_RATE_LIMIT_ENABLED=false
POWERCONTEXT_SERVER_RATE_LIMIT_REQUESTS=120
POWERCONTEXT_SERVER_RATE_LIMIT_WINDOW_SECONDS=60

# Runtime ---------------------------------------------------------------------
POWERCONTEXT_SERVER_RUNTIME_SOURCE_WINDOW_LIMIT=100
# Maximum sum of explicit assembly section limits; per-family limits still apply.
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/e2e-harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,11 @@ jobs:
-o faulthandler_timeout=180 --durations=0 \
-k oceanbase --junitxml=.powercontext/recall-effort-ci/full-server-client-exit.xml

# The five registered-chain scenarios share one deadline and each applies
# the full Server migration chain. With the chain extending through
# v1_5_0_004 the two heaviest scenarios measured 164s and 155s on
# 2026-11-05 runners (plus a 180s teardown stall), so 600s left no
# margin; match the 900s scale of the single-scenario groups above.
- name: Maintain the registered Server chain on real OceanBase without skips
env:
POWERCONTEXT_TEST_MIGRATION_OCEANBASE_URL: >-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,9 @@ jobs:
tests/claude_code_plugin/test_bootstrap.py
tests/codex_plugin/test_bootstrap.py

- name: Verify the packaged migration CLI on Windows
run: uv run --locked --no-sync pytest -q tests/test_server_migration_cli.py

- name: Verify unsupported native indexing is skipped on Windows
run: >-
uv run --locked --no-sync pytest -q
Expand Down
2 changes: 2 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ header:
- 'src/powercontext/server/dashboard/static/vendor/**'
- '.gitattributes'
- '**/*.service.in'
# license-eye cannot determine the comment style of Alembic's Mako template.
- 'src/powercontext/builtin/persistence/migrations/script.py.mako'
- '**/*.jsonl'
# license-eye cannot determine the comment style of patch files.
- '**/*.patch'
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,13 @@ topic-memory-r8-acceptance: ## Run bounded R8 hermetic and available real produc
harness-sync: ## Install the Bub replay harness environment.
@uv sync --project e2e/bub --locked

# The standalone Connector check runs outside the project, so pin the type checker to
# the version the repository itself is locked to; an unpinned resolve picks up new
# rules that the repository gate has not adopted yet and the two disagree.
OPENDAL_TEST_RUN = uv run --isolated --no-project --python 3.12 \
--with-editable ".[server]" \
--with-editable ./integrations/opendal \
--with pytest --with ruff --with ty
--with pytest --with ruff --with "ty==0.0.56"

.PHONY: opendal-test
opendal-test: ## Validate the standalone OpenDAL Connector against this checkout.
Expand Down
Loading
Loading