Skip to content

feat(agent): add evolution pipeline contracts - #98

Merged
Pepps233 merged 2 commits into
feat/materialize-invocation-evidencefrom
feat/evolution-pipeline-contracts
Aug 23, 2026
Merged

Pepps233 merged 2 commits into
feat/materialize-invocation-evidencefrom
feat/evolution-pipeline-contracts

Conversation

@Pepps233

@Pepps233 Pepps233 commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a private evolution package with versioned pipeline contracts over normalized invocation evidence and immutable harness snapshots.

Reasoning

The package keeps evolution domain logic independent from coding-agent, the TUI, sessions, extensions, and other product control flow.

Separate Reflector and Curator ports preserve the division of labor described by Agentic Context Engineering, while structured mutation payloads preserve incremental updates instead of whole-context rewrites.

Background scheduling, recursive evidence slicing, scoring policy, exact memory operations, activation, and UI integration remain outside this change.

Changes

  • Added versioned contracts for input snapshots, corpus manifests, reflections, lessons, instruction snapshots, proposals, validation reports, scores, mutation batches, jobs, checkpoints, and ledger events.
  • Added deterministic SHA-256 provenance metadata with explicit producer, prompt, model, source, scope, and creation fields.
  • Added injected ports for model execution, instruction loading, clocks, events, artifact storage, jobs, the append-only ledger, validation, scoring, and writing.
  • Added thin stage orchestration that excludes evolution-generated evidence, checkpoints durable state, and records proposal outcomes separately from active memory.
  • Added a target registry that enables evolution memory only and prevents deferred skill or orchestration findings from reaching a writer.
  • Added fixture-driven coverage for successful and failed writes, deterministic output, target routing, and package dependency boundaries.

Testing

  • node ../../node_modules/vitest/dist/cli.js --run test/contracts.test.ts from packages/evolution.
  • node ../../node_modules/vitest/dist/cli.js --run test/pipeline.test.ts from packages/evolution.
  • npm run check.

- Establishes a private runtime-neutral boundary over normalized evidence and immutable harness snapshots
- Preserves artifact provenance and target deferral before model-driven stages are introduced
- Keeps model execution, instruction loading, persistence, clocks, events, and writers behind stable ports
- Routes only validated memory mutations while retaining unsupported findings and all outcomes in a separate ledger
@Pepps233 Pepps233 self-assigned this Aug 19, 2026
@Pepps233
Pepps233 requested a review from Issacboy123 August 19, 2026 22:17
@Pepps233
Pepps233 marked this pull request as ready for review August 23, 2026 16:37
@Pepps233
Pepps233 merged commit 423ce73 into main Aug 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant