-
Notifications
You must be signed in to change notification settings - Fork 259
refactor(core): add shared runtime orchestration #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
497 commits
Select commit
Hold shift + click to select a range
10ae74d
wip: type project index job request handoff
phernandez ba4bfad
wip: type indexing job request handoffs
phernandez aff3e2f
wip: type note file job request handoffs
phernandez 11a2962
wip: add runtime job payload enqueue helper
phernandez 847f029
wip: keep accepted note enqueue payloads typed
phernandez 1498f2a
wip: add accepted note mutation runner
phernandez 5b47720
wip: export accepted note mutation contracts
phernandez 073d790
wip: add event indexing orchestration package
phernandez 0e8f07d
wip: add local filesystem storage event adapter
phernandez 5971265
wip: add opt-in watcher event index path
phernandez 38dc020
wip: add inline storage event processor
phernandez c76a66e
wip: add concrete local event index runtime
phernandez f8f82dd
wip: wire opt-in watcher event index runtime
phernandez e653c14
wip: expose project index orchestration surface
phernandez 40ab3ad
wip: move local watch event orchestration into index
phernandez 79c9469
wip: expose local event index runtime surface
phernandez c700e44
wip: expose storage event source contracts from index
phernandez d1e63cf
wip: add local project index fanout adapters
phernandez ff60087
wip: add inline local project batch enqueuer
phernandez 50c9305
wip: add project-index helper recipes
phernandez 31565a6
wip: compose local project index runtime factory
phernandez e1da9bd
wip: route opt-in startup sync through project index
phernandez dd09b47
wip: remove sync service dependency from index runtimes
phernandez ba91ac3
wip: add storage event source runner
phernandez a4eff8e
wip: make event indexing the startup default
phernandez e7df3e6
wip: decouple file indexer from sync service
phernandez 23a0319
wip: extract repository relation resolver
phernandez a4a260a
wip: add sync-free project runtime bundle
phernandez 53286c7
wip: route sync-file through event indexer
phernandez 728ee02
wip: route project sync through event indexer
phernandez 6c689c9
wip: add storage event bucket context runner
phernandez 248efb1
wip: default local indexing to core event runtime
phernandez 812dbbf
wip: move project index maintenance into core coordinator
phernandez 1f9adf8
wip: resolve local project index relations
phernandez cbd5170
wip: move directory delete acceptance into core
phernandez b81cdc0
wip: add repository storage event project resolver
phernandez d10a3d5
wip: add generic storage event operation processor
phernandez 0f72272
wip: share repository external delete adapter
phernandez d6d9663
wip: add shared gateway service facades
phernandez 384ef0f
wip: simplify gateway behavior contracts
phernandez 7885fab
wip: simplify accepted note repository contracts
phernandez a0e3b41
wip: simplify note content repository contracts
phernandez 4f198af
wip: simplify note content read repair contracts
phernandez 789db43
wip: simplify project delete repository provider
phernandez 30a43ca
wip: simplify index metadata source contracts
phernandez 8cdbe09
wip: simplify forward reference resolver contract
phernandez 4b7ac43
wip: simplify local index dependency provider
phernandez 4673fc5
wip: simplify project delete session provider
phernandez 4c6856c
wip: simplify orphan cleanup session provider
phernandez 48ea838
wip: simplify note materialization providers
phernandez c3df529
wip: simplify note content batch providers
phernandez 0928b52
wip: simplify index progress providers
phernandez 07d1632
wip: align local index markdown targets
phernandez 8dc39c8
wip: align markdown suffix indexing
phernandez b4c8924
wip: filter project index observed markdown
phernandez cda76ec
wip: report local event index failures
phernandez 6c71e30
wip: require explicit inline event recorders
phernandez 5a5e8b9
wip: require explicit storage resolution loggers
phernandez c88da2a
wip: make project index workflow hooks optional
phernandez 9ea9469
wip: order local event deletes before creates
phernandez ce5e781
wip: repair local event-index relations
phernandez f7afcff
wip: index regular files through event runtime
phernandez 2a1b44f
wip: report inline project index batch outcomes
phernandez b15158d
wip: route local project index through batch runner
phernandez 280c969
wip: preserve force-full project batch indexing
phernandez 6d922b4
wip: align project move maintenance with indexed note state
phernandez fd44216
wip: align project move permalink maintenance
phernandez cd06598
wip: repair moved entity search rows in project index
phernandez bcc4765
wip: preserve local event index moves
phernandez 25ee730
wip: collapse rapid event index moves
phernandez ce346e3
wip: skip local directory rename events
phernandez 66523b9
wip: coalesce local event index changes
phernandez 21a8001
wip: seed event index tests via project index
phernandez faeb653
wip: cover local atomic delete events
phernandez a8864fc
wip: cover event index deleted project skip
phernandez eebc664
wip: cover event index update batches
phernandez 0806fdc
wip: cover event index delete add updates
phernandez c6436eb
wip: delete regular files via event index
phernandez c85f55a
wip: handle regular file replacement moves
phernandez cedb554
wip: apply ignore rules to local event index
phernandez 4a35463
wip: repair event delete relation search rows
phernandez 982eeb0
wip: cover regular file relation event parity
phernandez 388fd32
wip: cover directory delete project index parity
phernandez 81acd32
wip: cover project index permalink conflict parity
phernandez e107d1b
wip: cover project index frontmatter parity
phernandez 744b095
wip: cover project index relation parity
phernandez ec1aa2d
wip: cover project index duplicate relation parity
phernandez 2f12580
wip: cover project index hidden file parity
phernandez ca1213c
wip: cover project index timestamp parity
phernandez 74c6a68
wip: cover project index regular file parity
phernandez ddce601
wip: cover project index changed file parity
phernandez 6e8281f
wip: preserve indexing when semantic deps are missing
phernandez 6ab7085
wip: filter local event editor artifacts
phernandez 6f10bd6
wip: cover local event index stress batches
phernandez c89731a
wip: cover project index wikilink stability
phernandez 786e2fc
wip: detect project index move over existing path
phernandez 550ad25
wip: cover project index new permalink conflict
phernandez f42cf62
wip: cover project index thematic break parity
phernandez e7434ce
wip: cover project index path conflict parity
phernandez c28b8ca
wip: cover local event atomic relation parity
phernandez 5a99c57
wip: tighten local index dependency contracts
phernandez fcd2f6a
wip: cover project index category parity
phernandez 2e4cd6b
wip: add sync oracle just recipe
phernandez 4db47ab
wip: skip unreadable local index paths
phernandez 5ab3bb7
wip: skip vanished local index files
phernandez 4158a60
wip: keep local scan results on walk errors
phernandez 1d1d436
wip: skip outside local watch paths
phernandez 8b22a4b
wip: skip unreadable local watch paths
phernandez 4a1c29c
wip: cover rapid atomic local watch writes
phernandez 5264199
wip: skip empty event-index watch batches
phernandez 60586da
wip: treat vanished index metadata as missing
phernandez b6eb411
wip: treat vanished current index files as missing
phernandez d973cb3
wip: add storage event test recipe
phernandez 1e4d994
wip: skip empty storage event buckets
phernandez c244acb
wip: add local watch storage event source
phernandez ea135b1
wip: move local watch request construction into index
phernandez 3da40f1
wip: move local watch status planning into index
phernandez 10886d8
wip: route local watch changes through index
phernandez c5feeec
wip: move local watch filtering into index
phernandez 418265e
wip: share local watch project containment
phernandez 7a62aa2
wip: remove sync tests from event index flow
phernandez a86d33b
wip: make event indexing the active runtime path
phernandez db3b2c6
Remove cloud-only snapshot history runtime contracts
phernandez 3b8049f
Fix core Postgres indexing test harness
phernandez c513395
chore(core): split checks from tests
phernandez c329b04
refactor: replace generic task scheduler with typed schedulers
phernandez 252ba51
refactor(core): split project index observer dep
phernandez 9cf49d2
refactor(core): add project index route command
phernandez 4eaf8bb
refactor(core): add project delete acceptance service
phernandez da6d4a6
refactor(core): add project index workflow enqueue runner
phernandez d0df1c0
refactor(core): rename shared gateway package to cloud
phernandez 1de2636
refactor(core): add default accepted note repositories
phernandez 4beaa64
test(core): cover note content read payloads
phernandez 6bd1119
refactor(api): prefer note content reads in v2 routes
phernandez e8039a4
refactor(api): accept note creates through note content
phernandez 4d75386
refactor(api): route note writes through accepted content
phernandez 3d29d53
refactor(api): expose note content route status
phernandez f641023
refactor(api): share note content read repair
phernandez e1d66aa
refactor(api): return accepted status for note mutations
phernandez 1af22a3
refactor(api): route directory deletes through runtime service
phernandez bf00497
fix(index): keep accepted note search backend-safe
phernandez 8c9295c
fix: address runtime review findings
phernandez f5fb22c
fix(core): address project index review bugs
phernandez 771dbb5
fix(core): surface note materialization conflicts
phernandez 609dacf
fix(core): support runtime RSS on Windows
phernandez 8334d83
fix(core): return indexed accepted note responses
phernandez 30fbc6f
test(core): cover accepted note external metadata refresh
phernandez 326d47c
fix(core): reuse local note freshener dependencies
phernandez 8d68a15
fix(core): stabilize local note materialization on Windows
phernandez 83de1af
test(core): assert portable note paths and newlines
phernandez ab0822d
fix(core): address PR feedback regressions
phernandez 0a18979
fix(core): run relation resolution and embedding on both note ingress…
phernandez 96845b0
test(core): rename duplicate job-payload test modules
phernandez cae7a4b
fix(core): reject local note creates over existing unindexed files
phernandez 5373db8
fix(core): apply create storage check to PUT-as-create branch
phernandez cf81acd
fix(core): honor legacy sync_changes opt-out after index_changes rename
phernandez 7ecb672
perf(core): coalesce per-write relation resolution into one offline pass
phernandez 696d71b
perf(core): defer local note materialization off the accept path
phernandez 74c10bf
fix(core): run local Postgres startup migrations under uvloop
phernandez 720f6b0
perf(core): bound local note materialization with a worker pool
phernandez 9494f3f
fix(core): pool connections for local Postgres instead of NullPool
phernandez aeaaaa6
fix(core): seed a default project for fresh local Postgres
phernandez 34cea31
perf(core): make SQLite PRAGMAs tunable (synchronous/mmap/checkpoint/…
phernandez 934ac6f
test(core): skip uvloop-only migration_loop test on Windows
phernandez 9f33eea
fix(core): initialize local Postgres so the seeded default gets a DB row
phernandez adda3b1
fix(core): initialize local Postgres on the sync CLI path too
phernandez f496b22
fix(core): create local Postgres project directories
phernandez 5ec8df2
fix(core): preserve cloud-mode init skip via skip_local_initialization
phernandez 56444e0
fix(core): migrate legacy sync_delay debounce setting
phernandez 9c635be
fix(core): mark all storage write failures as failed
phernandez 4b687e7
fix(api): skip local file watching in cloud mode
phernandez d1f255a
fix(api): release resource DB session before file reads
phernandez 6009070
fix(core): prune ignored dirs and skip symlinks in project scans
phernandez 2886fab
fix(cli): honor search-only reindex (skip embeddings)
phernandez 52ec66f
fix(sync): route nested watch events to the deepest project
phernandez 1394bfc
fix(core): report guarded directory-delete skips as failures
phernandez e29a92d
fix(core): re-run relation resolution for writes during a pass
phernandez 936d02b
fix(core): drain pending materializations before one-shot client exit
phernandez 39a3ac2
fix(core): resolve relations after deferred index, not just on enqueue
phernandez 9d09d23
fix(core): abort project scan when the root is unreadable
phernandez 9e57636
fix(core): enable SQLite FK cascades for directory deletes
phernandez 6cadc84
fix(core): clean up files orphaned by stale materializations
phernandez 7feb3cd
fix(core): reject moves onto existing unindexed destination files
phernandez 9481248
fix(cli): avoid double embedding on full reindex
phernandez cc5b391
Merge remote-tracking branch 'origin/main' into codex/repository-expl…
phernandez 1b79318
test(core): satisfy typecheck after merge from main
phernandez f742ad1
fix(core): verified pre-merge bug fixes from paired-PR review
phernandez 4372640
fix(core): treat post-write cleanup enqueue as reported, non-fatal
phernandez 9f1a816
feat(core): injectable actor resolver for note-content mutations
phernandez 0a056e0
refactor(core): split runtime contracts and project index workflow in…
phernandez ce43b05
test(core): align rename-over-existing-path and startup-index tests w…
phernandez 0d39222
refactor(core): remove tenant and queue-transport identity from share…
phernandez 3d9c063
refactor(core): remove runtime, indexing, and index barrel exports
phernandez 6470ddf
fix(cli): drain scheduled background tasks before one-shot shutdown
phernandez 46f807a
feat(runtime): accept web_v2 as a note object metadata source
phernandez 40132a0
Merge remote-tracking branch 'origin/main' into codex/repository-expl…
phernandez c5d2c58
fix(api): drain queued materializations before API shutdown
phernandez 0853f6b
fix(core): carry unobservable files through scan delete reconciliation
phernandez cf312a4
fix(core): don't delete a note's only file on case-only rename
phernandez 816492c
fix(core): reject path traversal and Windows-absolute note move desti…
phernandez fe490e1
fix(core): guard accepted note writes with optimistic concurrency
phernandez 8699e03
fix(sync): restore scan-path indexing parity and bound query fan-out
phernandez ac9a1ae
fix(sync): keep directory delete cleaning past a per-file IO error
phernandez 0e64375
fix(sync): isolate watcher batch failures and guard shutdown drain
phernandez cbbb79b
fix(core): rescue legacy sync env vars and isolate FTS errors on shar…
phernandez 683513f
fix(core): align tests with P0/concurrency guards and drop dead imports
phernandez ecad78d
Merge remote-tracking branch 'origin/main' into codex/repository-expl…
phernandez be17126
fix(core): version-guard reconcile and materialization publish writes
phernandez d6d1b63
refactor(indexing): collapse single-impl SessionProvider seams
phernandez 3fade3b
refactor(indexing): push clock impl detail out of the interface
phernandez c785278
refactor(indexing): remove unused VectorSyncProgressReporter seam
phernandez 401f4ee
refactor(core): remove unused ProjectIndexMetadataReporter seam
phernandez ca8e3b9
refactor(core): remove unused storage-event source runtime scaffolding
phernandez 42c0872
refactor(core): collapse ForwardReferenceLinkResolver to the default …
phernandez a894596
refactor(core): push logger Protocols down to loguru.Logger
phernandez 133953f
refactor(core): collapse AcceptedNoteDeleteSession to AsyncSession
phernandez 0ab80d5
refactor(core): collapse valueless LocalProjectIndexRuntimeProvider f…
phernandez f8a2a0f
refactor(core): collapse project-index batch-store Protocols to concrete
phernandez 699c748
fix(sync): re-read file at batch reconcile to avoid reverting newer a…
phernandez b75f65c
feat(sync): recover materializations stuck in writing/pending on startup
phernandez 4db24af
fix(sync): recover a crash between file write and publish instead of …
phernandez dd349cc
fix(core): restore LocalProjectIndexRuntimeProvider — it is a real de…
phernandez 4af69aa
test: write fixture files as bytes to survive Windows newline transla…
phernandez 47f27a6
feat(indexing): flag superseded content in observed-object live updates
phernandez 6114f61
chore: remove forked src-old and tests-old sync trees
phernandez 17461d2
fix(mcp): drain queued materializations at MCP server shutdown
phernandez 3db64d0
fix(cli): recover stuck materializations before the reindex scan
phernandez d39b9ff
fix(core): re-drive note materializations stuck in 'failed'
phernandez b1b27b1
fix(core): serialize materializations for the same note on one worker
phernandez fafa6bf
style(core): apply ruff format to materialization-touched files
phernandez 85ee480
fix(core): treat raw FileNotFoundError as missing in run_index_file
phernandez d9ec20b
fix(core): reject Windows drive-relative and rooted move destinations
phernandez c6202bc
fix(core): re-check project is_active inside the hard-delete transaction
phernandez 9e5fc9b
fix(core): guard non-note project files with the entity checksum on d…
phernandez 1886b2d
fix(core): log and savepoint-isolate relation resolve failures
phernandez 60ed260
fix(api): serialize directory-delete errors as structured path/error …
phernandez 8d27c31
fix(api): reindex surviving relation sources after directory delete
phernandez 44d2343
fix(api): single-flight local project index runs per project
phernandez 192f115
style: ruff format touched guard fixes
phernandez 7ee7889
feat(api): reject stale note PUTs via base-checksum precondition
phernandez 25337f9
fix(sync): tolerate concurrently deleted entities in moved-entity sea…
phernandez 0a93d07
fix(sync): carry indexed files under unreadable directories through s…
phernandez 67aac01
fix(sync): re-verify planned deletes so concurrent writes survive sca…
phernandez d2bbb05
fix(sync): stop scan move batches deleting concurrently created desti…
phernandez f13ad97
fix(sync): defer moved-file frontmatter writes until the move batch c…
phernandez 7d37f9e
style: ruff format superseded-content test additions
phernandez c9980a6
fix(api): rerun coalesced index request even when the in-flight run f…
phernandez 68c5969
Merge remote-tracking branch 'origin/main' into codex/repository-expl…
phernandez 53863eb
test: satisfy stricter ty protocol inference after dev-deps refresh
phernandez 96533ef
fix(sync): only a confirmed missing file may satisfy the delete probe
phernandez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.