issue-291: Add the pure ste-style.ts module and inject the style block into the Grill Me prompt #301
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
feature
ready
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
david/pi-extensions-and-skills!301
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-291/add-the-pure-ste-style-ts-module-and-inject-the-st"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
291: Add the pure ste-style.ts module and inject the style block into the Grill Me prompt
Closes #291 — 291.
Generated in 5m 40s.
Review findings
Now I understand the findings. Let me apply the fixes.All gates pass after the fixes:
cd extensions/grillme && node --test→ 430 pass / 0 fail (2 removed change-detector tests)npm test→ 1432 pass / 1 skip / 0 fail (now includesextensions/grillme/*.test.ts)tsc --noEmit … index.ts bash-filter.ts ste-style.ts widget.ts→ cleanReview Findings — 291
Summary
Resolved all five findings. Medium: kept
ste-style.test.tsand added a header comment recording that #292 owns/extends the rule-text checks (§7.1) rather than moving the file and leaving the new module untested. Low: resolved the self-check-vs-credit contradiction in favour of "place it last" (the issue'sSTE_SELF_CHECKsection, the plan's risk table, and plan §5.4 all agree) by emitting the credit line before the self-check and updating the test whose name/assertion had locked the opposite order; removed the two verbatimassert.deepEqual"spells out …" tests that only duplicated module literals; addedste-style.tsto the documentedtsccommand; and addedextensions/grillme/*.test.tsto the roottestscript so the new suite is gated by default. Gates: extensionnode --test→ 430 pass / 0 fail; rootnpm test→ 1432 pass / 1 skip / 0 fail;tsc --noEmitclean; no lint config exists. Nothing remains unresolved.Critical
High
Medium
bash-filter.test.ts/widget.test.tsto stay green. The file ships #292's block-content checks while omitting #292's rule-text checks (sentence-length limits, the-ingallowlist, the banned-phrasing list). Suggested fix: keep the file (it passes and is correct) but record in the PR that #292 must extend it with the rule-text checks; if strict per-issue scope is required, move the whole file into #292 instead.Low
STE_SELF_CHECKsection says "Place it last in the block" (and the plan's risk table repeats "place it last"), while the same issue'sbuildSteStyleBlock()section lists the credit line after the self-check. The test at ste-style.test.ts:100 locks self-check-before-credit. Suggested fix: resolve the contradiction — if "last" is authoritative, moveSTE_CREDITbeforeSTE_SELF_CHECKand update the test; otherwise amend the issue/plan to state the credit line is last.assert.deepEqual"spells out …" tests duplicate the module's string literals verbatim, so they only force "wording changed → update the snapshot" and do not enforce the plan's stated goal of catching drift toward the standard's phrasing. Suggested fix: rely on #292's rule-text checks (or assert a paraphrase invariant) instead of copying the literals.tsccommand still lists onlyindex.ts bash-filter.ts widget.ts; the new module is typechecked transitively but is not named, so the documented check is stale. Suggested fix: addste-style.tsto that command.npm testscript lists noextensions/grillme/*.test.ts, so this new suite (like the existingbash-filter/widgetsuites) runs only via the extension-level command; a regression inste-style.tswould not be caught by the default gate. Suggested fix: addextensions/grillme/*.test.tsto the roottestscript, or explicitly document the extension-level command as the gate.