@dzhechkov/harness-core 0.3.148 → 0.3.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dz-manifest.json +32 -8
- package/README.md +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/reqe.d.ts +106 -0
- package/dist/reqe.d.ts.map +1 -0
- package/dist/reqe.js +197 -0
- package/dist/reqe.js.map +1 -0
- package/package.json +4 -4
- package/sbom.json +67 -7
- package/src/index.ts +13 -0
- package/src/reqe.ts +243 -0
package/.dz-manifest.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"path": "README.md",
|
|
12
|
-
"sha256": "
|
|
12
|
+
"sha256": "6d047e89ebd5532a54d5200fa86660b3a8f1e96e128a5a4042d718d2cacae2ec"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"path": "coverage/coverage-final.json",
|
|
@@ -517,19 +517,19 @@
|
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
"path": "dist/index.d.ts",
|
|
520
|
-
"sha256": "
|
|
520
|
+
"sha256": "1651978c5ce1fc510541d6ae3cc09f9cd74dde1e31d460d01b16f637dd80c8d2"
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
523
|
"path": "dist/index.d.ts.map",
|
|
524
|
-
"sha256": "
|
|
524
|
+
"sha256": "a8098db1327beb284a22ac8b2410d030578e55a0648c8c8fbc7934dfa966ef85"
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
"path": "dist/index.js",
|
|
528
|
-
"sha256": "
|
|
528
|
+
"sha256": "46032dd7deeb29b7a71d13d068620bd197a9a4d503e2c74089cbff0b9314859e"
|
|
529
529
|
},
|
|
530
530
|
{
|
|
531
531
|
"path": "dist/index.js.map",
|
|
532
|
-
"sha256": "
|
|
532
|
+
"sha256": "ad9870713ae8589d93e031048a9af4cea0371a35b53194870a672d02e66ccaaa"
|
|
533
533
|
},
|
|
534
534
|
{
|
|
535
535
|
"path": "dist/learning-backend.d.ts",
|
|
@@ -803,6 +803,22 @@
|
|
|
803
803
|
"path": "dist/release.js.map",
|
|
804
804
|
"sha256": "9123f8a37ffc19886f2940c700c2622509cd4deb0eea762ed3cc1e1f0907d17f"
|
|
805
805
|
},
|
|
806
|
+
{
|
|
807
|
+
"path": "dist/reqe.d.ts",
|
|
808
|
+
"sha256": "115fa0797ad0e98a452f9987c15b038e22b18486043c8890c65cc32c9dc51af9"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"path": "dist/reqe.d.ts.map",
|
|
812
|
+
"sha256": "75996953748647f0cbe548c73daa5cb7cd1f8906f2df474926c31b9e5fa223f9"
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"path": "dist/reqe.js",
|
|
816
|
+
"sha256": "229014a8fa37faeb716d7f0deb22758a133ce50479b849b072eb6a285e78db40"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"path": "dist/reqe.js.map",
|
|
820
|
+
"sha256": "c28182b280cf2c016a2b1d2ef15a3a335ff25993220767ae9fc7c74af76ba022"
|
|
821
|
+
},
|
|
806
822
|
{
|
|
807
823
|
"path": "dist/risk-scoring.d.ts",
|
|
808
824
|
"sha256": "a40c687718dee46c83e2babf2862cb43b3dcbe80b021d91339486b609a446b43"
|
|
@@ -1109,7 +1125,7 @@
|
|
|
1109
1125
|
},
|
|
1110
1126
|
{
|
|
1111
1127
|
"path": "package.json",
|
|
1112
|
-
"sha256": "
|
|
1128
|
+
"sha256": "76997cf27ff9c8901df35b45fbdb1c91f201396f070dab0579289b8aa9ac851c"
|
|
1113
1129
|
},
|
|
1114
1130
|
{
|
|
1115
1131
|
"path": "src/__tests__/golden-baseline.test.ts",
|
|
@@ -1237,7 +1253,7 @@
|
|
|
1237
1253
|
},
|
|
1238
1254
|
{
|
|
1239
1255
|
"path": "src/index.ts",
|
|
1240
|
-
"sha256": "
|
|
1256
|
+
"sha256": "5eb07fb5e21e7be1e78a11243d6f86b9c84461eec22a954102549b5e237b7ab2"
|
|
1241
1257
|
},
|
|
1242
1258
|
{
|
|
1243
1259
|
"path": "src/learning-backend.ts",
|
|
@@ -1303,6 +1319,10 @@
|
|
|
1303
1319
|
"path": "src/release.ts",
|
|
1304
1320
|
"sha256": "aa9168da8584d311a2cdef736c2352180e6a52752a4d9859ad535d825cd502ad"
|
|
1305
1321
|
},
|
|
1322
|
+
{
|
|
1323
|
+
"path": "src/reqe.ts",
|
|
1324
|
+
"sha256": "67988858ff527e5b465aa46b341aa710465e8cb0f72038be30f2419e0ff12cc3"
|
|
1325
|
+
},
|
|
1306
1326
|
{
|
|
1307
1327
|
"path": "src/risk-scoring.ts",
|
|
1308
1328
|
"sha256": "dcae3c879f114899b12ca57324e776e083f5753590763647690de1fdbd40198d"
|
|
@@ -1643,6 +1663,10 @@
|
|
|
1643
1663
|
"path": "test/release.test.ts",
|
|
1644
1664
|
"sha256": "ab77b05e960006dc81b739c0f63a6d37ecbdd2817b31475d5ab50e44da7c35b9"
|
|
1645
1665
|
},
|
|
1666
|
+
{
|
|
1667
|
+
"path": "test/reqe.test.ts",
|
|
1668
|
+
"sha256": "c5bb25b04caa8e9c14111ab838a135f7e2564b9fd1b7624520827bc95600661e"
|
|
1669
|
+
},
|
|
1646
1670
|
{
|
|
1647
1671
|
"path": "test/routing-outcomes.test.ts",
|
|
1648
1672
|
"sha256": "bbc5c12f2bfcb246369f7428a5b22e64615e00174f08ba8d20f9d962ae8b43e8"
|
|
@@ -1729,5 +1753,5 @@
|
|
|
1729
1753
|
}
|
|
1730
1754
|
]
|
|
1731
1755
|
},
|
|
1732
|
-
"signature": "
|
|
1756
|
+
"signature": "O6XjLHJnZZb1/hYwX0+mpA7Rb/fpErm3fFglukPtsDc2L0WxywzJz8i3eRSch2siCzPAB7WSZWrtF5CzejXwCA=="
|
|
1733
1757
|
}
|
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ and any other consumer.
|
|
|
19
19
|
| `compounding` | `mulberry32`, `bootstrapDelta`, `decidePromotion`, `assembleCompoundingReport` | Pure learning-loop payoff engine behind `dz compounding`: seeded deterministic bootstrap (conservative nearest-rank lower-95), promotion that refuses non-finite/malformed input and anything under 5 samples per arm, and dz-native measurements (pool write-only ratio, guard trajectory by RATE, replay readiness over unique untruncated prompt events). A gate without data says INSUFFICIENT_DATA — never a verdict. Compaction keeps the newest query-bearing rows verbatim and aggregates ONLY the rest (read totals are invariant across compactions). Also reports EVENT-CHAIN health of the evidence logs it computed from (`evidenceLogs` in, `instrumentation.chains` out) — verified / defect kinds / uncovered pre-chain prefix, with no logs handed in producing no line at all rather than a vacuous "clean" |
|
|
20
20
|
| `event-chain` | `fnv1a32`, `nextChainFields`, `appendChainedLines`, `chainRewrite`, `guardedRewrite`, `verifyEventChain`, `EVENT_CHAIN_SCOPE` | Pure hash-chain over the two learning-evidence logs (`.dz/recall-usage.jsonl`, `.dz/guard-audit.jsonl`): each appended record carries `seq` + `prevHash` (FNV-1a over the previous line AS WRITTEN, so key order cannot make writer and verifier disagree), derived from the LAST LINE ONLY so a per-prompt hook stays O(1). `verifyEventChain` names eight classes — `BrokenLink`, `DuplicateSeq`, `NonMonotonicSeq`, `TornTail`, `DoubleCounted`, `LedgerImbalance`, `MalformedLedger`, `ClaimInterrupted`. The last four exist because a rewriter must not be able to certify itself: the compaction ledger's arithmetic (`Σ weight + dropped === source`, `dropped ∈ [0, source]`) is enforced with NO clamps in the verifier (the clamp belongs to the writer), a damaged ledger line is a defect rather than a silently-disabled check, and a claim that never reached its `throughSeq` — because the segment restarted or the file ended — is reported instead of escaping through the discontinuity. `guardedRewrite` is the concurrency guard for any whole-file rewrite: exclusive lock, plus a re-read of the live file after computing the new text and BEFORE the rename, so a concurrent append aborts the attempt and is folded into a bounded retry rather than overwritten (it narrows the read→rename window; it cannot close it, and says so). Records written before chaining existed stay LEGAL and are counted as an uncovered `preChainPrefix`; an unreadable tail never blocks a write (fresh MARKED segment — an unreadable tail WINDOW is distinguished from an empty file — and the appender starts on a new line so one torn write cannot eat the next record); an unmarked restart is reported once and then re-anchored, so one incident is one defect instead of a cascade. HONEST SCOPE, carried in every result and printed by every surface: corruption detection for our own bugs — FNV-1a is not cryptography, its collisions are constructible, the threat model has no adversary, and a regression test fails if the module regrows tamper-proofing vocabulary |
|
|
21
21
|
| `feature-adr-checkpoints` | `checkpointInputHash`, `decideCheckpointResume`, `parseCheckpointRead`, `serializeCheckpoint`, `fnv1a64`, `CKPT_SCHEMA_VERSION`, `STAGE_ARTIFACTS` | The PURE half of feature-adr's durable per-stage checkpoints (`features/<slug>/.fa-state/checkpoints.jsonl`): a dead L/XL run — or the standard stop-after-plan re-invoke — resumes completed stages instead of re-spending them. Resume = INPUT-identity (64-bit salted FNV over a schema-versioned JSON tuple incl. upstream stage results) + presence of EVERY tier-required artifact; a stale-input hash never resumes in ANY mode (`force` relaxes only the artifact probe — the tested load-bearing property). HONEST SCOPE: it does NOT fingerprint the working tree (a crash-resume legitimately sees the dead run's uncommitted writes) — after manual edits use `resume:'never'` and re-QE. Null results are never persisted or resumable; a stage-identifiable corrupt record ERASES its older entry (last-wins holds for corruption too); a codex code stage whose landing barrier said `genuinely-not-landed` is never checkpointed. The workflow mirrors this inline (wiring-guarded); RU: чекпоинт после каждой дорогой стадии — упавший ран возобновляется, а не пере-тратит завершённое |
|
|
22
|
+
| `reqe` | `shouldEmitReqeDebt`, `buildReqeDebt`, `parseReqeDebt`, `buildReqeBrief`, `extractReportGrade`, `settleReqeDebt`, `renderReqeList`, `REQE_SCOPE` | The pure half of `dz reqe` — the re-QE debt ledger: when feature-adr's usage-adaptive override made Step-8 QE run on the coder's OWN family (the cross-model guard consciously suspended, FR-2.9), the run records a debt in `features/<slug>/.fa-state/reqe-due.json`. Emission is the NARROW case only (same-family + the ` (usage-switched)` label — never every switch, never the no-override Claude belt); settlement is FAIL-CLOSED: an existing, non-trivial report naming exactly ONE line-anchored grade (`GRADE A-F` boilerplate and `A through F` ranges refused, ambiguity refused), never the run's own 08_qe_report.md. Debts carry the emitting run's stamp so an old settlement never immunizes a fresh run. HONEST SCOPE printed everywhere: nothing re-runs QE automatically; the validator proves procedural soundness, not authorship. RU: снятый под лимитом гард «кодер не ревьюит сам себя» становится долгом на диске, а не памяткой |
|
|
22
23
|
| `operations` | `runInit`, `runSync`, `runVerify`, `runDoctor` | The harness operations, returning structured reports |
|
|
23
24
|
| `release` | `collectPackageFacts`, `selectAffectedPackages`, `planReleaseGates`, `classifyGateExecutions`, `buildFailureIssue`, `firstOutputLine` | Pure verified-release engine behind `dz release`: plans 4 HARD gates (tests / `pnpm audit --prod` / `node --check` / bin smoke-boot) as DATA and classifies injected results fail-closed — an unbuilt package (declared `build` script, no dist JS) is a `MISSING_DIST` failure, a template-only pack is a named `SKIP_NO_ARTIFACTS` skip, `selectAffectedPackages` fail-opens to the full set when the changed-file list is unavailable |
|
|
24
25
|
| `parity` | `TARGET_CAPABILITIES`, `PARITY_FEATURES`, `computeParity`, `buildParityMatrix` | Declarative target-parity model behind `dz parity`: verified capability flags per target × feature FORMS with requirements; the feature×target matrix is always COMPUTED (never hand-written), and the model must classify exactly `TARGET_NAMES` — an unclassified new target refuses to compile |
|
package/dist/index.d.ts
CHANGED
|
@@ -57,6 +57,8 @@ export { step8ClaimGate } from './feature-adr-claim-gate.js';
|
|
|
57
57
|
export type { Step8ClaimCounts, Step8ClaimGate } from './feature-adr-claim-gate.js';
|
|
58
58
|
export { CHECKPOINT_STAGES, STAGE_ARTIFACTS, CHECKPOINT_MAX_RESULT_CHARS, CHECKPOINT_LS_SENTINEL, CKPT_SCHEMA_VERSION, fnv1a, fnv1a64, checkpointInputHash, resumeMode, decideCheckpointResume, serializeCheckpoint, parseCheckpointRead, checkpointReadCmd, checkpointAppendCmd, } from './feature-adr-checkpoints.js';
|
|
59
59
|
export type { CheckpointStage, CheckpointEntry, ResumeMode, ResumeDecision, ParsedCheckpointRead } from './feature-adr-checkpoints.js';
|
|
60
|
+
export { REQE_SCHEMA, REQE_SCOPE, modelFamily, shouldEmitReqeDebt, buildReqeDebt, parseReqeDebt, buildReqeBrief, extractReportGrade, settleReqeDebt, renderReqeList, } from './reqe.js';
|
|
61
|
+
export type { ModelFamily, ReqeEmitDecision, ReqeDebt, ReqeBrief, ReqeSettlement } from './reqe.js';
|
|
60
62
|
export { detectQueryLang, relevanceFloorFor, selectHookHits, renderHookContext, hasEnoughSignal, DEFAULT_RECALL_FLOORS, DEFAULT_RECALL_HOOK_LIMIT, DEFAULT_RECALL_HOOK_BUDGET_CHARS, MIN_PROMPT_CHARS, MIN_CONTENT_TOKENS, } from './recall-hook-policy.js';
|
|
61
63
|
export type { QueryLang, RecallFloors, HookCandidate, HookSelection } from './recall-hook-policy.js';
|
|
62
64
|
export { RECALL_USAGE_LOG_RELATIVE, RECALL_USAGE_LOG_MAX_BYTES, RECALL_USAGE_COMPACT_TARGET_BYTES, formatRecallUsageRecord, buildRecallUsageRecord, parseRecallUsageLog, aggregateRecallUsage, buildRecallUsageReport, shouldCompactRecallUsageLogSize, compactRecallUsageLog, compactRecallUsageLogChecked, } from './recall-usage.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,mFAAmF;AACnF,eAAO,MAAM,oBAAoB,EAAE,MACiD,CAAC;AAErF,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC7E,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB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AAC;AACpB,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAI3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AAIpC,cAAc,oBAAoB,CAAC;AAKnC,cAAc,kBAAkB,CAAC;AAOjC,OAAO,EACL,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAI3B,cAAc,YAAY,CAAC;AAK3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA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AAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,GAAG,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,mBAAmB,CAAC;AAI3B,cAAc,YAAY,CAAC;AAK3B,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export { claimCheck, summarize, decideClaimCheckText, severityCounts, isGated }
|
|
|
37
37
|
export { hookDecision, isFenced, isNewLine, ESCAPE_TEACHING } from './claim-check-hook-policy.js';
|
|
38
38
|
export { step8ClaimGate } from './feature-adr-claim-gate.js';
|
|
39
39
|
export { CHECKPOINT_STAGES, STAGE_ARTIFACTS, CHECKPOINT_MAX_RESULT_CHARS, CHECKPOINT_LS_SENTINEL, CKPT_SCHEMA_VERSION, fnv1a, fnv1a64, checkpointInputHash, resumeMode, decideCheckpointResume, serializeCheckpoint, parseCheckpointRead, checkpointReadCmd, checkpointAppendCmd, } from './feature-adr-checkpoints.js';
|
|
40
|
+
export { REQE_SCHEMA, REQE_SCOPE, modelFamily, shouldEmitReqeDebt, buildReqeDebt, parseReqeDebt, buildReqeBrief, extractReportGrade, settleReqeDebt, renderReqeList, } from './reqe.js';
|
|
40
41
|
export { detectQueryLang, relevanceFloorFor, selectHookHits, renderHookContext, hasEnoughSignal, DEFAULT_RECALL_FLOORS, DEFAULT_RECALL_HOOK_LIMIT, DEFAULT_RECALL_HOOK_BUDGET_CHARS, MIN_PROMPT_CHARS, MIN_CONTENT_TOKENS, } from './recall-hook-policy.js';
|
|
41
42
|
export { RECALL_USAGE_LOG_RELATIVE, RECALL_USAGE_LOG_MAX_BYTES, RECALL_USAGE_COMPACT_TARGET_BYTES, formatRecallUsageRecord, buildRecallUsageRecord, parseRecallUsageLog, aggregateRecallUsage, buildRecallUsageReport, shouldCompactRecallUsageLogSize, compactRecallUsageLog, compactRecallUsageLogChecked, } from './recall-usage.js';
|
|
42
43
|
export { EVENT_CHAIN_SCOPE, EVENT_CHAIN_GENESIS_HASH, EVENT_CHAIN_TAIL_BYTES, EVENT_CHAIN_FIELD_OVERHEAD_BYTES, EVENT_CHAIN_LEDGER_KIND, EVENT_CHAIN_DEFECT_KINDS, fnv1a32, chainHashOf, chainLinesOf, lastChainLine, readTailInfo, appendChainedLines, EMPTY_LOG_TAIL, nextChainFields, withChainFields, chainRecordLines, chainRewrite, defaultEventWeight, eventWeightOfText, verifyEventChain, verifyEventChainText, renderEventChainVerification, rewriteSnapshot, rewriteSnapshotUnchanged, guardedRewrite, DEFAULT_REWRITE_ATTEMPTS, } from './event-chain.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,mFAAmF;AACnF,MAAM,CAAC,MAAM,oBAAoB,GAC9B,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,iBAAiB,CAAyB,CAAC,OAAO,CAAC;AAErF,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,cAAc,cAAc,CAAC;AAC7B,iGAAiG;AACjG,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,mB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AAoB,CAAC;AAEnC,kGAAkG;AAClG,gGAAgG;AAChG,wBAAwB;AACxB,cAAc,kBAAkB,CAAC;AAEjC,oGAAoG;AACpG,oGAAoG;AACpG,2DAA2D;AAC3D,oGAAoG;AACpG,qFAAqF;AACrF,OAAO,EACL,QAAQ,EACR,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,GAkB1B,MAAM,mBAAmB,CAAC;AAE3B,mGAAmG;AACnG,qEAAqE;AACrE,cAAc,YAAY,CAAC;AAE3B,gGAAgG;AAChG,mGAAmG;AACnG,mGAAmG;AACnG,cAAc,cAAc,CAAC"}
|
package/dist/reqe.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* re-QE debt — the pure half of `dz reqe` (backlog 6b40e667, goal honest-quality).
|
|
3
|
+
*
|
|
4
|
+
* The cross-model-QE guard ("the model that writes code must not self-review") is an ADR-named
|
|
5
|
+
* safety property of the feature-adr pipeline. The usage-adaptive override consciously SUSPENDS it
|
|
6
|
+
* (FR-2.9): at >= threshold usage every remaining stage — including Step-8 QE — switches to Codex,
|
|
7
|
+
* so coder and reviewer become the SAME family. The rule doc said "run an independent re-QE after
|
|
8
|
+
* limits reset" — a human instruction on the weakest detection layer. This module turns it into a
|
|
9
|
+
* DEBT with a lifecycle:
|
|
10
|
+
*
|
|
11
|
+
* emit — the workflow records features/<slug>/.fa-state/reqe-due.json when Step-8 actually ran
|
|
12
|
+
* same-family under the override (not on every switch — a switch before Step 8 that
|
|
13
|
+
* still got cross-family QE creates no debt);
|
|
14
|
+
* list — `dz reqe` scans the debts; `dz usage` surfaces the count so the moment limits free up
|
|
15
|
+
* is the moment the debt is visible;
|
|
16
|
+
* brief — `dz reqe --slug <s>` prints a ready cross-family review brief (the OTHER family than
|
|
17
|
+
* the coder);
|
|
18
|
+
* settle — `dz reqe --slug <s> --done --report <file>` clears the debt FAIL-CLOSED: only against
|
|
19
|
+
* an existing, non-trivial report that names a grade; the settlement is appended to
|
|
20
|
+
* 08_qe_report.md so the artifact trail closes.
|
|
21
|
+
*
|
|
22
|
+
* HONEST SCOPE: nothing here re-runs QE automatically (no background spend — the human decides);
|
|
23
|
+
* the same-family CLAUDE belt fallback (codex unavailable) is out of scope by design — it is
|
|
24
|
+
* already logged loudly at run time and is not a limit-pressure artifact; runs from before this
|
|
25
|
+
* feature carry no marker and are UNDETERMINABLE, not debt-free.
|
|
26
|
+
*/
|
|
27
|
+
export declare const REQE_SCHEMA = "reqe-due-1";
|
|
28
|
+
export declare const REQE_SCOPE: string;
|
|
29
|
+
export type ModelFamily = 'claude' | 'openai';
|
|
30
|
+
/** Family classification shared with the workflow's acFamOf (codex/gpt/openai markers ⇒ openai).
|
|
31
|
+
* DELIBERATELY binary over the workflow's own CONTROLLED vocabulary (coderUsed ∈ claude | codex |
|
|
32
|
+
* codex-fallback; qeReviewerUsed ∈ claude | codex) — this is never fed arbitrary model ids, so the
|
|
33
|
+
* claude default is the correct reading of "not a codex marker", not a fail-open (Codex QE #11,
|
|
34
|
+
* accepted with this documentation). */
|
|
35
|
+
export declare function modelFamily(spec: string | null | undefined): ModelFamily;
|
|
36
|
+
export interface ReqeEmitDecision {
|
|
37
|
+
emit: boolean;
|
|
38
|
+
reason: string;
|
|
39
|
+
}
|
|
40
|
+
/** Emit iff the QE stage label carries the workflow's ' (usage-switched)' marker AND the reviewer
|
|
41
|
+
* family equals the coder family. Marker-only (cross-family survived the switch) or same-family
|
|
42
|
+
* WITHOUT the marker (the codex-unavailable Claude belt — degraded loudly at run time, not a
|
|
43
|
+
* limit-pressure artifact) both create NO debt. */
|
|
44
|
+
export declare function shouldEmitReqeDebt(input: {
|
|
45
|
+
coderUsed: string | null | undefined;
|
|
46
|
+
qeReviewerUsed: string | null | undefined;
|
|
47
|
+
qeModelLabel: string | null | undefined;
|
|
48
|
+
}): ReqeEmitDecision;
|
|
49
|
+
export interface ReqeDebt {
|
|
50
|
+
schema: typeof REQE_SCHEMA;
|
|
51
|
+
slug: string;
|
|
52
|
+
coderFamily: ModelFamily;
|
|
53
|
+
qeFamily: ModelFamily;
|
|
54
|
+
qeGrade: string | null;
|
|
55
|
+
reason: string;
|
|
56
|
+
emittedAt: string | null;
|
|
57
|
+
/** The emitting run's identity (the workflow's qe inputHash). Lets a LATER run on the same slug
|
|
58
|
+
* emit a fresh debt even though an older settlement exists, while the SAME run's resume never
|
|
59
|
+
* re-opens a debt its settlement already covered (Codex QE round-2 #2). Optional: debts from
|
|
60
|
+
* before this field settle normally. */
|
|
61
|
+
runStamp?: string | null;
|
|
62
|
+
}
|
|
63
|
+
/** Build the debt record (the workflow serializes this; emittedAt is stamped by the writer agent's
|
|
64
|
+
* shell `date`, so the sandbox needs no Date). */
|
|
65
|
+
export declare function buildReqeDebt(input: {
|
|
66
|
+
slug: string;
|
|
67
|
+
coderUsed: string | null | undefined;
|
|
68
|
+
qeReviewerUsed: string | null | undefined;
|
|
69
|
+
qeGrade: string | null | undefined;
|
|
70
|
+
reason: string;
|
|
71
|
+
emittedAt?: string | null;
|
|
72
|
+
}): ReqeDebt;
|
|
73
|
+
/** Parse + validate a debt file's text. null = not a valid debt (the caller reports it as
|
|
74
|
+
* malformed — a corrupt debt file is NAMED, never silently dropped). */
|
|
75
|
+
export declare function parseReqeDebt(text: string): ReqeDebt | null;
|
|
76
|
+
export interface ReqeBrief {
|
|
77
|
+
reviewFamily: ModelFamily;
|
|
78
|
+
header: string;
|
|
79
|
+
instructions: readonly string[];
|
|
80
|
+
codexCmdTemplate: string | null;
|
|
81
|
+
}
|
|
82
|
+
/** The ready-to-run cross-family review brief. Review family = the OTHER family than the CODER
|
|
83
|
+
* (reviewing with the other-than-reviewer family would let a codex-coded, codex-reviewed run be
|
|
84
|
+
* "re-reviewed" by codex again). */
|
|
85
|
+
export declare function buildReqeBrief(debt: ReqeDebt, artifactsDir: string): ReqeBrief;
|
|
86
|
+
export interface ReqeSettlement {
|
|
87
|
+
ok: boolean;
|
|
88
|
+
error: string | null;
|
|
89
|
+
grade: string | null;
|
|
90
|
+
epilogue: string | null;
|
|
91
|
+
}
|
|
92
|
+
/** Extract the verdict grade from a report, or null. LINE-ANCHORED and range-proof (Codex QE #7):
|
|
93
|
+
* the boilerplate phrase `GRADE A-F` must not read as grade A, so a letter followed by a dash and
|
|
94
|
+
* another grade letter is rejected; and the grade must head its line (a quoted "do not assign
|
|
95
|
+
* GRADE A" mid-paragraph is not a verdict). Conflicting distinct grades ⇒ null (ambiguous). */
|
|
96
|
+
export declare function extractReportGrade(text: string): string | null;
|
|
97
|
+
/** FAIL-CLOSED settlement validation: the report must be non-trivial (>= 200 chars of substance)
|
|
98
|
+
* and must NAME exactly one line-anchored grade. A settlement that cannot cite its evidence is
|
|
99
|
+
* refused — clearing a debt against an empty file would re-open the exact hole this feature closes.
|
|
100
|
+
* HONEST LIMIT (documented, not hidden): the validator proves the settlement is PROCEDURALLY sound
|
|
101
|
+
* (a distinct, graded report exists); it cannot prove which model authored the text — attribution
|
|
102
|
+
* stays with the human running the brief. */
|
|
103
|
+
export declare function settleReqeDebt(debt: ReqeDebt, reportText: string, reportPath: string): ReqeSettlement;
|
|
104
|
+
/** Render the debt list for `dz reqe` / the `dz usage` surfacing line. */
|
|
105
|
+
export declare function renderReqeList(debts: readonly ReqeDebt[], malformed: number): string[];
|
|
106
|
+
//# sourceMappingURL=reqe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reqe.d.ts","sourceRoot":"","sources":["../src/reqe.ts"],"names":[],"mappings":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,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,GAAG,QAAQ,CAUX;AAED;wEACwE;AACxE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAwB3D;AAED,MAAM,WAAW,SAAS;IACxB,YAAY,EAAE,WAAW,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED;;oCAEoC;AACpC,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,GAAG,SAAS,CAwB9E;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED;;;+FAG+F;AAC/F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAO9D;AAED;;;;;6CAK6C;AAC7C,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,cAAc,CAyBrG;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAatF"}
|
package/dist/reqe.js
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* re-QE debt — the pure half of `dz reqe` (backlog 6b40e667, goal honest-quality).
|
|
3
|
+
*
|
|
4
|
+
* The cross-model-QE guard ("the model that writes code must not self-review") is an ADR-named
|
|
5
|
+
* safety property of the feature-adr pipeline. The usage-adaptive override consciously SUSPENDS it
|
|
6
|
+
* (FR-2.9): at >= threshold usage every remaining stage — including Step-8 QE — switches to Codex,
|
|
7
|
+
* so coder and reviewer become the SAME family. The rule doc said "run an independent re-QE after
|
|
8
|
+
* limits reset" — a human instruction on the weakest detection layer. This module turns it into a
|
|
9
|
+
* DEBT with a lifecycle:
|
|
10
|
+
*
|
|
11
|
+
* emit — the workflow records features/<slug>/.fa-state/reqe-due.json when Step-8 actually ran
|
|
12
|
+
* same-family under the override (not on every switch — a switch before Step 8 that
|
|
13
|
+
* still got cross-family QE creates no debt);
|
|
14
|
+
* list — `dz reqe` scans the debts; `dz usage` surfaces the count so the moment limits free up
|
|
15
|
+
* is the moment the debt is visible;
|
|
16
|
+
* brief — `dz reqe --slug <s>` prints a ready cross-family review brief (the OTHER family than
|
|
17
|
+
* the coder);
|
|
18
|
+
* settle — `dz reqe --slug <s> --done --report <file>` clears the debt FAIL-CLOSED: only against
|
|
19
|
+
* an existing, non-trivial report that names a grade; the settlement is appended to
|
|
20
|
+
* 08_qe_report.md so the artifact trail closes.
|
|
21
|
+
*
|
|
22
|
+
* HONEST SCOPE: nothing here re-runs QE automatically (no background spend — the human decides);
|
|
23
|
+
* the same-family CLAUDE belt fallback (codex unavailable) is out of scope by design — it is
|
|
24
|
+
* already logged loudly at run time and is not a limit-pressure artifact; runs from before this
|
|
25
|
+
* feature carry no marker and are UNDETERMINABLE, not debt-free.
|
|
26
|
+
*/
|
|
27
|
+
export const REQE_SCHEMA = 'reqe-due-1';
|
|
28
|
+
export const REQE_SCOPE = 'scope: debt is emitted only when Step-8 QE actually ran on the coder’s own family under the ' +
|
|
29
|
+
'usage override; settling requires a graded cross-family report (fail-closed); nothing re-runs QE ' +
|
|
30
|
+
'automatically.';
|
|
31
|
+
/** Family classification shared with the workflow's acFamOf (codex/gpt/openai markers ⇒ openai).
|
|
32
|
+
* DELIBERATELY binary over the workflow's own CONTROLLED vocabulary (coderUsed ∈ claude | codex |
|
|
33
|
+
* codex-fallback; qeReviewerUsed ∈ claude | codex) — this is never fed arbitrary model ids, so the
|
|
34
|
+
* claude default is the correct reading of "not a codex marker", not a fail-open (Codex QE #11,
|
|
35
|
+
* accepted with this documentation). */
|
|
36
|
+
export function modelFamily(spec) {
|
|
37
|
+
return /codex|gpt|openai/i.test(String(spec ?? '')) ? 'openai' : 'claude';
|
|
38
|
+
}
|
|
39
|
+
/** Emit iff the QE stage label carries the workflow's ' (usage-switched)' marker AND the reviewer
|
|
40
|
+
* family equals the coder family. Marker-only (cross-family survived the switch) or same-family
|
|
41
|
+
* WITHOUT the marker (the codex-unavailable Claude belt — degraded loudly at run time, not a
|
|
42
|
+
* limit-pressure artifact) both create NO debt. */
|
|
43
|
+
export function shouldEmitReqeDebt(input) {
|
|
44
|
+
const switched = /\(usage-switched\)/.test(String(input.qeModelLabel ?? ''));
|
|
45
|
+
const coderFam = modelFamily(input.coderUsed);
|
|
46
|
+
const qeFam = modelFamily(input.qeReviewerUsed);
|
|
47
|
+
if (switched && coderFam === qeFam) {
|
|
48
|
+
return {
|
|
49
|
+
emit: true,
|
|
50
|
+
reason: 'usage-switched self-review: Step-8 QE ran on the coder’s own family (' + coderFam +
|
|
51
|
+
') under the limit override — the cross-model guard was suspended (FR-2.9)',
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
if (switched)
|
|
55
|
+
return { emit: false, reason: 'usage-switched but QE stayed cross-family (' + qeFam + ' vs coder ' + coderFam + ')' };
|
|
56
|
+
if (coderFam === qeFam)
|
|
57
|
+
return { emit: false, reason: 'same-family without the usage override (belt degrade — logged loudly at run time; out of re-QE-debt scope)' };
|
|
58
|
+
return { emit: false, reason: 'cross-family QE ran' };
|
|
59
|
+
}
|
|
60
|
+
/** Build the debt record (the workflow serializes this; emittedAt is stamped by the writer agent's
|
|
61
|
+
* shell `date`, so the sandbox needs no Date). */
|
|
62
|
+
export function buildReqeDebt(input) {
|
|
63
|
+
return {
|
|
64
|
+
schema: REQE_SCHEMA,
|
|
65
|
+
slug: input.slug,
|
|
66
|
+
coderFamily: modelFamily(input.coderUsed),
|
|
67
|
+
qeFamily: modelFamily(input.qeReviewerUsed),
|
|
68
|
+
qeGrade: input.qeGrade == null || String(input.qeGrade).trim() === '' ? null : String(input.qeGrade).trim(),
|
|
69
|
+
reason: input.reason,
|
|
70
|
+
emittedAt: input.emittedAt ?? null,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/** Parse + validate a debt file's text. null = not a valid debt (the caller reports it as
|
|
74
|
+
* malformed — a corrupt debt file is NAMED, never silently dropped). */
|
|
75
|
+
export function parseReqeDebt(text) {
|
|
76
|
+
let raw;
|
|
77
|
+
try {
|
|
78
|
+
raw = JSON.parse(String(text ?? ''));
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
const d = raw;
|
|
84
|
+
if (!d || typeof d !== 'object')
|
|
85
|
+
return null;
|
|
86
|
+
if (d.schema !== REQE_SCHEMA)
|
|
87
|
+
return null;
|
|
88
|
+
if (typeof d.slug !== 'string' || d.slug.trim() === '')
|
|
89
|
+
return null;
|
|
90
|
+
if (d.coderFamily !== 'claude' && d.coderFamily !== 'openai')
|
|
91
|
+
return null;
|
|
92
|
+
if (d.qeFamily !== 'claude' && d.qeFamily !== 'openai')
|
|
93
|
+
return null;
|
|
94
|
+
if (typeof d.reason !== 'string' || d.reason.trim() === '')
|
|
95
|
+
return null;
|
|
96
|
+
return {
|
|
97
|
+
schema: REQE_SCHEMA,
|
|
98
|
+
slug: d.slug,
|
|
99
|
+
coderFamily: d.coderFamily,
|
|
100
|
+
qeFamily: d.qeFamily,
|
|
101
|
+
qeGrade: typeof d.qeGrade === 'string' && d.qeGrade.trim() !== '' ? d.qeGrade.trim() : null,
|
|
102
|
+
reason: d.reason,
|
|
103
|
+
emittedAt: typeof d.emittedAt === 'string' && d.emittedAt.trim() !== '' ? d.emittedAt : null,
|
|
104
|
+
runStamp: typeof d.runStamp === 'string' && d.runStamp.trim() !== '' ? d.runStamp : null,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
/** The ready-to-run cross-family review brief. Review family = the OTHER family than the CODER
|
|
108
|
+
* (reviewing with the other-than-reviewer family would let a codex-coded, codex-reviewed run be
|
|
109
|
+
* "re-reviewed" by codex again). */
|
|
110
|
+
export function buildReqeBrief(debt, artifactsDir) {
|
|
111
|
+
const reviewFamily = debt.coderFamily === 'openai' ? 'claude' : 'openai';
|
|
112
|
+
const files = [
|
|
113
|
+
artifactsDir + '/07_code_changes/change_manifest.md',
|
|
114
|
+
artifactsDir + '/08_qe_report.md',
|
|
115
|
+
artifactsDir + '/03_adr/',
|
|
116
|
+
];
|
|
117
|
+
const instructions = [
|
|
118
|
+
'Independent re-QE for "' + debt.slug + '": the recorded Step-8 review ran on the coder’s own family (' + debt.coderFamily + ') under the usage override' + (debt.qeGrade ? ' and graded ' + debt.qeGrade : '') + '.',
|
|
119
|
+
'Review with the ' + reviewFamily.toUpperCase() + ' family (the OTHER family than the coder — the suspended guard, restored).',
|
|
120
|
+
'Read: ' + files.join(' , ') + ' plus every file the change manifest lists.',
|
|
121
|
+
'Adversarially verify: correctness, edge cases, the ADR-named load-bearing property HAS a test, and whether the same-family review missed anything.',
|
|
122
|
+
'Output: GRADE A-F + numbered findings with file:line and severity; write the report to ' + artifactsDir + '/08b_reqe_report.md.',
|
|
123
|
+
'Then settle the debt: dz reqe --slug ' + debt.slug + ' --done --report ' + artifactsDir + '/08b_reqe_report.md',
|
|
124
|
+
];
|
|
125
|
+
const codexCmdTemplate = reviewFamily === 'openai'
|
|
126
|
+
? 'codex exec -m <probed-id> -c model_reasoning_effort="high" --sandbox read-only "<the brief above>" < /dev/null # probe the id first: ids are account-specific'
|
|
127
|
+
: null;
|
|
128
|
+
return {
|
|
129
|
+
reviewFamily,
|
|
130
|
+
header: 're-QE brief for ' + debt.slug + ' (' + (debt.emittedAt ?? 'emitted: unknown') + ')',
|
|
131
|
+
instructions,
|
|
132
|
+
codexCmdTemplate,
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
/** Extract the verdict grade from a report, or null. LINE-ANCHORED and range-proof (Codex QE #7):
|
|
136
|
+
* the boilerplate phrase `GRADE A-F` must not read as grade A, so a letter followed by a dash and
|
|
137
|
+
* another grade letter is rejected; and the grade must head its line (a quoted "do not assign
|
|
138
|
+
* GRADE A" mid-paragraph is not a verdict). Conflicting distinct grades ⇒ null (ambiguous). */
|
|
139
|
+
export function extractReportGrade(text) {
|
|
140
|
+
// the lookahead rejects RANGES in punctuation form (A-F, A/F) AND word form (A through F,
|
|
141
|
+
// A to F) — Codex QE round-2 #6: 'GRADE A through F' must not read as grade A
|
|
142
|
+
const matches = [...String(text ?? '').matchAll(/^\s*(?:\*{0,2}#{0,4}\s*)?GRADE\s*[:=—–-]?\s*([A-F])\b(?!\s*(?:[-–—/]|through|to|thru)\s*[A-F]\b)/gim)];
|
|
143
|
+
const distinct = new Set(matches.map((m) => (m[1] ?? '').toUpperCase()).filter((g) => g !== ''));
|
|
144
|
+
if (distinct.size !== 1)
|
|
145
|
+
return null;
|
|
146
|
+
return [...distinct][0] ?? null;
|
|
147
|
+
}
|
|
148
|
+
/** FAIL-CLOSED settlement validation: the report must be non-trivial (>= 200 chars of substance)
|
|
149
|
+
* and must NAME exactly one line-anchored grade. A settlement that cannot cite its evidence is
|
|
150
|
+
* refused — clearing a debt against an empty file would re-open the exact hole this feature closes.
|
|
151
|
+
* HONEST LIMIT (documented, not hidden): the validator proves the settlement is PROCEDURALLY sound
|
|
152
|
+
* (a distinct, graded report exists); it cannot prove which model authored the text — attribution
|
|
153
|
+
* stays with the human running the brief. */
|
|
154
|
+
export function settleReqeDebt(debt, reportText, reportPath) {
|
|
155
|
+
const text = String(reportText ?? '');
|
|
156
|
+
if (text.trim().length < 200) {
|
|
157
|
+
return { ok: false, error: 'report too small to be a review (< 200 chars of substance) — refusing to settle', grade: null, epilogue: null };
|
|
158
|
+
}
|
|
159
|
+
const grade = extractReportGrade(text);
|
|
160
|
+
if (grade === null) {
|
|
161
|
+
return { ok: false, error: 'report names no unambiguous line-anchored GRADE (A-F) — text without exactly one verdict grade is not a verdict; refusing to settle', grade: null, epilogue: null };
|
|
162
|
+
}
|
|
163
|
+
const reviewFamily = debt.coderFamily === 'openai' ? 'claude' : 'openai';
|
|
164
|
+
const epilogue = [
|
|
165
|
+
'',
|
|
166
|
+
'---',
|
|
167
|
+
'',
|
|
168
|
+
'## re-QE settlement (cross-model debt cleared)',
|
|
169
|
+
'',
|
|
170
|
+
'The original Step-8 review ran on the coder’s own family (' + debt.coderFamily + ') under the',
|
|
171
|
+
'usage override (' + debt.reason + '). An independent ' + reviewFamily.toUpperCase() + '-family re-QE was performed:',
|
|
172
|
+
'',
|
|
173
|
+
'- report: `' + reportPath + '`',
|
|
174
|
+
'- re-QE grade: **' + grade + '**' + (debt.qeGrade ? ' (same-family grade on record: ' + debt.qeGrade + ')' : ''),
|
|
175
|
+
'- settled via `dz reqe --done` (fail-closed: an existing graded report is required).',
|
|
176
|
+
'',
|
|
177
|
+
].join('\n');
|
|
178
|
+
return { ok: true, error: null, grade, epilogue };
|
|
179
|
+
}
|
|
180
|
+
/** Render the debt list for `dz reqe` / the `dz usage` surfacing line. */
|
|
181
|
+
export function renderReqeList(debts, malformed) {
|
|
182
|
+
const lines = [];
|
|
183
|
+
if (debts.length === 0 && malformed === 0) {
|
|
184
|
+
lines.push('dz reqe: no re-QE debts — every recorded run kept cross-model QE (or none used the usage override).');
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
lines.push('dz reqe — ' + debts.length + ' unsettled re-QE debt(s):');
|
|
188
|
+
for (const d of debts) {
|
|
189
|
+
lines.push(' ' + d.slug + ' coder=' + d.coderFamily + ' qe=' + d.qeFamily + (d.qeGrade ? ' grade=' + d.qeGrade : '') + (d.emittedAt ? ' ' + d.emittedAt : '') + ' → dz reqe --slug ' + d.slug);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (malformed > 0)
|
|
193
|
+
lines.push(' ' + malformed + ' malformed debt file(s) skipped (named, never silent).');
|
|
194
|
+
lines.push(REQE_SCOPE);
|
|
195
|
+
return lines;
|
|
196
|
+
}
|
|
197
|
+
//# sourceMappingURL=reqe.js.map
|
package/dist/reqe.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reqe.js","sourceRoot":"","sources":["../src/reqe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AAExC,MAAM,CAAC,MAAM,UAAU,GACrB,8FAA8F;IAC9F,mGAAmG;IACnG,gBAAgB,CAAC;AAInB;;;;wCAIwC;AACxC,MAAM,UAAU,WAAW,CAAC,IAA+B;IACzD,OAAO,mBAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC5E,CAAC;AAOD;;;mDAGmD;AACnD,MAAM,UAAU,kBAAkB,CAAC,KAIlC;IACC,MAAM,QAAQ,GAAG,oBAAoB,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7E,MAAM,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC9C,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAChD,IAAI,QAAQ,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACnC,OAAO;YACL,IAAI,EAAE,IAAI;YACV,MAAM,EACJ,uEAAuE,GAAG,QAAQ;gBAClF,2EAA2E;SAC9E,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ;QAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,6CAA6C,GAAG,KAAK,GAAG,YAAY,GAAG,QAAQ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,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACrM,CAAC;IACH,CAAC;IACD,IAAI,SAAS,GAAG,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,SAAS,GAAG,wDAAwD,CAAC,CAAC;IAC3G,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvB,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzhechkov/harness-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.149",
|
|
4
4
|
"description": "Shared harness logic - skill loading, additive apply, and the init/sync/verify/doctor operations.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"yaml": "^2.0.0",
|
|
35
35
|
"@dzhechkov/adapter-copilot": "0.1.1",
|
|
36
36
|
"@dzhechkov/adapter-cursor": "0.1.1",
|
|
37
|
-
"@dzhechkov/adapter-windsurf": "0.1.1",
|
|
38
37
|
"@dzhechkov/adapter-gemini": "0.1.1",
|
|
39
|
-
"@dzhechkov/adapter-
|
|
38
|
+
"@dzhechkov/adapter-windsurf": "0.1.1",
|
|
40
39
|
"@dzhechkov/core": "0.2.14",
|
|
41
|
-
"@dzhechkov/memory": "0.2.9"
|
|
40
|
+
"@dzhechkov/memory": "0.2.9",
|
|
41
|
+
"@dzhechkov/adapter-agents-md": "0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@ruvector/rvf": {
|
package/sbom.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"hashes": [
|
|
26
26
|
{
|
|
27
27
|
"alg": "SHA-256",
|
|
28
|
-
"content": "
|
|
28
|
+
"content": "6d047e89ebd5532a54d5200fa86660b3a8f1e96e128a5a4042d718d2cacae2ec"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
31
|
},
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
"hashes": [
|
|
1296
1296
|
{
|
|
1297
1297
|
"alg": "SHA-256",
|
|
1298
|
-
"content": "
|
|
1298
|
+
"content": "1651978c5ce1fc510541d6ae3cc09f9cd74dde1e31d460d01b16f637dd80c8d2"
|
|
1299
1299
|
}
|
|
1300
1300
|
]
|
|
1301
1301
|
},
|
|
@@ -1305,7 +1305,7 @@
|
|
|
1305
1305
|
"hashes": [
|
|
1306
1306
|
{
|
|
1307
1307
|
"alg": "SHA-256",
|
|
1308
|
-
"content": "
|
|
1308
|
+
"content": "a8098db1327beb284a22ac8b2410d030578e55a0648c8c8fbc7934dfa966ef85"
|
|
1309
1309
|
}
|
|
1310
1310
|
]
|
|
1311
1311
|
},
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
"hashes": [
|
|
1316
1316
|
{
|
|
1317
1317
|
"alg": "SHA-256",
|
|
1318
|
-
"content": "
|
|
1318
|
+
"content": "46032dd7deeb29b7a71d13d068620bd197a9a4d503e2c74089cbff0b9314859e"
|
|
1319
1319
|
}
|
|
1320
1320
|
]
|
|
1321
1321
|
},
|
|
@@ -1325,7 +1325,7 @@
|
|
|
1325
1325
|
"hashes": [
|
|
1326
1326
|
{
|
|
1327
1327
|
"alg": "SHA-256",
|
|
1328
|
-
"content": "
|
|
1328
|
+
"content": "ad9870713ae8589d93e031048a9af4cea0371a35b53194870a672d02e66ccaaa"
|
|
1329
1329
|
}
|
|
1330
1330
|
]
|
|
1331
1331
|
},
|
|
@@ -2009,6 +2009,46 @@
|
|
|
2009
2009
|
}
|
|
2010
2010
|
]
|
|
2011
2011
|
},
|
|
2012
|
+
{
|
|
2013
|
+
"type": "file",
|
|
2014
|
+
"name": "dist/reqe.d.ts",
|
|
2015
|
+
"hashes": [
|
|
2016
|
+
{
|
|
2017
|
+
"alg": "SHA-256",
|
|
2018
|
+
"content": "115fa0797ad0e98a452f9987c15b038e22b18486043c8890c65cc32c9dc51af9"
|
|
2019
|
+
}
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"type": "file",
|
|
2024
|
+
"name": "dist/reqe.d.ts.map",
|
|
2025
|
+
"hashes": [
|
|
2026
|
+
{
|
|
2027
|
+
"alg": "SHA-256",
|
|
2028
|
+
"content": "75996953748647f0cbe548c73daa5cb7cd1f8906f2df474926c31b9e5fa223f9"
|
|
2029
|
+
}
|
|
2030
|
+
]
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
"type": "file",
|
|
2034
|
+
"name": "dist/reqe.js",
|
|
2035
|
+
"hashes": [
|
|
2036
|
+
{
|
|
2037
|
+
"alg": "SHA-256",
|
|
2038
|
+
"content": "229014a8fa37faeb716d7f0deb22758a133ce50479b849b072eb6a285e78db40"
|
|
2039
|
+
}
|
|
2040
|
+
]
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"type": "file",
|
|
2044
|
+
"name": "dist/reqe.js.map",
|
|
2045
|
+
"hashes": [
|
|
2046
|
+
{
|
|
2047
|
+
"alg": "SHA-256",
|
|
2048
|
+
"content": "c28182b280cf2c016a2b1d2ef15a3a335ff25993220767ae9fc7c74af76ba022"
|
|
2049
|
+
}
|
|
2050
|
+
]
|
|
2051
|
+
},
|
|
2012
2052
|
{
|
|
2013
2053
|
"type": "file",
|
|
2014
2054
|
"name": "dist/risk-scoring.d.ts",
|
|
@@ -2775,7 +2815,7 @@
|
|
|
2775
2815
|
"hashes": [
|
|
2776
2816
|
{
|
|
2777
2817
|
"alg": "SHA-256",
|
|
2778
|
-
"content": "
|
|
2818
|
+
"content": "76997cf27ff9c8901df35b45fbdb1c91f201396f070dab0579289b8aa9ac851c"
|
|
2779
2819
|
}
|
|
2780
2820
|
]
|
|
2781
2821
|
},
|
|
@@ -3095,7 +3135,7 @@
|
|
|
3095
3135
|
"hashes": [
|
|
3096
3136
|
{
|
|
3097
3137
|
"alg": "SHA-256",
|
|
3098
|
-
"content": "
|
|
3138
|
+
"content": "5eb07fb5e21e7be1e78a11243d6f86b9c84461eec22a954102549b5e237b7ab2"
|
|
3099
3139
|
}
|
|
3100
3140
|
]
|
|
3101
3141
|
},
|
|
@@ -3259,6 +3299,16 @@
|
|
|
3259
3299
|
}
|
|
3260
3300
|
]
|
|
3261
3301
|
},
|
|
3302
|
+
{
|
|
3303
|
+
"type": "file",
|
|
3304
|
+
"name": "src/reqe.ts",
|
|
3305
|
+
"hashes": [
|
|
3306
|
+
{
|
|
3307
|
+
"alg": "SHA-256",
|
|
3308
|
+
"content": "67988858ff527e5b465aa46b341aa710465e8cb0f72038be30f2419e0ff12cc3"
|
|
3309
|
+
}
|
|
3310
|
+
]
|
|
3311
|
+
},
|
|
3262
3312
|
{
|
|
3263
3313
|
"type": "file",
|
|
3264
3314
|
"name": "src/risk-scoring.ts",
|
|
@@ -4109,6 +4159,16 @@
|
|
|
4109
4159
|
}
|
|
4110
4160
|
]
|
|
4111
4161
|
},
|
|
4162
|
+
{
|
|
4163
|
+
"type": "file",
|
|
4164
|
+
"name": "test/reqe.test.ts",
|
|
4165
|
+
"hashes": [
|
|
4166
|
+
{
|
|
4167
|
+
"alg": "SHA-256",
|
|
4168
|
+
"content": "c5bb25b04caa8e9c14111ab838a135f7e2564b9fd1b7624520827bc95600661e"
|
|
4169
|
+
}
|
|
4170
|
+
]
|
|
4171
|
+
},
|
|
4112
4172
|
{
|
|
4113
4173
|
"type": "file",
|
|
4114
4174
|
"name": "test/routing-outcomes.test.ts",
|
package/src/index.ts
CHANGED
|
@@ -155,6 +155,19 @@ export {
|
|
|
155
155
|
checkpointAppendCmd,
|
|
156
156
|
} from './feature-adr-checkpoints.js';
|
|
157
157
|
export type { CheckpointStage, CheckpointEntry, ResumeMode, ResumeDecision, ParsedCheckpointRead } from './feature-adr-checkpoints.js';
|
|
158
|
+
export {
|
|
159
|
+
REQE_SCHEMA,
|
|
160
|
+
REQE_SCOPE,
|
|
161
|
+
modelFamily,
|
|
162
|
+
shouldEmitReqeDebt,
|
|
163
|
+
buildReqeDebt,
|
|
164
|
+
parseReqeDebt,
|
|
165
|
+
buildReqeBrief,
|
|
166
|
+
extractReportGrade,
|
|
167
|
+
settleReqeDebt,
|
|
168
|
+
renderReqeList,
|
|
169
|
+
} from './reqe.js';
|
|
170
|
+
export type { ModelFamily, ReqeEmitDecision, ReqeDebt, ReqeBrief, ReqeSettlement } from './reqe.js';
|
|
158
171
|
export {
|
|
159
172
|
detectQueryLang,
|
|
160
173
|
relevanceFloorFor,
|
package/src/reqe.ts
ADDED
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* re-QE debt — the pure half of `dz reqe` (backlog 6b40e667, goal honest-quality).
|
|
3
|
+
*
|
|
4
|
+
* The cross-model-QE guard ("the model that writes code must not self-review") is an ADR-named
|
|
5
|
+
* safety property of the feature-adr pipeline. The usage-adaptive override consciously SUSPENDS it
|
|
6
|
+
* (FR-2.9): at >= threshold usage every remaining stage — including Step-8 QE — switches to Codex,
|
|
7
|
+
* so coder and reviewer become the SAME family. The rule doc said "run an independent re-QE after
|
|
8
|
+
* limits reset" — a human instruction on the weakest detection layer. This module turns it into a
|
|
9
|
+
* DEBT with a lifecycle:
|
|
10
|
+
*
|
|
11
|
+
* emit — the workflow records features/<slug>/.fa-state/reqe-due.json when Step-8 actually ran
|
|
12
|
+
* same-family under the override (not on every switch — a switch before Step 8 that
|
|
13
|
+
* still got cross-family QE creates no debt);
|
|
14
|
+
* list — `dz reqe` scans the debts; `dz usage` surfaces the count so the moment limits free up
|
|
15
|
+
* is the moment the debt is visible;
|
|
16
|
+
* brief — `dz reqe --slug <s>` prints a ready cross-family review brief (the OTHER family than
|
|
17
|
+
* the coder);
|
|
18
|
+
* settle — `dz reqe --slug <s> --done --report <file>` clears the debt FAIL-CLOSED: only against
|
|
19
|
+
* an existing, non-trivial report that names a grade; the settlement is appended to
|
|
20
|
+
* 08_qe_report.md so the artifact trail closes.
|
|
21
|
+
*
|
|
22
|
+
* HONEST SCOPE: nothing here re-runs QE automatically (no background spend — the human decides);
|
|
23
|
+
* the same-family CLAUDE belt fallback (codex unavailable) is out of scope by design — it is
|
|
24
|
+
* already logged loudly at run time and is not a limit-pressure artifact; runs from before this
|
|
25
|
+
* feature carry no marker and are UNDETERMINABLE, not debt-free.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
export const REQE_SCHEMA = 'reqe-due-1';
|
|
29
|
+
|
|
30
|
+
export const REQE_SCOPE =
|
|
31
|
+
'scope: debt is emitted only when Step-8 QE actually ran on the coder’s own family under the ' +
|
|
32
|
+
'usage override; settling requires a graded cross-family report (fail-closed); nothing re-runs QE ' +
|
|
33
|
+
'automatically.';
|
|
34
|
+
|
|
35
|
+
export type ModelFamily = 'claude' | 'openai';
|
|
36
|
+
|
|
37
|
+
/** Family classification shared with the workflow's acFamOf (codex/gpt/openai markers ⇒ openai).
|
|
38
|
+
* DELIBERATELY binary over the workflow's own CONTROLLED vocabulary (coderUsed ∈ claude | codex |
|
|
39
|
+
* codex-fallback; qeReviewerUsed ∈ claude | codex) — this is never fed arbitrary model ids, so the
|
|
40
|
+
* claude default is the correct reading of "not a codex marker", not a fail-open (Codex QE #11,
|
|
41
|
+
* accepted with this documentation). */
|
|
42
|
+
export function modelFamily(spec: string | null | undefined): ModelFamily {
|
|
43
|
+
return /codex|gpt|openai/i.test(String(spec ?? '')) ? 'openai' : 'claude';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ReqeEmitDecision {
|
|
47
|
+
emit: boolean;
|
|
48
|
+
reason: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Emit iff the QE stage label carries the workflow's ' (usage-switched)' marker AND the reviewer
|
|
52
|
+
* family equals the coder family. Marker-only (cross-family survived the switch) or same-family
|
|
53
|
+
* WITHOUT the marker (the codex-unavailable Claude belt — degraded loudly at run time, not a
|
|
54
|
+
* limit-pressure artifact) both create NO debt. */
|
|
55
|
+
export function shouldEmitReqeDebt(input: {
|
|
56
|
+
coderUsed: string | null | undefined;
|
|
57
|
+
qeReviewerUsed: string | null | undefined;
|
|
58
|
+
qeModelLabel: string | null | undefined;
|
|
59
|
+
}): ReqeEmitDecision {
|
|
60
|
+
const switched = /\(usage-switched\)/.test(String(input.qeModelLabel ?? ''));
|
|
61
|
+
const coderFam = modelFamily(input.coderUsed);
|
|
62
|
+
const qeFam = modelFamily(input.qeReviewerUsed);
|
|
63
|
+
if (switched && coderFam === qeFam) {
|
|
64
|
+
return {
|
|
65
|
+
emit: true,
|
|
66
|
+
reason:
|
|
67
|
+
'usage-switched self-review: Step-8 QE ran on the coder’s own family (' + coderFam +
|
|
68
|
+
') under the limit override — the cross-model guard was suspended (FR-2.9)',
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
if (switched) return { emit: false, reason: 'usage-switched but QE stayed cross-family (' + qeFam + ' vs coder ' + coderFam + ')' };
|
|
72
|
+
if (coderFam === qeFam) return { emit: false, reason: 'same-family without the usage override (belt degrade — logged loudly at run time; out of re-QE-debt scope)' };
|
|
73
|
+
return { emit: false, reason: 'cross-family QE ran' };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface ReqeDebt {
|
|
77
|
+
schema: typeof REQE_SCHEMA;
|
|
78
|
+
slug: string;
|
|
79
|
+
coderFamily: ModelFamily;
|
|
80
|
+
qeFamily: ModelFamily;
|
|
81
|
+
qeGrade: string | null;
|
|
82
|
+
reason: string;
|
|
83
|
+
emittedAt: string | null;
|
|
84
|
+
/** The emitting run's identity (the workflow's qe inputHash). Lets a LATER run on the same slug
|
|
85
|
+
* emit a fresh debt even though an older settlement exists, while the SAME run's resume never
|
|
86
|
+
* re-opens a debt its settlement already covered (Codex QE round-2 #2). Optional: debts from
|
|
87
|
+
* before this field settle normally. */
|
|
88
|
+
runStamp?: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** Build the debt record (the workflow serializes this; emittedAt is stamped by the writer agent's
|
|
92
|
+
* shell `date`, so the sandbox needs no Date). */
|
|
93
|
+
export function buildReqeDebt(input: {
|
|
94
|
+
slug: string;
|
|
95
|
+
coderUsed: string | null | undefined;
|
|
96
|
+
qeReviewerUsed: string | null | undefined;
|
|
97
|
+
qeGrade: string | null | undefined;
|
|
98
|
+
reason: string;
|
|
99
|
+
emittedAt?: string | null;
|
|
100
|
+
}): ReqeDebt {
|
|
101
|
+
return {
|
|
102
|
+
schema: REQE_SCHEMA,
|
|
103
|
+
slug: input.slug,
|
|
104
|
+
coderFamily: modelFamily(input.coderUsed),
|
|
105
|
+
qeFamily: modelFamily(input.qeReviewerUsed),
|
|
106
|
+
qeGrade: input.qeGrade == null || String(input.qeGrade).trim() === '' ? null : String(input.qeGrade).trim(),
|
|
107
|
+
reason: input.reason,
|
|
108
|
+
emittedAt: input.emittedAt ?? null,
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** Parse + validate a debt file's text. null = not a valid debt (the caller reports it as
|
|
113
|
+
* malformed — a corrupt debt file is NAMED, never silently dropped). */
|
|
114
|
+
export function parseReqeDebt(text: string): ReqeDebt | null {
|
|
115
|
+
let raw: unknown;
|
|
116
|
+
try {
|
|
117
|
+
raw = JSON.parse(String(text ?? ''));
|
|
118
|
+
} catch {
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
const d = raw as Partial<ReqeDebt>;
|
|
122
|
+
if (!d || typeof d !== 'object') return null;
|
|
123
|
+
if (d.schema !== REQE_SCHEMA) return null;
|
|
124
|
+
if (typeof d.slug !== 'string' || d.slug.trim() === '') return null;
|
|
125
|
+
if (d.coderFamily !== 'claude' && d.coderFamily !== 'openai') return null;
|
|
126
|
+
if (d.qeFamily !== 'claude' && d.qeFamily !== 'openai') return null;
|
|
127
|
+
if (typeof d.reason !== 'string' || d.reason.trim() === '') return null;
|
|
128
|
+
return {
|
|
129
|
+
schema: REQE_SCHEMA,
|
|
130
|
+
slug: d.slug,
|
|
131
|
+
coderFamily: d.coderFamily,
|
|
132
|
+
qeFamily: d.qeFamily,
|
|
133
|
+
qeGrade: typeof d.qeGrade === 'string' && d.qeGrade.trim() !== '' ? d.qeGrade.trim() : null,
|
|
134
|
+
reason: d.reason,
|
|
135
|
+
emittedAt: typeof d.emittedAt === 'string' && d.emittedAt.trim() !== '' ? d.emittedAt : null,
|
|
136
|
+
runStamp: typeof d.runStamp === 'string' && d.runStamp.trim() !== '' ? d.runStamp : null,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface ReqeBrief {
|
|
141
|
+
reviewFamily: ModelFamily;
|
|
142
|
+
header: string;
|
|
143
|
+
instructions: readonly string[];
|
|
144
|
+
codexCmdTemplate: string | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** The ready-to-run cross-family review brief. Review family = the OTHER family than the CODER
|
|
148
|
+
* (reviewing with the other-than-reviewer family would let a codex-coded, codex-reviewed run be
|
|
149
|
+
* "re-reviewed" by codex again). */
|
|
150
|
+
export function buildReqeBrief(debt: ReqeDebt, artifactsDir: string): ReqeBrief {
|
|
151
|
+
const reviewFamily: ModelFamily = debt.coderFamily === 'openai' ? 'claude' : 'openai';
|
|
152
|
+
const files = [
|
|
153
|
+
artifactsDir + '/07_code_changes/change_manifest.md',
|
|
154
|
+
artifactsDir + '/08_qe_report.md',
|
|
155
|
+
artifactsDir + '/03_adr/',
|
|
156
|
+
];
|
|
157
|
+
const instructions = [
|
|
158
|
+
'Independent re-QE for "' + debt.slug + '": the recorded Step-8 review ran on the coder’s own family (' + debt.coderFamily + ') under the usage override' + (debt.qeGrade ? ' and graded ' + debt.qeGrade : '') + '.',
|
|
159
|
+
'Review with the ' + reviewFamily.toUpperCase() + ' family (the OTHER family than the coder — the suspended guard, restored).',
|
|
160
|
+
'Read: ' + files.join(' , ') + ' plus every file the change manifest lists.',
|
|
161
|
+
'Adversarially verify: correctness, edge cases, the ADR-named load-bearing property HAS a test, and whether the same-family review missed anything.',
|
|
162
|
+
'Output: GRADE A-F + numbered findings with file:line and severity; write the report to ' + artifactsDir + '/08b_reqe_report.md.',
|
|
163
|
+
'Then settle the debt: dz reqe --slug ' + debt.slug + ' --done --report ' + artifactsDir + '/08b_reqe_report.md',
|
|
164
|
+
];
|
|
165
|
+
const codexCmdTemplate = reviewFamily === 'openai'
|
|
166
|
+
? 'codex exec -m <probed-id> -c model_reasoning_effort="high" --sandbox read-only "<the brief above>" < /dev/null # probe the id first: ids are account-specific'
|
|
167
|
+
: null;
|
|
168
|
+
return {
|
|
169
|
+
reviewFamily,
|
|
170
|
+
header: 're-QE brief for ' + debt.slug + ' (' + (debt.emittedAt ?? 'emitted: unknown') + ')',
|
|
171
|
+
instructions,
|
|
172
|
+
codexCmdTemplate,
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface ReqeSettlement {
|
|
177
|
+
ok: boolean;
|
|
178
|
+
error: string | null;
|
|
179
|
+
grade: string | null;
|
|
180
|
+
epilogue: string | null;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/** Extract the verdict grade from a report, or null. LINE-ANCHORED and range-proof (Codex QE #7):
|
|
184
|
+
* the boilerplate phrase `GRADE A-F` must not read as grade A, so a letter followed by a dash and
|
|
185
|
+
* another grade letter is rejected; and the grade must head its line (a quoted "do not assign
|
|
186
|
+
* GRADE A" mid-paragraph is not a verdict). Conflicting distinct grades ⇒ null (ambiguous). */
|
|
187
|
+
export function extractReportGrade(text: string): string | null {
|
|
188
|
+
// the lookahead rejects RANGES in punctuation form (A-F, A/F) AND word form (A through F,
|
|
189
|
+
// A to F) — Codex QE round-2 #6: 'GRADE A through F' must not read as grade A
|
|
190
|
+
const matches = [...String(text ?? '').matchAll(/^\s*(?:\*{0,2}#{0,4}\s*)?GRADE\s*[:=—–-]?\s*([A-F])\b(?!\s*(?:[-–—/]|through|to|thru)\s*[A-F]\b)/gim)];
|
|
191
|
+
const distinct = new Set(matches.map((m) => (m[1] ?? '').toUpperCase()).filter((g) => g !== ''));
|
|
192
|
+
if (distinct.size !== 1) return null;
|
|
193
|
+
return [...distinct][0] ?? null;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** FAIL-CLOSED settlement validation: the report must be non-trivial (>= 200 chars of substance)
|
|
197
|
+
* and must NAME exactly one line-anchored grade. A settlement that cannot cite its evidence is
|
|
198
|
+
* refused — clearing a debt against an empty file would re-open the exact hole this feature closes.
|
|
199
|
+
* HONEST LIMIT (documented, not hidden): the validator proves the settlement is PROCEDURALLY sound
|
|
200
|
+
* (a distinct, graded report exists); it cannot prove which model authored the text — attribution
|
|
201
|
+
* stays with the human running the brief. */
|
|
202
|
+
export function settleReqeDebt(debt: ReqeDebt, reportText: string, reportPath: string): ReqeSettlement {
|
|
203
|
+
const text = String(reportText ?? '');
|
|
204
|
+
if (text.trim().length < 200) {
|
|
205
|
+
return { ok: false, error: 'report too small to be a review (< 200 chars of substance) — refusing to settle', grade: null, epilogue: null };
|
|
206
|
+
}
|
|
207
|
+
const grade = extractReportGrade(text);
|
|
208
|
+
if (grade === null) {
|
|
209
|
+
return { ok: false, error: 'report names no unambiguous line-anchored GRADE (A-F) — text without exactly one verdict grade is not a verdict; refusing to settle', grade: null, epilogue: null };
|
|
210
|
+
}
|
|
211
|
+
const reviewFamily: ModelFamily = debt.coderFamily === 'openai' ? 'claude' : 'openai';
|
|
212
|
+
const epilogue = [
|
|
213
|
+
'',
|
|
214
|
+
'---',
|
|
215
|
+
'',
|
|
216
|
+
'## re-QE settlement (cross-model debt cleared)',
|
|
217
|
+
'',
|
|
218
|
+
'The original Step-8 review ran on the coder’s own family (' + debt.coderFamily + ') under the',
|
|
219
|
+
'usage override (' + debt.reason + '). An independent ' + reviewFamily.toUpperCase() + '-family re-QE was performed:',
|
|
220
|
+
'',
|
|
221
|
+
'- report: `' + reportPath + '`',
|
|
222
|
+
'- re-QE grade: **' + grade + '**' + (debt.qeGrade ? ' (same-family grade on record: ' + debt.qeGrade + ')' : ''),
|
|
223
|
+
'- settled via `dz reqe --done` (fail-closed: an existing graded report is required).',
|
|
224
|
+
'',
|
|
225
|
+
].join('\n');
|
|
226
|
+
return { ok: true, error: null, grade, epilogue };
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** Render the debt list for `dz reqe` / the `dz usage` surfacing line. */
|
|
230
|
+
export function renderReqeList(debts: readonly ReqeDebt[], malformed: number): string[] {
|
|
231
|
+
const lines: string[] = [];
|
|
232
|
+
if (debts.length === 0 && malformed === 0) {
|
|
233
|
+
lines.push('dz reqe: no re-QE debts — every recorded run kept cross-model QE (or none used the usage override).');
|
|
234
|
+
} else {
|
|
235
|
+
lines.push('dz reqe — ' + debts.length + ' unsettled re-QE debt(s):');
|
|
236
|
+
for (const d of debts) {
|
|
237
|
+
lines.push(' ' + d.slug + ' coder=' + d.coderFamily + ' qe=' + d.qeFamily + (d.qeGrade ? ' grade=' + d.qeGrade : '') + (d.emittedAt ? ' ' + d.emittedAt : '') + ' → dz reqe --slug ' + d.slug);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
if (malformed > 0) lines.push(' ' + malformed + ' malformed debt file(s) skipped (named, never silent).');
|
|
241
|
+
lines.push(REQE_SCOPE);
|
|
242
|
+
return lines;
|
|
243
|
+
}
|