Skip to content

✨ Add continuity-eval telemetry and ADR-I-0019 harness placement#59

Merged
ebigunso merged 32 commits into
mainfrom
v0-1-4-cm-groundwork
Jul 12, 2026
Merged

✨ Add continuity-eval telemetry and ADR-I-0019 harness placement#59
ebigunso merged 32 commits into
mainfrom
v0-1-4-cm-groundwork

Conversation

@ebigunso

Copy link
Copy Markdown
Owner

Motivation and Context

Groundwork for the v0.1.4 continuity evaluation harness milestone. The harness itself lives in the private companion evals repository (a development aid, not core library functionality); this PR delivers everything the milestone needs from this crate: the placement decision record, the additive telemetry the continuity metrics consume, and the plan/rules bookkeeping.

Description

  • ADR-I-0019: records the decision to host the continuity evaluation harness in the private companion evals repository as a dataset crate consuming this crate strictly through the public API (resolves the ADR-I-0018 "no unambiguous home" revisit trigger).
  • Additive retrieval telemetry (no behavior change): FanoutUtilizationTrace (per-relation/object retained and omitted-by-fanout counts wrapped around the existing graph-expansion pruning — the pruned link set is byte-identical, produced by delegation to the unmodified apply_fanout_limits) and RationaleCategory (stable enum populated from existing structural decisions). All new fields optional and serde-defaulted; legacy payloads covered by a deserialization test; no facade, ranking, or default changes.
  • Test fix: the Qdrant skip-if-unavailable predicate now matches the error shape the client actually emits.
  • Bookkeeping: v0.1.4 execution plan (Tasks 1–4 complete with validation evidence; CME-side architecture-revision gate closed) and coding-agent rule refreshes.

Reviewer evidence (independent): additive-only diff review + ADR-I-0018 dependency-direction audit clean; fmt/check/clippy -D warnings/test all green (339 lib + 25 integration tests).

Checklist

  • Service-free compile check passes
    cargo check
  • Service-free test target compilation passes
    cargo test --no-run
  • Clippy passes with warnings denied
    cargo clippy --all-targets -- -D warnings
  • Rust formatting check passes
    cargo fmt --check
  • Full Qdrant-backed integration tests pass in trusted same-repository CI or with local service configuration
    cargo test --verbose
  • Documentation updated where needed
  • BREAKING CHANGE? No
  • I didn't break anyone 😊

Additional Notes (optional)

The three MINOR follow-ups from review are logged in the plan's cleanup backlog (trace-demand gating of fanout utilization, a one-time crate::domain import sweep in ports/policy, a doc comment on FanoutUtilizationTrace::selected_cap).

🤖 Generated with Claude Code

ebigunso and others added 8 commits July 11, 2026 21:39
Additive-only public telemetry for the continuity evaluation harness:
FanoutUtilizationTrace (per-relation/object retained and omitted-by-fanout
counts around existing graph-expansion pruning) and RationaleCategory (stable
enum populated from existing structural decisions). All new fields are
optional and serde-defaulted; no facade, ranking, or default changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The skip-if-unavailable predicate now matches the error shape the Qdrant
client actually emits, so integration tests skip cleanly when the local
service is down instead of failing.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…repo

Resolves the ADR-I-0018 "no unambiguous home" revisit trigger: the
continuity evaluation harness lives in the private companion
CharacterMemoryEvals repository as a dataset crate consuming this crate
strictly through the public API.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Plan for the v0.1.4 continuity evaluation harness milestone (harness hosted
in the private evals repo; Tasks 1-3 complete with findings and validation
evidence logged). Rules: sibling-repo reference and public-reader wording
rules in common.md; diff-scoped ADR-I-0018 dependency-direction audit
guidance in orchestrator.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…evision

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 11, 2026 19:10
@ebigunso ebigunso self-assigned this Jul 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR lays groundwork for the v0.1.4 continuity evaluation milestone by (1) recording the harness-placement decision via ADR-I-0019 and (2) adding additive retrieval telemetry needed by continuity metrics (fanout utilization + stable rationale categories), alongside a small integration-test skip predicate fix and planning/rules bookkeeping updates.

Changes:

  • Add fanout utilization telemetry (FanoutUtilizationTrace) to retrieval traces and plumb utilization collection through bounded graph expansion.
  • Add stable rationale category taxonomy (RationaleCategory) and populate it across section assignments and stale-candidate omissions.
  • Document harness placement via ADR-I-0019 and refresh coding-agent rules/plan/lessons; adjust Qdrant “skip-if-unavailable” detection.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tests/support/base.rs Updates Qdrant-unavailable predicate to match observed error shapes.
src/usecases/retrieve.rs Emits new telemetry in retrieval traces and adds rationale category population.
src/ports/graph_authority.rs Extends GraphExpansion to carry fanout utilization details from policy to usecases.
src/policy/graph_expansion.rs Collects per-(relation, object_type) fanout utilization during bounded expansion.
src/lib.rs Re-exports new public telemetry types from the crate root.
src/api/types/retrieval.rs Adds new telemetry types/fields and serde-defaulting tests for legacy payloads.
src/api/types.rs Re-exports new retrieval telemetry types through crate::api::types.
docs/decisions/README.md Adds ADR-I-0019 to the decisions index.
docs/decisions/implementation/ADR-I-0019-continuity-eval-harness-placement.md New ADR documenting private evals-repo harness placement and boundaries.
docs/coding-agent/rules/orchestrator.md Updates orchestrator rules (including diff-scoped dependency-direction audit guidance).
docs/coding-agent/rules/common.md Adds repo wording rules for the private evals repo + no-hard-wrap prose rule.
docs/coding-agent/plans/active/v0-1-4-continuity-evaluation-harness-plan.md Adds the v0.1.4 continuity harness execution plan and progress/findings log.
docs/coding-agent/lessons.md Records a new lesson about avoiding hard-wrapped prose in committed docs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/api/types/retrieval.rs
Comment thread src/api/types/retrieval.rs
Comment thread src/policy/graph_expansion.rs Outdated
Comment thread tests/support/base.rs Outdated
Comment thread src/usecases/retrieve.rs Outdated
Comment thread src/usecases/retrieve.rs Outdated
Copilot AI review requested due to automatic review settings July 11, 2026 19:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Comment thread docs/coding-agent/rules/common.md Outdated
Comment thread docs/coding-agent/plans/active/v0-1-4-continuity-evaluation-harness-plan.md Outdated
Comment thread docs/coding-agent/plans/active/v0-1-4-continuity-evaluation-harness-plan.md Outdated
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 11, 2026 20:06
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Comment thread src/policy/graph_expansion.rs Outdated
Comment thread docs/coding-agent/plans/active/v0-1-4-continuity-evaluation-harness-plan.md Outdated
Copilot AI review requested due to automatic review settings July 11, 2026 20:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Comment thread src/usecases/retrieve.rs
Comment thread docs/coding-agent/plans/active/v0-1-4-continuity-evaluation-harness-plan.md Outdated
…teria

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 11, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Comment thread src/policy/graph_expansion.rs Outdated
Comment thread src/usecases/retrieve.rs Outdated
Copilot AI review requested due to automatic review settings July 11, 2026 21:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 11, 2026 23:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread src/usecases/retrieve.rs
Copilot AI review requested due to automatic review settings July 11, 2026 23:17
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread src/usecases/retrieve.rs
Copilot AI review requested due to automatic review settings July 11, 2026 23:21
…s candidate

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread src/adapters/oxigraph/shared.rs
Copilot AI review requested due to automatic review settings July 11, 2026 23:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread src/usecases/retrieve.rs
Copilot AI review requested due to automatic review settings July 11, 2026 23:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 11, 2026 23:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Comment thread src/adapters/oxigraph/shared.rs Outdated
Copilot AI review requested due to automatic review settings July 11, 2026 23:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

@ebigunso ebigunso merged commit e0d78f9 into main Jul 12, 2026
7 checks passed
@ebigunso ebigunso deleted the v0-1-4-cm-groundwork branch July 12, 2026 00:27
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.

2 participants