Skip to content

refactor: remove obsolete alpha compatibility paths - #1725

Merged
JAORMX merged 12 commits into
mainfrom
cleanup/alpha-compat-cleanup-20260921
Sep 23, 2026
Merged

JAORMX merged 12 commits into
mainfrom
cleanup/alpha-compat-cleanup-20260921

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Completes the approved alpha compatibility cleanup across protocol, server, storage adapters, clients, TypeScript SDK, generated contracts, API baselines, tests, and living documentation. Obsolete pre-release APIs and specialized lifecycle paths are removed rather than restored.

This is separate from process fix #1720.

What changed

  • Removed obsolete compatibility RPCs, HTTP routes, payload fields, aliases, migration APIs, and TUI optimization/migration surfaces from the canonical contracts and SDK.
  • Regenerated Go and TypeScript protocol outputs and refreshed engine/API reports and user-facing references around the reduced canonical surface.
  • Simplified session, event, retry, token-accounting, memory, JSONL, Redis, and remote-driver behavior to current-format operations.
  • Kept optional remote-driver operations capability-gated. Ownerless session creation can fall back to canonical Save; ownership-required composition rejects drivers that cannot provide atomic creation.
  • Added or strengthened current-format conformance, driver-negotiation, retained-history, SDK, and negative-oracle coverage.

Session snapshot loading

Snapshots written by the previous current writer remain readable. Snapshot decoding uses standard Go JSON behavior: canonical fields are decoded and validated, unknown fields are ignored, and an omitted optional token_usage ledger decodes to its zero value. Canonical malformed data and invalid session state still fail closed.

Real previous-writer fixtures exercise session listing, transcript restore, retry disposition, permanent-failure recovery notice, token accounting, retry, and unchanged on-disk bytes after reads. This is reader compatibility only: the PR adds no migration, conversion, adoption, startup wipe, or automatic rewrite.

Storage scope

The established storage addresses remain unchanged:

  • JSONL: sid-v1/sid-v1-<sanitized-id>-<hash> families, with the bounded .session.json snapshot and matching .events.jsonl, .tools.jsonl, family-lock, and inventory paths.
  • Redis: existing mecatl:session:<id>, mecatl:events:<id>, mecatl:events-gen:<id>, mecatl:tools:<id>, mecatl:ledger:<id>, mecatl:session-metadata:*, and mecatl:session-lineage:* families.
  • Memory: existing memory.json, memory.lock, and .memory-*.json.tmp paths.

Unrelated artifacts are not scanned, promoted, deleted, or rewritten.

Verification and review evidence

Local verification completed successfully:

  • focused JSONL, Redis, memory, app, sessnap, and server tests
  • task lint
  • task test
  • task api:check
  • task docs
  • task site:build
  • task ac-trace-strict
  • task sdk:test
  • go run ./cmd/mecademo
  • git diff --check

Two independent security and QA reviews found no findings. Known pre-existing acceptance-plan traces remain report-only and do not fail the gates.

Implementation is complete and ready for review.

@JAORMX JAORMX added the e2e-live Run the live e2e suite on this PR label Sep 22, 2026
@JAORMX

JAORMX commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

Tests:

  • go test -tags=e2e ./e2e/harness
  • go test -tags=e2e ./e2e -run '^TestParseSSEEvents'
  • go test -tags=e2e ./e2e/... -run '^$'
  • focused server, app restart/lease, and flocklease tests
  • task lint
  • task test
  • task docs
  • go run ./cmd/mecademo

JAORMX and others added 9 commits September 23, 2026 09:42
Use canonical exact-run HTTP control routes and valid compatibility feature inventories in the incoming MCP authorization tests.

Co-Authored-By: mecatl <[email protected]>
Keep current-only readers and fail-closed validation while returning JSONL, Redis, and memory storage to their established addresses. No compatibility conversion or automatic data mutation is added.

Co-Authored-By: mecatl <[email protected]>
@JAORMX
JAORMX force-pushed the cleanup/alpha-compat-cleanup-20260921 branch from 4a66ca6 to 41ca171 Compare September 23, 2026 06:43
@JAORMX
JAORMX merged commit b0cf03a into main Sep 23, 2026
37 checks passed
@JAORMX
JAORMX deleted the cleanup/alpha-compat-cleanup-20260921 branch September 23, 2026 07:53
@samuv samuv mentioned this pull request Sep 23, 2026
6 of 21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e-live Run the live e2e suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants