Summary
Map RunContract advisory quality hints into five explicit advisory dimensions: Alignment, Evidence, Completeness, Simplicity, and Risk.
Parent roadmap: #114
Track: A — RunContract Harness core
Tier: 1 — actionable now
Problem
RunContract currently exposes advisory quality hints, but the design notes call for a clearer five-dimensional quality vocabulary. Without explicit dimensions, future scoring/rendering work can drift into opaque aggregate scoring or overlap confusingly with existing workflow validation and quality-probe readiness checks.
Proposal
Represent RunContract quality as dimension-level advisory signals with reasons. Keep the result non-authoritative: workflow validation and evidence gates remain the completion authority.
Scope
- Add a RunContract quality dimension vocabulary:
alignment
evidence
completeness
simplicity
risk
- Represent each dimension as
pass | warn | fail plus reason strings.
- Derive dimension signals from existing workflow state, evidence, artifacts, risks, blockers, and completion criteria.
- Preserve existing completion validation behavior.
- Add tests for representative ready/warn/fail cases.
Non-goals
- No numeric aggregate score.
- No hard approval/completion authority from quality hints.
- No tool-call blocking from score.
- No replacement of existing workflow validation.
- No replacement of
src/domain/quality-probe.ts runtime readiness matrix.
- No GitHub/PR/kapi-agent/Ragna semantics in RunContract core.
Acceptance criteria
Verification
- Run targeted RunContract tests.
- Run
npm run verify.
- Search core RunContract code for adapter-specific terms.
References
Summary
Map RunContract advisory quality hints into five explicit advisory dimensions:
Alignment,Evidence,Completeness,Simplicity, andRisk.Parent roadmap: #114
Track: A — RunContract Harness core
Tier: 1 — actionable now
Problem
RunContract currently exposes advisory quality hints, but the design notes call for a clearer five-dimensional quality vocabulary. Without explicit dimensions, future scoring/rendering work can drift into opaque aggregate scoring or overlap confusingly with existing workflow validation and
quality-probereadiness checks.Proposal
Represent RunContract quality as dimension-level advisory signals with reasons. Keep the result non-authoritative: workflow validation and evidence gates remain the completion authority.
Scope
alignmentevidencecompletenesssimplicityriskpass | warn | failplus reason strings.Non-goals
src/domain/quality-probe.tsruntime readiness matrix.Acceptance criteria
Evidencedimension without completing/failing the workflow by itself.Completenessand/orRiskas advisory signals.npm run verifypasses.Verification
npm run verify.References
kapi-run-contract-refactor-loop-and-ragna-review.md