Skip to content

Productize section heading contextualization - #501

Open
GiulioDER wants to merge 1 commit into
masterfrom
codex/heading-contextualization-latest
Open

Productize section heading contextualization#501
GiulioDER wants to merge 1 commit into
masterfrom
codex/heading-contextualization-latest

Conversation

@GiulioDER

Copy link
Copy Markdown
Owner

Summary

Add consistent selection of the existing �ge-small-context-section-v1 profile across CLI, MCP, and generation paths.

The implementation preserves raw evidence text, chunk identity, offsets, provenance, trust metadata, and citations while adding deterministic heading context only to embedding passages. Profile identity and cache keys prevent stale or aliased vectors.

Included

  • Shared RECALL_EMBED_PROFILE resolution through the profile registry
  • Markdown, Markdown variant, and MDX heading hierarchy extraction
  • Section contextual passage construction and fingerprint isolation
  • CLI and MCP wiring
  • Incremental indexing and cache isolation tests
  • Operator documentation and preregistration migration notes

Validation

The focused local suite passed 237 tests with 53 skipped on 2026-08-24. Five PostgreSQL lifecycle tests were unavailable because the configured local test database endpoint was not running. VPS2 profile preflight passed, and the shadow regeneration is running in an isolated staging database.

The default embedding profile remains unchanged. Production promotion still requires independent calibration, parity checks, and the preregistered retrieval evaluation.

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.

2 participants