Repository navigation
Conversation
…on, and warm worker - Replace full JSONL scans in level_statement, conductor, gate_trust, gates, site_search, agreement, and extraction_agreement with synced SQLite queries or targeted read_typed + call_memo - Add lightweight WorkStub/canonical_work_stubs for prisma_flow and flow_ledger; reuse HubContext graph in build_overview - Batch protocol lookup in gate_acts and wrap top-level read entrypoints (trust_ledger, level_statement, prisma_flow, flow_ledger, human_queue) in frozen_sync + call_memo - Decouple hub_ui.asset_version() from payload fingerprints, add AST-based per-payload payload_code_hash, and complete PAYLOAD_INPUTS - Add WarmBuilder + hidden 'factory hub worker' CLI, cap MainHub builds to 1 concurrent worker, make '--all' strictly on-demand, and render classic site.py hub lazily on visit
xserban
force-pushed
the
hub-stage1-speed
branch
from
November 30, 2026 08:02
b609c2d to
357a1cc
Compare
|
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.


Summary
Implements Stage 1 (+ Stage 1.5) of
docs/plans/2026-11-29-hub-stage1-speed.mdwith noPROJECTION_VERSIONbump and no write-path changes (JSONL underevents/remains the source of truth):level_statement,conductor,gate_trust,gates,site_search,agreement, andextraction_agreementwith synced SQLite queries or targetedread_typed+call_memo.WorkStub/canonical_work_stubsinsearch.py/dedup.pyforprisma_flowandflow_ledger(reusingmerge_worksonly for active merges); reusedHubContext.graphinbuild_overview.protocolslookup ingate_actsviabisect_left, and wrappedtrust_ledger,level_statement,prisma_flow,flow_ledger, andhuman_queueinfrozen_sync()+call_memo.entering().hub_ui.asset_version()from payload fingerprints, added AST-based per-builderpayload_code_hash, and completedPAYLOAD_INPUTSfor all registered builders.WarmBuilder+ hiddenfactory hub workerCLI, cappedMainHubbuilds tomax_concurrent_builds=1, made--allstrictly on-demand, and rendered the classicsite.pyhub lazily on visit.Checks
573 passed, 2 skippedin 121.12 sagentic-science, Stage 1): zero non-timestamp data diffs acrossprisma_flow,flow_ledger,level_statement,trust_ledger,human_queue,conductor_status, and hub payloads (shell,overview,levels,sources,learn); 5-payload build subset401.08 s -> 128.23 s(levels:130.67 s -> 5.16 s,overview:97.75 s -> 21.84 s,sources:109.74 s -> 47.94 s).ruff format --check,ruff check, andmypy --strictpassed across all 17 modified source files and 11 test files. Full test suite + Stage 1.5 tests deferred to CI on this PR.