Skip to content

v0.1.2 durability and core invariant freeze - #2

Merged
HayronHgh merged 1 commit into
mainfrom
agent/durability-core-freeze
Aug 9, 2026
Merged

v0.1.2 durability and core invariant freeze#2
HayronHgh merged 1 commit into
mainfrom
agent/durability-core-freeze

Conversation

@HayronHgh

Copy link
Copy Markdown
Owner

What changed

  • split tool-evidence persistence from prompt rendering
  • persist medium and large tool results with character/byte counts and SHA-256
  • add machine-checkable internal context_os recovery metadata
  • add an internal-to-model serialization boundary so runtime metadata never enters the OpenAI-compatible protocol
  • gate 55% stale-output compression and 65% complete-exchange eviction on artifact recoverability
  • preserve artifact recovery references in markers, State Transfer, rebuilt prompts, and working-state reads
  • add the twelfth runtime tool, read_artifact, with ID-only, 500-line-bounded, integrity-checked retrieval
  • define episode retrieval as latest N valid episodes and recover corrupted repository maps as cache misses
  • add durability observability counters
  • freeze the deterministic Phase 1/2 architecture and reserve adaptive semantic planning for v0.2.0
  • update English and Traditional Chinese documentation and package/runtime version to 0.1.2

Why

Before this change, a medium tool result could exist only in active context and later be shortened or removed without an exact recovery artifact. Natural-language prune markers were not machine-verifiable. Corrupted newest episodes could also hide older valid memory.

v0.1.2 makes deterministic context reduction recoverable and fail-loud before Phase 1/2 is frozen.

User and developer impact

  • default durability threshold: 800 characters
  • default active prompt limit: 12,000 characters
  • invalid threshold ordering is rejected at startup
  • tool count increases from 11 to 12
  • existing local configs remain compatible through normalized defaults
  • /compact and threshold keys retain v0.1.1 behavior

Validation

  • npm.cmd test: 35 tests defined, 34 passed locally, 1 file-symlink test conditionally skipped because this Windows host denies file symlink creation
  • Windows junction file/artifact escape tests passed
  • all source files passed node --check
  • 3 JSON files parsed
  • 5 PowerShell scripts parsed
  • 20 Markdown files passed relative-link validation
  • sensitive-information and staged-diff checks passed
  • real llama.cpp + Qwen3.6 E2E passed: read_file -> 14,116-character artifact -> read_artifact -> V012_E2E_OK

@HayronHgh
HayronHgh marked this pull request as ready for review August 9, 2026 11:08
@HayronHgh
HayronHgh merged commit ff29445 into main Aug 9, 2026
4 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