Skip to content

feat(agent): reserve Counter contracts - #100

Merged
Pepps233 merged 2 commits into
feat/durable-evolution-control-planefrom
feat/reserve-counter-contracts
Aug 23, 2026
Merged

Pepps233 merged 2 commits into
feat/durable-evolution-control-planefrom
feat/reserve-counter-contracts

Conversation

@Pepps233

@Pepps233 Pepps233 commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reserves the Counter boundary and stable memory-item contracts without enabling Counter behavior.

Reasoning

Future Counter work needs a durable place in frozen job inputs and the pre-reflection pipeline before observations or aggregation are implemented.

An optional stage port with an explicit nullable report lets future work plug in without changing Reflector or job checkpoint APIs.

The default implementation emits no report, artifact, stage state, model call, score, proposal, mutation, or ledger event.

Changes

  • Add independently versioned memory-item, Counter observation, and Counter report contracts.
  • Carry active memory-item identities separately from rendered EVOLVE.md content.
  • Add an optional pre-reflection stage port and disabled implementation.
  • Pass an explicit nullable Counter report into Reflector.
  • Document attribution strength, task-level final-observation deduplication, policy boundaries, and deferred behavior.

Testing

  • node ../../node_modules/vitest/dist/cli.js --run test/counter.test.ts test/control-plane.test.ts
  • npm run check
  • ./test.sh

- Defines stable memory identity and append-only observation schemas outside rendered instructions
- Provides an optional pre-reflection port with a disabled implementation that emits no report
- Passes an explicit nullable report to Reflector while the default stage records no artifacts or Counter state
- Documents attribution, task-level deduplication, policy, and mutation boundaries for future implementation
@Pepps233 Pepps233 self-assigned this Aug 19, 2026
@Pepps233
Pepps233 requested a review from Issacboy123 August 19, 2026 23:53
@Pepps233
Pepps233 marked this pull request as ready for review August 23, 2026 16:37
@Pepps233
Pepps233 merged commit ffa43e2 into main Aug 23, 2026
1 check 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