Commit Graph

5798 Commits

Author SHA1 Message Date
Christian Gunderman 28068431d9 Simplify. 2026-04-10 17:35:15 -07:00
Your Name 70b7e66fae tweaks 2026-04-10 21:47:57 +00:00
Your Name f77aaa62a8 fix(context): make incremental GC purely node-based instead of token-based 2026-04-10 19:29:12 +00:00
Your Name ad4e391ca5 refactor(context): inline lightweight summarization logic inside rollingSummaryProcessor to break dependency on snapshotGenerator 2026-04-10 17:51:27 +00:00
Your Name d9bb3b71a4 test(context): inject IdGenerator into irMapper to restore snapshot determinism 2026-04-10 17:22:00 +00:00
Your Name 10009760b6 cleanup docs for now 2026-04-10 16:54:19 +00:00
Your Name 60e9bc8ec5 further tidying 2026-04-10 16:51:47 +00:00
Your Name abd46a8431 formatting 2026-04-10 16:20:41 +00:00
Your Name ae899acad5 refactor(context): completely purge legacy worker terminology and reorganize file layout
This commit serves as the final polish for the context architecture unification.

Key Changes:
- **Lexical Cleansing:** Swept the entire `context` module (including tests, documentation, and snapshot configurations) to replace all legacy terms ('worker', 'ContextWorker', 'StateSnapshotWorker') with their modern unified equivalents ('async pipeline', 'AsyncContextProcessor', 'StateSnapshotAsyncProcessor').
- **Registry Cleanup:** Stripped `registry.ts` of `ContextWorkerDef` maps, unifying around a single, clean processor definition registry.
- **File Reorganization:** Dismantled the monolithic `sidecar/` directory (which initially housed both engine machinery and configuration loaders).
  - `pipeline/`: Now houses the core execution engine (`orchestrator`, `inbox`, `contextWorkingBuffer`, `environment`).
  - `config/`: Now exclusively contains the dynamic JSON configuration logic (`SidecarLoader`, `profiles`, `schema`, `registry`).
2026-04-10 15:28:39 +00:00
Your Name a52ded7357 refactor(context): unify processors and workers into sync/async pipelines
This commit formally unifies the architecture of synchronous and asynchronous context modification.

Key Changes:
- **Unified Triggers:** Triggers are no longer embedded inside individual processors. Instead, they are defined on `PipelineDef` and `AsyncPipelineDef` wrappers.
- **AsyncContextProcessor:** `ContextWorker` has been renamed to `AsyncContextProcessor`. It shares the exact same functional closure pattern as its synchronous sibling: `process(args: ProcessArgs): Promise<void>`.
- **Shared Inbox State:** Both sync and async pipelines now share the exact same `ProcessArgs` interface, which provides unified access to the graph targets, the Working Buffer, and the Inbox.
- **Architecture Doc:** Drafted `docs/context-manager-async-mutations.md` documenting the future V1 Optimistic Concurrency mechanism for async graph mutations.
2026-04-10 03:06:43 +00:00
Your Name be4bee5f1a refactor(context): implement Named Processor Configuration architecture for context pipelines
This commit transitions the Context Manager to a statically-typed, functional pipeline architecture while strictly preserving dynamic hyperparameter capabilities via JSON Sidecar configs.

Key Changes:
- **Functional Processors:** Processors are now pure closure-based HOFs returning a clean `{ id, name, process }` interface, eliminating pseudo-class Object.assign hacks.
- **Named Configurations:** The `SidecarConfig` schema now validates a dictionary of named `processorOptions`.
- **Static Pipeline Wiring:** `profiles.ts` hardcodes the execution order of pipelines in TS, injecting dynamically-loaded (and pre-validated) hyperparameter overrides by looking up their named configuration identifier.
- **Deep Validation:** `schema.ts` dynamically flattens the `SchemaRegistry` using `oneOf` blocks, allowing external JSON validators (like IDEs) to natively understand and validate context hyperparameter schemas.
2026-04-10 00:53:32 +00:00
Your Name 0ebc369d2c test: restore and migrate context processor unit tests to functional HOFs
Restores the 7 core unit tests deleted to bypass compiler errors, migrates their syntax to the new functional `createXProcessor()` paradigm, and fixes the TS/ESLint parsing errors caused by my `Object.assign` use on the `ContextProcessorFn` definitions.
2026-04-09 23:37:04 +00:00
Your Name e2c3d07c84 refactor(context): migrate context wiring to TS Profiles and convert Processors to pure functional HOFs
This commit acts on the design review feedback:
1. Eliminates dynamic JSON registry instantiation for pipelines.
2. Introduces TS ContextProfiles for strongly-typed declarative wiring.
3. Converts ContextProcessors to pure functions returned by factories (HOFs) holding local state via closures.
4. Converts ContextWorkers to simple {start, stop} lifecycle objects.
5. Removes now-obsolete registry and JSON parsing overhead from Orchestrator.
2026-04-09 23:14:35 +00:00
Your Name 2a5b169179 delete old design docs 2026-04-09 19:47:56 +00:00
Your Name 17c9b4341a format 2026-04-09 19:35:05 +00:00
Your Name 68e7e93eaa cwb complete 2026-04-09 19:20:52 +00:00
Your Name 87ccf70998 cleanup continue 2026-04-09 18:21:59 +00:00
Your Name 2f8ea41aeb continue tidying 2026-04-09 18:05:55 +00:00
Your Name 264fffbe81 format and push 2026-04-09 17:44:09 +00:00
Your Name 8cbdbdac04 mock llm 2026-04-09 17:42:22 +00:00
Your Name c01ed6ff4a further tidies 2026-04-09 17:15:36 +00:00
Your Name 9bd9c0f72d next batch 2026-04-09 17:11:53 +00:00
Your Name 10ef9a6876 last minute tidies 2026-04-09 16:29:29 +00:00
Your Name 46c20c6d6e lints clean, but still need further tidies 2026-04-09 04:48:07 +00:00
Your Name 8fd439678b lints step 1 2026-04-09 03:35:12 +00:00
Your Name 28bd094965 coverage 2026-04-09 03:32:47 +00:00
Your Name 0179a140f0 further tidies 2026-04-09 02:57:42 +00:00
Your Name 1d25931026 building 2026-04-09 02:24:30 +00:00
Your Name 775b36e04a tidy names 2026-04-09 01:33:55 +00:00
Your Name f7b67ec3de complete snapshotter 2026-04-09 01:05:13 +00:00
Your Name 4a34f64efa snapshotter 2026-04-09 00:55:10 +00:00
Your Name 6e7987696f checkin 2026-04-09 00:20:48 +00:00
Your Name fd5a703684 check-in(broken) 2026-04-08 22:46:27 +00:00
Your Name aa71d592f9 decentralized nodes 2026-04-08 22:35:34 +00:00
Your Name 9b9ed0c803 closer! 2026-04-08 22:10:52 +00:00
Your Name b39b74ee09 closer! 2026-04-08 22:06:09 +00:00
Your Name 0df3521032 next batch 2026-04-08 20:58:03 +00:00
Your Name 9287159ccc lints 2026-04-08 20:44:56 +00:00
Your Name f726de12e5 building and tests green 2026-04-08 20:41:38 +00:00
Your Name 42022279bb hmm speculative 2026-04-08 20:39:17 +00:00
Your Name 57f13a196e home stretch! 2026-04-08 19:50:43 +00:00
Your Name 95a175deca initial worker pr, debugging 2026-04-08 17:24:01 +00:00
Your Name 631053bbf4 further changes 2026-04-08 04:44:11 +00:00
Your Name 84868b49f5 speculative broken 2026-04-08 04:30:17 +00:00
Your Name 60ba97e7e6 not building 2026-04-08 01:18:57 +00:00
Your Name 23fce4656d docs: formalize Linear Temporal Progression model over Variant Voting 2026-04-08 01:10:59 +00:00
Your Name 1f2ca6d0e7 docs: formalize Autonomous Buffer, Proposals, and Inbox in V2 IR blueprint 2026-04-08 00:37:42 +00:00
Your Name 0c48e5f09c docs: mark Phase 5 complete 2026-04-07 23:51:47 +00:00
Your Name ee0123ad0d refactor(context): update projector, tokenCalculator and mapper to use flat ship arrays 2026-04-07 23:49:27 +00:00
Your Name 229d570263 refactor(context): update Orchestrator and toIr to support pure functional ship mapping 2026-04-07 23:40:33 +00:00