summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/tests/verification.test.ts
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 21:07:24 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 21:07:24 -0700
commitcaac6735d95bddeb8c8bbe3ddc9d6c01787fc8e1 (patch)
tree132ff3f8b1404f56f5dd2051ff1c2761064b746c /plugins/code-modernization/tests/verification.test.ts
parentd6af0c04d89ad7b0c75e21b8ae7f15585e805b08 (diff)
code-modernization: pane wording, attention items and docs that match the code
The pane's button reads "put in prompt" (it never runs the command), the refresh button is gone (the pane already refreshes after writes, at turn end and every 20 seconds while idle), the summary line fits a 120-column bar, and the next-step reasons are short enough to read. A P0 rule under discussion is listed under Attention ("the build waits"), and a module that is not proven shows its first reason there. In an uplift, finished modules list before merely edited ones. hooks/README.md now names every button and label as the code does, documents the plugin's /code-modernization:modernize-review command (which writes the same ledger for people without the pane) and how it differs from the pane's own /modernize-review, and says which pictures use sample text. 141 engine tests pass and the type check is clean.
Diffstat (limited to 'plugins/code-modernization/tests/verification.test.ts')
-rw-r--r--plugins/code-modernization/tests/verification.test.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/code-modernization/tests/verification.test.ts b/plugins/code-modernization/tests/verification.test.ts
index 5578de8f..e18540ff 100644
--- a/plugins/code-modernization/tests/verification.test.ts
+++ b/plugins/code-modernization/tests/verification.test.ts
@@ -175,7 +175,7 @@ describe('what the pane makes of the proof', () => {
const none = await withPack([])
expect(none.next).toMatchObject({ text: `${PREFIX}verify billing INTCALC`, isByHand: false })
- expect(none.next?.reason).toContain('nothing has checked yet')
+ expect(none.next?.reason).toBe('INTCALC is built but not yet checked against the old code')
const changed = await withPack([entry('INTCALC', 'PROVEN')], { [NOTES]: CHECKED + HOUR })
@@ -193,12 +193,13 @@ describe('what the pane makes of the proof', () => {
const partly = await withPack([entry('INTCALC', 'PARTLY PROVEN', ['Fresh inputs: only 3.'])])
expect(partly.next?.text, 'Phase 1 is built and checked: on to the review of the plan').toBe(`${PREFIX}status billing`)
- expect(partly.attention.some(line => line.includes('PROVEN'))).toBe(false)
+ expect(partly.attention, 'a person decides on what could not be completed: the reason is one line under Attention').toContain('INTCALC: PARTLY PROVEN: Fresh inputs: only 3.')
const proven = await withPack([entry('INTCALC', 'PROVEN')])
expect(proven.next?.text).toBe(`${PREFIX}status billing`)
expect(proven.next?.reason).toContain('built and checked')
+ expect(proven.attention.some(line => line.includes('PROVEN')), 'nothing to say of a proven module').toBe(false)
})
test('modules are taken in the order the phase names them: one built and unchecked comes before the next one is started', async () => {