Repository navigation
修复:修复 v0.9.0 发版全量测试中的客户端与服务端回归夹具 - #329
Conversation
There was a problem hiding this comment.
Important
A simplification ratchet baseline is raised from 205 to 214 without the explicit approval its own test contract requires.
Approach: mostly sound — the stale fixture expectations I checked match the current implementations (prompt v4, token estimator, truncateText, usageStageLabel, the trimmed artifact example at 1787 chars), but the ratchet bump needs a documented decision.
Reviewed changes
- Client fixture realignment — updates truncation, unknown-stage/asset-code fallbacks, and the director editing entry label to the current UI behavior.
- Server fixture realignment — aligns prompt version/token baselines, writing-language defaults, prompt wording regexes, batch mock branch order, and removes a duplicate
tmpdirdeclaration. - Harness mocks — loads the split error-handler modules and stubs the refactored prompt execution and timeline helper.
- Artifact delta example — trims the production wire example to 1787 chars while keeping the evidence/ownership fields the budget test asserts.
- World map atlas entry — adds
world.map.layoutwith en/zh labels, matching the registered prompt. - Ratchet baseline — raises
clientStatusDerivationfrom 205 to 214; see the inline finding.
Non-blocking
factRetrieval.test.jsmocks demo-config exports that do not exist. The fixture suppliesisDemoMode/isDemoRuntimeforplatform/deployment/demo/config, butRagIndexService.tsimportsisDemoSandbox, which this mock leaves undefined; any future path reachingenqueueUpsert/enqueueDeletewill throw. Use{ isDemoSandbox: () => false }in the fixture.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
| "inProcessBackgroundScheduling": 13, | ||
| "stepRuntimeServiceLocator": 54, | ||
| "clientStatusDerivation": 205, | ||
| "clientStatusDerivation": 214, |
There was a problem hiding this comment.
P1 This raises the clientStatusDerivation ratchet from 205 to 214, but the guard's own contract (server/tests/directorSimplificationGuard.test.js) says a baseline may only go down — raising one requires explicit human approval recorded in the plan's status ledger. The plan still records 205 with a phase-6 target of 0 and has no ledger entry for this change, so the release fix silently accepts the 9 extra client-side status-derivation matches.
Technical details
# Ratchet baseline raised without an approved exception
## Affected sites
- `server/tests/fixtures/directorSimplification.baseline.json:14` — `clientStatusDerivation` raised 205 → 214 (measured total is 214).
- `server/tests/directorSimplificationGuard.test.js:7-9` — contract: only lower; raising needs explicit approval recorded in the plan's status ledger.
- `docs/plans/auto-director-simplification-execution-plan.md:47` — still lists current 205, target 0, phase 6, with no approved exception.
- `docs/plans/auto-director-simplification-execution-plan.md:602` — status ledger has no entry for this change.
## Required outcome
- Do not move the baseline without either (a) a status-ledger row recording the human approval and the 9 sites it covers, or (b) removing/refining the extra matches so the count returns to the approved baseline.
## Suggested approach (optional)
- If the gap is locale copy rather than derivation logic (e.g. `client/src/i18n/locales/*/features/autoDirector/cockpit.ts` contributes matches), refine the metric to exclude presentation strings and record that definition change in the ledger.
- Otherwise lower the count at the derivation sites before bumping.
将 beta 上的发版修复合并至 main:修复 v0.9.0 发版全量测试(test:all)中的客户端与服务端回归夹具。合并后重新打 v0.9.0 tag 触发 Desktop Release。