issue-294: Rewrite the Grill Me tool metadata to the STE rule categories #304
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!304
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-294/rewrite-the-grill-me-tool-metadata-to-the-ste-rule"
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?
294: Rewrite the Grill Me tool metadata to the STE rule categories
Closes #294 — 294.
Generated in 10m 10s.
Review findings
Now let me apply the fixes. First, the prompt.ts research guidance:Now rewrite the test file to fix the High, Low region-delimiter, and Medium expansion findings:All gates pass (
extensions/grillme457/457; rootnpm test1460 tests, 0 fail;tsc --noEmitclean on the test file).Review Findings — 294
Summary
Fixed the High extraction-count finding with exact per-tool counts (3/6/9/3/2/2 descriptions = 25, 2/4/6/3/7/0 guidelines = 22) and replaced the
pi.on("tool_call"region boundary with brace-balanced extraction of eachpi.registerTool({...})block, which also resolves the Low region-delimiter finding. Medium catalog-expansion is resolved in the test: each${outputDestinationOptionNames()}template is expanded to the runtime string, and the exempt destination-label list collapses to one token before the word-limit check. Also restored thefiles/codescope inRESEARCH_GUIDANCE.auto, restored the conditional gate wording and thefiles/issuesexamples, and disambiguated the...first.guideline. The only unresolved finding is the Low commit-message convention, which requires amending a commit and this stage must not commit/stage/push.Note: the reviewer recorded "24 actual" descriptions; the region actually contains 25, so the guard asserts the verified counts.
Critical
High
toolDescriptions().length >= 20against 24 actual, andtoolPromptGuidelines().length >= 12against 22 actual at :213), so deleting up to four parameter/description strings or mostpromptGuidelinesentries leaves the suite green — the very regression this new suite exists to catch. Suggested fix: assert exact counts per tool (e.g. aRecord<toolName, number>for descriptions and guidelines, orassert.equal(toolDescriptions().length, 24)), and compare against a captured list rather than>=lower bounds.Medium
One or more output destinations from the catalog (GitHub issues, Design doc, …).— theoutputDestinationOptionNames()expansion makes the sentence 36 words, and the equivalentdescriptionat :608 is 35 words, both over the 25-word description limit in the acceptance criteria. The word-limit test attool-metadata.test.ts:219only sees the raw template with the unresolved${outputDestinationOptionNames()}token (9 words), so it cannot detect this. Suggested fix: substituteoutputDestinationOptionNames()before measuring in the test (or assert the catalog-expanded strings), and either treat the destination list as exempt identifiers or move it out of the sentence into a following list.RESEARCH_GUIDANCE.autoreadsIn a software project, inspect the available files when they can answer a question.The pre-change text coveredavailable files/code, so a question answerable only from source code is no longer explicitly in scope; AC says the rewrite must keep each string's meaning. Suggested fix:In a software project, inspect the available files or code when they can answer a question.(still under the 20-word instruction limit).Low
issue-<N>: <summary>, but the Stage 1 commit is294: Rewrite the Grill Me tool metadata to the STE rule categories(missing theissue-prefix); the branch namefeature/issue-294/…is correct, so the PR title/body will likely diverge too. Suggested fix: amend the commit toissue-294: rewrite the grill me tool metadata to the ste rule categoriesand title the PRissue-294: ….outputPlanlost the original examples: pre-change wasincluding one or more outputs/artifacts/files/issues and intended tool use, nowIt lists one or more outputs and the intended tool use.The narrowed wording removes the "issues/files" guidance the model used for non-doc artifacts. Suggested fix:The approved output plan. It lists one or more outputs, files, or issues and the intended tool use.A tool, CLI, platform, or pi gate may block the change. Stop and ask the user …drops the original conditional (If … blocks the mutation, stop and ask…); the imperative now reads as unconditional. Suggested fix: merge into one instruction:If a tool, CLI, platform, or pi gate blocks the change, stop and ask the user for the needed permission, confirmation, credentials, or plan change.Call grill_enter_output_selection_phase first.is ambiguous out of context (first relative to what?), where the original said "until … has been called". Suggested fix:Call grill_enter_output_selection_phase before you stop or produce outputs.INDEX_SOURCE.indexOf('pi.on("tool_call"'), a hard-coded string from an unrelated hook; an unrelated insertion or rename silently widens or breaks the inspected region. Suggested fix: delimit the region with explicit markers (for example from the firstpi.registerTool({to a closing sentinel) or export the metadata table from a small dependency-free module instead of regex-scrapingindex.ts.