feat(miner-selfimprove): engine-parity drift detector (#4260) - #4349
Conversation
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4349 +/- ##
=======================================
Coverage 93.98% 93.98%
=======================================
Files 406 406
Lines 36993 37001 +8
Branches 13521 13524 +3
=======================================
+ Hits 34767 34775 +8
Misses 1570 1570
Partials 656 656
🚀 New features to boost your workflow:
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-09 17:23:16 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Flagged checks (non-blocking)
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (Contributor trust)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Add a CI drift tripwire for hand-duplicated src/ and gittensory-engine file pairs plus version-skew detection, and sync three pairs that had drifted. Co-authored-by: Cursor <cursoragent@cursor.com>
Convert check-engine-parity to TypeScript, add status.d.ts exports for new doctor helpers, and annotate test callback types so validate-code passes. Co-authored-by: Cursor <cursoragent@cursor.com>
The version-skew pin file is shipped in the miner npm package; add it to the check-miner-package allowlist so test:miner-pack passes in CI. Co-authored-by: Cursor <cursoragent@cursor.com>
Sync pr-type-label additive propagation to engine, add miner pin drift check, avoid duplicate pair reads, and fix installed-engine version fallback. Co-authored-by: Cursor <cursoragent@cursor.com>
4ac43e6 to
f256671
Compare
Summary
scripts/check-engine-parity.mjs, a mechanical CI tripwire that discovers hand-duplicated (non-shim) twins undersrc/{review,settings,signals}↔packages/gittensory-engine/src/{review,settings,signals}, normalizes known-harmless import-path aliases, and fails on normalized body drift.@jsonbored/gittensory-enginesemver against the monorepo engine package version (wired intotest:civiaengine-parity:drift-check).gittensory-miner doctorwith anengine-version-skewcheck (installed vs monorepo/pinned expected minimum) and shipspackages/gittensory-miner/expected-engine.versionfor published-miner fallback.main:guardrail-config(e2e-test-commit glob),change-guardrail(guardrailPathMatchesstructure), andlinked-issue-label-propagation(comment wording).Closes #4260
Test plan
npm run engine-parity:drift-checkpasses on this branch (16 pairs + version skew)vitest run test/unit/check-engine-parity-script.test.ts— identical pass, diverged fail, semver equal/behind/ahead, regression guard on real repo pairsvitest run test/unit/miner-status.test.ts— doctor includesengine-version-skew; behind/ahead/skipped/missing-installed casestest:cichain includesengine-parity:drift-checkalongsidemanifest:drift-checkNotes
check-names,review-thread-findings) and thin re-export shims (duplicate-winner,test-evidence) are auto-excluded from the pair sweep.Made with Cursor