Skip to content

feat(runtime)!: add reproducible evals and slash guidance - #6

Merged
lg2m merged 1 commit into
mainfrom
feat/dev-730-dev-731-eval-skills
Aug 4, 2026
Merged

lg2m merged 1 commit into
mainfrom
feat/dev-730-dev-731-eval-skills

Conversation

@lg2m

@lg2m lg2m commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • implement DEV-730 with a Harbor 0.20.0 / ATIF v1.7 adapter, fixed run identity, durable per-turn accounting, grounded failure classification, and reproducible reports
  • implement DEV-731 with native .qq commands and skills, documented Claude/Agents compatibility fallbacks, deterministic discovery, and durable prompt provenance
  • preserve shared runtime behavior across direct CLI, HTTP/server, TUI forwarding, child sessions, compaction, replay, and cancellation

Design notes

  • provider turns are committed as model_turn_completed before tool dispatch so trajectories retain model, usage, and cost even for tool-only or compaction turns
  • eval totals use inclusive parent/child accounting and preserve unknown values rather than understating work
  • slash guidance is bounded, workspace-contained, collision-checked, and included in the provider-neutral prompt identity
  • literal // escaping is normalized durably with the queued prompt rather than rewritten later in memory

Verification

  • cargo test --workspace --quiet
  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo build --workspace
  • pinned Harbor 0.20.0 Python suite: 8 tests passed, including ATIF validation and smoke-task construction
  • Harbor --print-config resolved the repository smoke task under tasks
  • clean cargo xtask eval run --dry-run recorded revision 6f0bd4278e714083762823f9638d4c11c49461f2
  • cargo bench -p qq-core --bench tool_dispatch: 35,241 ns/iteration over 1,000 iterations
  • independent spec and standards reviews found no remaining medium-or-higher issues

Compatibility

Protocol version 7 adds model_turn_completed and expands prompt identity. Clients and servers must use matching protocol versions.

A credentialed Terminal-Bench baseline was not run: that remains an explicit operator action because it uses provider credentials and incurs model spend. The adapter, task loader, trace converter, reporter, and launch plan were validated locally without executing a real benchmark task.

Implement DEV-730 and DEV-731 with a pinned Harbor/ATIF baseline, trajectory-grounded failure reports, shared runtime guidance loading, and durable prompt provenance.

BREAKING CHANGE: protocol version 7 adds the model_turn_completed event; clients and servers must match.
@lg2m
lg2m merged commit 981cd0f into main Aug 4, 2026
2 checks passed
@lg2m
lg2m deleted the feat/dev-730-dev-731-eval-skills branch August 4, 2026 21:32
lg2m added a commit that referenced this pull request Sep 10, 2026
…ions

Plan for web, desktop, and mobile clients over many headless qq servers:
client-core extraction (W1-W3), server remote readiness (S1-S6), tracer
bullet gate, then UI phases. Reserves ADR 0015-0018, files root requests,
appends decision #6.
lg2m added a commit that referenced this pull request Sep 10, 2026
…ions (#13)

Plan for web, desktop, and mobile clients over many headless qq servers:
client-core extraction (W1-W3), server remote readiness (S1-S6), tracer
bullet gate, then UI phases. Reserves ADR 0015-0018, files root requests,
appends decision #6.
lg2m added a commit that referenced this pull request Sep 16, 2026
* docs: close Phase 6 and reconcile every plan with what shipped

Phase 6 closed with #46/#47 but the docs still said "in review" in
fourteen places, the tool-layer plan still said "proposed" with eight of
fourteen slices shipped, three ADRs said Proposed for merged work, and the
priority table listed only shipped items. This pass makes the docs match
main at 7956e8e:

- speed-first plan: status block closed; Phases 5b and 6 collapsed to
  Completed Phases rows per the plan's own rule; D5/D8/D9/D10 as-built
  blocks reduced to ADR pointers; § Bundled Fixes keeps only the seven
  deferrals; version row points at protocol.md. 865 -> 742 lines.
  Gate files g-phase-5b.md and g-phase-6.md written.
- tool-layer plan: status block added (T1-T8, T12 shipped); D1-D5 and D8
  replaced by pointers to tools.md plus the recorded departures (rule
  count, PolicyDecision::Forbidden shape, runtime/spill.rs, Launch in
  shell.rs, LineRange, qq-tui -> qq-core edge); dependency table and
  owned paths corrected; § Docs marked done. 601 -> 317 lines.
- ADR-0019/0020/0022 -> Accepted; adr/README.md and root.md agree with the
  files; root.md requests table resolved; ADR-0027 records that qq-core
  is a public embedding API (the audit's "unused exports" are the
  contract).
- plans/README.md priority table rewritten to open work only; readiness
  plan's Phase 6 candidates replaced by pointers to T2/T5/T10 and its
  delivery table annotated; R6-search/patch ledger rows Superseded;
  supervised-delegation status and its applied Amendments collapsed;
  multi-surface status, shipped gaps, and W2 ledger row.
- Design docs: tools.md forward references to plan slices removed
  (list_dir, T6/T7 capture cap, T11); architecture.md records the
  qq-tui -> qq-core edge, the built-in tool set, and tool_spills/schema
  28; product.md and architecture.md point web/mobile at the approved
  multi-surface plan; headless-contract.md musl row and v21 note;
  release.md example numbers; README approval modes describe the
  classifier tiers, supervised, and full.
- decisions-needed #2 stays dropped, #3 carried to Phase 7, #4 and #6
  resolution text updated.

Every relative link and anchor under docs/** resolves (checked with
GitHub's slug rule); the as-built ADRs now point at design docs, not at
the plan sections that were collapsed.

* docs(ledger): link the cleanup stack (#51, #52)
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