Skip to content

Rename assured context operations - #390

Merged
fazpu merged 1 commit into
mainfrom
feat/rename-context-operations
Sep 7, 2026
Merged

fazpu merged 1 commit into
mainfrom
feat/rename-context-operations

Conversation

@fazpu

@fazpu fazpu commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Rename the three assured retrieval operations as one clean pre-customer break:

  • testimony_context → claims_and_sources_context
  • fact_context → facts_context
  • answer_context → combined_context

This removes the old names rather than adding aliases. combined_context now returns ContextBundle/v2 with claims_and_sources and facts children, and the convenience CLI flag is --combined.

The change is reflected across the registry and executor, HTTP/OpenAPI response contract, Python SDK, generated MCP descriptors, CLI/setup skill text, request metering, query-space manifest, LoCoMo/BEAM harnesses, Full-v26 protocol pins, README, website, and binding design corpus. Existing databases move forward through p9_28_0049, which renames enum values and reconciles stored descriptors; its downgrade restores the old catalog.

Important decisions

  • Retrieval algorithms, authority boundaries, ranking, parameters, and bounds do not change.
  • No compatibility methods, duplicate MCP tools, aliases, or deprecated CLI flags remain because there are no external consumers to preserve.
  • The response wrapper advances to ContextBundle/v2 because retaining a public testimony child would keep the confusing vocabulary inside the endpoint.
  • The query-space manifest hash and LoCoMo identities roll atomically; current LoCoMo variants are RS-LoCoMo-Full-v26*.
  • Historical migrations, reviews, decisions, and completed benchmark analyses keep the identifiers that actually existed at those revisions.

Analysis was recorded first in plan/analysis/context_operation_model_analysis.md; D114 and the binding retrieval/query-space/schema/benchmark designs record the accepted contract.

Sources inspected

  • D49/D87/D97/D98 contracts in decisions.md
  • plan/designs/retrieval_design.md
  • plan/designs/open_query_space_design.md
  • plan/designs/postgres_schema_design.md
  • Registry, executor, query engine, HTTP, SDK, CLI, MCP descriptor rendering, manifest generator, metering, and LoCoMo protocol code
  • Current README and remember.dev documentation surfaces

Verification

  • Final rebase check: branch is based on current origin/main (8fad369d)
  • Antigravity senior-maintainer review using the requested 180-minute timeout: no blocking findings; both concrete low-severity suggestions were applied
  • uv run ruff check src benchmarks
  • uv run ruff format --check src benchmarks
  • uv run pyright src benchmarks — 0 errors
  • uv run lint-imports — 5 contracts kept
  • uv run python scripts/check_release_contract.py
  • uv run python scripts/check_docs_truth.py
  • npm run typecheck and npm run build in website/
  • Full Python suite excluding one unrelated macOS MIME assertion: 1,689 passed, 757 skipped, 1 deselected
  • The deselected .md MIME test fails identically on untouched origin/main; this PR does not modify that path
  • Post-rebase contract selection: 131 passed, 13 skipped

The new real-PostgreSQL migration round-trip test is present but skipped locally because this worktree has no REMEMBERSTACK_DATABASE_URL; CI supplies the PostgreSQL integration environment.

Limitations and follow-up

  • This is intentionally breaking. Callers must move to the new names and ContextBundle/v2 in one upgrade.
  • No paid LoCoMo run is part of this PR; Full-v26 records the required protocol boundary for the next run.

Contributor agreement

Signing on behalf of a legal entity (leave blank if accepting individually):

@fazpu
fazpu force-pushed the feat/rename-context-operations branch from 2ef08ca to 936ec54 Compare September 7, 2026 14:47
@fazpu
fazpu enabled auto-merge (squash) September 7, 2026 14:48
@fazpu
fazpu merged commit b8996b5 into main Sep 7, 2026
15 checks passed
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