Skip to content

Release candidate - #336

Merged
Synaptic724 merged 11 commits into
prodfrom
release_candidate
Nov 18, 2026
Merged

Synaptic724 merged 11 commits into
prodfrom
release_candidate

Conversation

@Synaptic724

Copy link
Copy Markdown
Owner

No description provided.

Synaptic724 and others added 11 commits November 16, 2026 15:40
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>
Codex features2: release 0.2.8310
@Synaptic724
Synaptic724 merged commit 4a76101 into prod Nov 18, 2026
55 checks passed

This branch was successfully deployed

1 active deployment
pypitest — 021f4633 Deployed Nov 18, 2026 by Synaptic724 via RC / publish-to-TestPyPI #17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant