Repository navigation
Codex features2: release 0.2.8310 - #333
Merged
Merged
Conversation
…SpellMap consumers wait for providers
extract_graph.py now hashes each source file with CRLF turned into LF, so a CRLF and an LF checkout of one commit record the same source_sha256, and src_graph_usage.md shows the matching check against the file on disk. The descriptors are not re-extracted here; one re-extraction settles any that a CRLF checkout wrote. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- One re-extraction under Context Compass 2.23.3: source_sha256 is now computed with CRLF turned into LF, so 534 descriptors written from this CRLF checkout record the hash an LF checkout of the same commit gives. - Only source_sha256 values change (1,068 lines); span hashes, review stamps and authored prose are untouched. The census is unchanged (7 unsemantic, 253 stale, 0 orphaned); the assembled graph, the generated assets and the LLM bundles check current. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…331) - New process-wide ModuleAnswerCache (crystal_analysis/module_answer_cache.py) keeps what an analysis derives about each module - resolved path, custody kind, physical facts (dependency candidates after the member probes, fingerprint, export surface), the policy roots and site-package provenance - and reuses it while the module object (held weakly), its file's mtime_ns and size, the roots, sys.path (for a module not imported) and the site-packages directory times are unchanged. Synthetic modules are never kept. CrystalAnalyzer and SitePackageCustodyStrategy consult it; a crystal records exactly what a fresh analysis records. - Benchmark, 600 binds over 150 modules (Windows, GIL off): 14.2 s -> 1.8-2.0 s; realpath calls 58,915 -> 480; find_spec calls 240,392 -> 1,746. Probe and runs in context_compass/artifacts/crystal_analysis_reuse_20261117. - Tests: 12 pins in test_module_answer_cache.py; two #327 pins moved to the reuse rule; three syntax-memo pins clear the new cache before their second analysis. Full suite with the GIL off: 16,058 passed, 33 skipped, 17 xfailed, 2 xpassed. - Docs: docstrings, src_components, src_architecture, tests_components, their indexes, graph prose (5 nodes accepted), patch lane crystal_analysis_reuse_2026_11_17 (completed), release note. The reassembled src_graph.md also takes the line-ending-neutral source hashes its descriptors gained in b25d88e, which did not reassemble it. - Notch 0.2.8304; bind guard 634 entries; build assets and LLM bundles rebuilt, both checks OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in memory (#331) - A spell whose root module's world was analysed before, with every touched module unchanged, receives a copy of the kept result (CrystalAnalysisResult.load_described_payload) instead of a walk. Worlds are kept per root after a walk with no read or parse error, never with a synthetic module, a module object that changed mid-walk, retained user sources or a synthetic/unknown root; ModuleAnswerCache bounds them at 128. - A loaded module's answers are checked by module object and import spec (importlib.reload replaces the spec); its file is no longer stat'ed on later binds (owner direction 2026-11-17). A module not imported keeps the file (mtime_ns, size) and sys.path checks. Breaking change: a loaded module's file edited without a reload keeps its earlier analysis until a reload or re-import. - A walk that still runs answers each import target once per pass and records each shared leaf once; CrystalAnalysisResult finds target membership in sets. SitePackageCustodyStrategy.site_root_signature is public so a world carrying provenance is re-checked. - Probe, 600 binds over 150 modules (Windows, GIL off): 1.15 s (0.2.8304: 1.8-2.0 s; 0.2.8303: 14.2 s). - Tests: 19 pins in test_module_answer_cache.py (world reuse, reload, edit without reload, a module not imported, sys.path, leaf dedupe, payload load, exclusions, bound); pass-dedup and 0.2.8304 stat pins moved to the reload rule. With the GIL off: crystallizer, MutationResearch, aether, spellbook and conduit suites 10,135 passed, 4 xfailed; build-asset, llm_support, workflow and cache suites 1,063 passed, 1 skipped. Full suite not yet run (MelderOps test runs were in progress on this machine). - Docs: docstrings, src_components, src_architecture, tests_components, indexes, graph prose (7 nodes accepted), patch lane crystal_world_reuse_2026_11_17 (completed), release note. Notch 0.2.8305; assets and bundles rebuilt, both checks OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ort edges kept across walks (#331) - A MutationResearch append (record_world_entry, register_spell, register_group, recompose_group) builds its own node and journal payloads once and marks the undo ring stale instead of snapshotting the whole organization. create_lane, attach, detach, join, archive and restore_network mint the pending snapshot before they change anything, so the organization they start from stays restorable; snapshot_network, network_snapshot_shas and latest_network_snapshot mint it first too (the reads now take the set lock); describe_composition mints nothing. Breaking change (release note): a restore can no longer return to the moment after one particular version among several recorded in a row; the ring keeps 64 slots (owner decisions 2026-11-17). - The root emits its persistence twin with a ResearchCompositionView - references to each structure's append-only payload part with its length - and MutationResearchCrystal materializes it on first read, equal to describe_research_composition(). Parts are never edited in place: a detach, transfer or restore installs new ones and cleanup drops them, so a twin emitted before a restore or cleanup still describes its composition. - Crystal analysis: ModuleAnswerCache keeps each import target's edge answer (path, custody kind, leaf record) under the path entry's guard and the custody policy; a new root's walk makes one lookup per shared target. DependencyViewStrategy.finalize picks ready modules from a heap (same order, O(log n) per pick). - Probe, 600 binds over 150 modules, no profiler (Windows, GIL off): with MutationResearch 2.77 s -> about 1.05 s (record_world_entry 1.37 s -> 0.03 s; node describes 360,600 -> 600; ring snapshots 600 -> 0); without it 1.19 s -> 1.03 s. - Tests: failing-first pins in test_research_set_lazy_ring.py, test_mutation_research_twin_views.py and test_module_answer_cache.py (edge answers, heap order). With the GIL off: crystallizer and MutationResearch suites 1,482 passed, 3 xfailed; full suite 16,090 passed, 33 skipped, 17 xfailed, 2 xpassed. mypy: no new error. - Graph: 23 nodes re-authored and accepted across the 12 changed files (5 of them already stale at 5311a90); census 7 unsemantic, 246 stale. Bind guard 635 entries (ResearchCompositionView). - Docs: docstrings, src_components, src_architecture, tests_components, indexes, source graph, patch lane configure_in_seconds_2026_11_17 (completed), release note (0.2.8302 sentence on per-bind freshness corrected). Notch 0.2.8306; assets and bundles rebuilt, both checks OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- __version__ 0.2.8310: the next round ten above 0.2.8306, the release rule from this release on (owner, 2026-11-17). - release_docs/0.2.8310.md: the running note finalized - an introduction naming the breaking changes, every section checked against what landed since 0.2.8300 (#274, #286, #327, #329, #331), the bind-guard count against 0.2.8300 and the rebuild line - and an empty running note for the next release. - Assets and bundles rebuilt for 0.2.8310; both checks OK. With the GIL off, the version metadata, build-asset, llm_support and workflow tests: 899 passed, 1 skipped. The full suite passed on 0.2.8306 (6486b25), whose source this release ships unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev carries only the #278 merge commit; the tree is unchanged. This brings codex_features2 up to date with dev, as the dev ruleset requires for the promotion pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
22 tasks done
Documentation build overview
25 files changed ·
|
Merged
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
Release 0.2.8310 (
release_docs/0.2.8310.md), the notches since 0.2.8300 (0.2.8301-0.2.8306):Nexus.remove_riftcloses the Rift's gate, waits for the agents inside it (bounded byprojection_refresh_gate_timeout_seconds) and raises RuntimeError naming the Rift if they outstay the wait;Nexus.cleanupdrains every Rift the same way (Task: rift_thread_safety - the Rift, its room, workstation and command system under concurrent agents #274).workstation calls now hold the gate, so a refresh waits for the reads in flight (Task: rift_thread_safety - the Rift, its room, workstation and command system under concurrent agents #274).
classifies each module once (Task: Every spell crystal re-walks its whole import graph - one crystallizer-active configure takes 11 minutes #327).
reported at meld (UnresolvedInputError) instead of failing conjure or the bind (Story: spellmap_miss_waits - a SpellMap consumer bound before its provider waits for it, as a class-annotated one does #329).
module's file edited without a reload keeps its earlier analysis (Story: crystal_analysis_reused_across_binds - a bind reuses what earlier binds learned about each module #331).
adds no undo-ring snapshot of its own (Story: crystal_analysis_reused_across_binds - a bind reuses what earlier binds learned about each module #331).
entries, the docstrings and system documents, and the rebuilt assets and LLM bundles for 0.2.8310.
From this release on, a release takes the next round ten above the current notch.
Verification
ships unchanged: 16,090 passed, 33 skipped, 17 xfailed, 2 xpassed, no failures.
tests, 899 passed, 1 skipped.
src/melder/_build_assets/_build_asset_runner.py --checkandllm_support/_builder.py --include-untracked --check: only OK lines.Known open, not in this release
A configure binding about 600 spells still spends most of its six seconds building spell crystals: a spell from a
module not analysed before walks that module's whole import world. A smaller per-bind cost also grows with the size
of the book (about 1 ms a bind at 600 spells).
🤖 Generated with Claude Code