Repository navigation
test: freeze the Core Reset baseline and held-out contract - #581
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe PR freezes a Core Reset evaluation contract, adds baseline recording and semantic validation, commits measured evidence, verifies held-out repository and package isolation, updates governance artifacts, and runs the new checks in CI. ChangesCore Reset baseline and evaluation
Estimated code review effort: 5 (Critical) | ~90+ minutes Possibly related issues
Possibly related PRs
Suggested labels: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
tools/eval/core-reset/contract-validation.mjs (1)
354-356: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win
canonicalSha256should either canonicalize or be renamed.JSON.stringifyis insertion-order dependent, so this hash is not RFC 8785 JCS and can change if the same object is reserialized with a different key order. For contract/dependency hashes, switch to a JCS serializer; otherwise document the ordering assumption and drop the “canonical” wording.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@tools/eval/core-reset/contract-validation.mjs` around lines 354 - 356, Update canonicalSha256 to hash values serialized with an RFC 8785 JCS-compatible serializer instead of JSON.stringify, preserving stable hashes regardless of object key insertion order. If no JCS serializer is available, rename the function to remove “canonical” and document the ordering assumption for contract/dependency hashes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/core-reset/scorecard.md`:
- Line 27: Update the tooling checkout reference in the scorecard sentence to
use the complete 40-character commit SHA instead of abbreviated `250a637`,
matching the repository’s canonical pinned value and preserving the existing
runtime baseline reference.
- Line 22: Update the “OpenStatus retrieval” scorecard entry to avoid comparing
its cold startup-plus-retrieve measurement with the warm p95 target: record warm
p95 using the required warm-run sample, or mark warm p95 as unknown, while
retaining the existing cold measurement as a separate metric.
---
Nitpick comments:
In `@tools/eval/core-reset/contract-validation.mjs`:
- Around line 354-356: Update canonicalSha256 to hash values serialized with an
RFC 8785 JCS-compatible serializer instead of JSON.stringify, preserving stable
hashes regardless of object key insertion order. If no JCS serializer is
available, rename the function to remove “canonical” and document the ordering
assumption for contract/dependency hashes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 7f9f568a-6eb8-4a78-8da2-f0e03b4cb427
📒 Files selected for processing (16)
.github/workflows/ci.ymldocs/core-reset/evidence/baseline-v0.32.0.jsondocs/core-reset/removal-manifest.ymldocs/core-reset/scorecard.mddocs/roadmap.mdtests/unit/core-reset-baseline.test.tstests/unit/core-reset-governance.test.tstools/eval/core-reset/README.mdtools/eval/core-reset/contract-validation.mjstools/eval/core-reset/contracts/evaluation-contract.jsontools/eval/core-reset/record-baseline.mjstools/eval/core-reset/schemas/baseline-receipt.schema.jsontools/eval/core-reset/schemas/evaluation-contract.schema.jsontools/eval/core-reset/verify-held-out-repositories.mjstools/eval/core-reset/verify-isolation.mjstsconfig.build.json
|
Review follow-up in de344d7:
Targeted Core Reset tests, typecheck, build, diff hygiene, and the zero src delta check pass locally. |
Summary
Closes #580.
src,dist, and the npm packageThe receipt intentionally records current failures rather than treating them as acceptance failures: 398 package files, 315.601 ms CLI startup, 7 MCP tools, lost parallel edges/edge IDs, and 50% in-scope OpenStatus phase coverage. These are the frozen baseline later phases must beat.
Testing
npm run test:run -- --maxWorkers=1— 205 files; 2,819 passed; 2 skippednpm run typechecknpm run buildnpm run release:verifynpm run registry:validatenpm run verify:pack-paritynpm run pack:dry-run -- --jsonnode tools/eval/core-reset/verify-isolation.mjsnode tools/eval/core-reset/verify-held-out-repositories.mjs --repository openstatus=<checkout> --repository documenso=<checkout> --repository formbricks=<checkout>git diff --checkCore Reset contract
Reset scope checks
src/Checklist
Evidence provenance
The accepted receipt was recorded from clean tooling checkout
250a637. Its production source tree is byte-for-byte the frozen runtime baseline at33951d6, with+0 / -0 / net 0undersrc/**.Summary by CodeRabbit