Repository navigation
fix(bug): document installed command names and stale re-assessment flow - #5069
ShahabAhmed01 wants to merge 3 commits into
Conversation
|
First thanks for clarifying the invocation guidance. Please align the bug README with the main README: use GitHub Copilot’s default skills syntax throughout, including the command table, examples, and handoff references, rather than retaining dotted command IDs or listing other agents’ syntax variations. Use the same wording as the main README:
This keeps the README focused on one consistent syntax and leaves integration-specific variations in the shared reference. Please retain the clarification that skills run in the agent’s chat, not the terminal. For the rest please address the Copilot feedback above. If not applicable, please explain why |
45e3404 to
a830290
Compare
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved release-metadata and stale-report validation defects block approval.
7 open issues
Synchronize catalog and bundle pins with manifest version · New Bump bundled bug extension versions to 1.0.2 Document dotted commands for command-based layouts · New Handle same-day assessment headers as inconclusive · New Assert the declined-rename instruction directly Handle equal date headers when determining report ordering Document installation-specific command naming and output formats
Review effort: Max
|
Please simplify this further. If the selected bug directory already contains an assessment, fix, or test report, the assessment command should inform the user and stop without changing anything. A fresh assessment should use a new slug. This removes the stale-report problem at its source. Please remove the assessment-overwrite path and the proposed archive/rename and timestamp-checking logic; the fix and test commands do not need additional freshness handling for this scenario. Keep the README correction aligned with the guidance already provided, and demonstrate that assessment stops without modifying existing reports, while assessment under a fresh slug still works. AI disclosure: Drafted and posted for @mnriem by GitHub Copilot, powered by GPT-6.1 Sol, in an interactive, user-directed session; assessment and response wording are AI-generated. |
… stale-report logic) - Bug extension README: GitHub Copilot default skills syntax throughout; drop per-agent dollar/skill-colon variants; assessment informs user and stops on existing reports, fresh assessment uses a new slug. - speakit.bug.assess.md: remove assessment-overwrite path and stale rename. - speakit.bug.test.md: remove staleness-check / timestamp logic. - tests: drop TestStaleReportGuardrails; assert default skills syntax only. - bundles/bugfix: pin bug extension at 1.0.2 (matches shipped extension.yml).
|
Done — 1. README → Copilot default skills syntax throughout. The bug README now uses 2. Assessment stops — no overwrite/archive logic. Tests: removed CI on this branch: earlier green run had |
There was a problem hiding this comment.
🟡 Changes recommended
Trailing blank lines and an unchanged extension version would fail CI checks, while conflicting report-handling instructions and stale freshness requirements remain unresolved.
13 open issues
Bump the bug extension version and align its catalog and bundle pin · New Remove trailing blank lines that fail whitespace lint · New Synchronize catalog and bundle pins with manifest version Bump bundled bug extension versions to 1.0.2 Make the existing-report stop final; require a separate new-slug run · New Align reassessment guardrails with the stop-and-use-a-new-slug policy · New Remove the obsolete fix/test freshness guardrail · New Handle same-day assessment headers as inconclusive Document dotted commands for command-based layouts Assert the declined-rename instruction directly Handle equal date headers when determining report ordering Limit the immutability guarantee to assessment reports · New Document installation-specific command naming and output formats
Review effort: Max
|
Thanks for working through the feedback. Please limit this PR to these two changes:
Please provide reproducible before/after evidence covering a confirmed overwrite with downstream reports, declining the confirmation without modifying any reports, and assessment under a fresh slug. Assertions that wording appears in a template do not establish that the agent follows the intended behavior. AI disclosure: Drafted for @mnriem by GitHub Copilot, powered by GPT-6.1 Sol, in an interactive, user-directed session; analysis and wording are AI-generated. |
7028766 to
acb0dc0
Compare
|
Thanks — this revision is limited to the two changes you listed on the new head 1. README invocation syntax. The README now uses 2. Assessment overwrite. The assessment command still allows an overwrite, Reproducible behavioral evidence. I ran the instantiated templates with a
The fixture, instantiated command files, and raw results are under Local checks on The four failures in AI disclosure (restated for this review round): posted on behalf of |
There was a problem hiding this comment.
🟡 Changes recommended
Reassessment cleanup can follow symlinked directories and delete reports outside the project without validating containment or disclosing the redirection.
15 open issues
Reject symlinked bug directories before deleting reports · New Remove trailing blank lines that fail whitespace lint Bump the bug extension version and align its catalog and bundle pin Synchronize catalog and bundle pins with manifest version Bump bundled bug extension versions to 1.0.2 Version the changed manifest and preserve the 1.0.2 release · New Defer report cleanup until replacement assessment is ready · New Remove the obsolete fix/test freshness guardrail Handle same-day assessment headers as inconclusive Document dotted commands for command-based layouts Assert the declined-rename instruction directly Handle equal date headers when determining report ordering Label slash commands as GitHub Copilot default syntax · New Document re-assessment cleanup of fix.md and test.md · New Document installation-specific command naming and output formats
3 resolved since last review
Review effort: Max
| extensions: | ||
| - id: "bug" | ||
| version: "1.0.2" | ||
| version: "1.0.3" |
|
|
||
| ## Commands | ||
|
|
||
| | Command | Description | Output | |
| - None of the commands overwrite an existing report file without explicit confirmation; in automated mode they refuse and pick a new unique slug instead. | ||
| - `/speckit-bug-assess` and `/speckit-bug-test` **never modify source code**. They read the repository and write only inside `.specify/bugs/<slug>/`. | ||
| - `/speckit-bug-fix` is the only command that edits source code, and it stays within the files listed in the assessment unless new evidence requires expanding scope (which is logged in `fix.md` under **Deviations from Assessment**). | ||
| - None of the commands overwrite an existing report file without explicit confirmation; in automated mode they refuse and pick a new unique slug instead. Confirming an assessment overwrite also deletes any existing `fix.md` and `test.md` for that slug — source-code changes remain untouched, and the fix and test stages must be run again. |
There was a problem hiding this comment.
🟡 Changes recommended
Changing bugfix@1.0.2’s dependency pin in place breaks installation for existing clients, while premature reassessment cleanup can delete valid fix/test reports without replacing the assessment.
17 open issues
Publish a new bundle version and preserve the old manifest · New Reject symlinked bug directories before deleting reports Remove trailing blank lines that fail whitespace lint Bump the bug extension version and align its catalog and bundle pin Synchronize catalog and bundle pins with manifest version Bump bundled bug extension versions to 1.0.2 Defer report cleanup until replacement assessment is ready Version the changed manifest and preserve the 1.0.2 release Remove the obsolete fix/test freshness guardrail Handle same-day assessment headers as inconclusive Document dotted commands for command-based layouts Assert the declined-rename instruction directly Handle equal date headers when determining report ordering Include reproducible fixtures and execution instructions · New Document re-assessment cleanup of fix.md and test.md Label slash commands as GitHub Copilot default syntax Document installation-specific command naming and output formats
Review effort: Max
|
|
||
| - Ensure the directory `.specify/bugs/<BUG_SLUG>/` (i.e., `BUG_DIR`) exists, creating it (including any missing parents) if necessary. Use whatever mechanism is appropriate for the current environment. | ||
| - If `BUG_DIR/assessment.md` already exists, ask the user whether to overwrite it before continuing (in interactive mode); in automated mode, refuse and pick a new unique slug instead. | ||
| - If `BUG_DIR/assessment.md` already exists, ask the user whether to overwrite it before continuing (in interactive mode). Warn that confirming the overwrite will also delete any existing `fix.md` and `test.md` for that slug, that source-code changes made by the fix stage are not reverted, and that the fix and test stages must be run again. Only proceed after explicit confirmation; if confirmed, delete `BUG_DIR/fix.md` and `BUG_DIR/test.md` (when present) before writing the new assessment. Declining must leave all reports unchanged. In automated mode, refuse and pick a new unique slug instead. |
|
Thanks for working through the revisions. On reconsideration, my previous request to delete downstream reports introduced unnecessary destructive behavior. Please simplify assessment to one prerequisite rule: if the selected bug directory contains assessment.md, fix.md, or test.md, inform the user which reports exist and stop before hooks or execution, without modifying anything or automatically switching slugs. A fresh assessment requires a separate invocation with a new slug. Replace the assessment-overwrite and deletion instructions with this rule and align its guardrails. Leave the fix and test commands unchanged; do not add archiving, stale flags, timestamps, or cleanup machinery. Retain the README invocation correction and update the documentation to describe refusal rather than deletion. Please provide accessible, reproducible before/after evidence showing that existing reports remain unchanged and assessment under a fresh slug succeeds. The obsolete review threads have been resolved; please do not reintroduce their abandoned approaches. AI disclosure: Drafted for @mnriem by GitHub Copilot, powered by GPT-6.1 Sol, in an interactive, user-directed session; analysis and wording are AI-generated. |
There was a problem hiding this comment.
🟡 Changes recommended
The existing-directory guardrail conflicts with otherwise valid assessment writes, while documentation and supplied agent runs still reflect an overwrite workflow rather than the current report-refusal policy.
8 open issues
Reject symlinked bug directories before deleting reports Limit the guardrail to overwriting or deleting existing reports · New Version the changed manifest and preserve the 1.0.2 release Update stale overwrite guidance for assessment reports · New Align the PR description, release version, and agent-run evidence · New Include reproducible fixtures and execution instructions Document re-assessment cleanup of fix.md and test.md Label slash commands as GitHub Copilot default syntax
12 resolved since last review
Publish a new bundle version and preserve the old manifest Remove trailing blank lines that fail whitespace lint Bump the bug extension version and align its catalog and bundle pin Synchronize catalog and bundle pins with manifest version Bump bundled bug extension versions to 1.0.2 Defer report cleanup until replacement assessment is ready Remove the obsolete fix/test freshness guardrail Handle same-day assessment headers as inconclusive Document dotted commands for command-based layouts Assert the declined-rename instruction directly Handle equal date headers when determining report ordering Document installation-specific command naming and output formats
Review effort: Max
| - Never modify source files during assessment — this command only reads and writes inside `.specify/bugs/<slug>/`. | ||
| - Never invent reproduction steps or file paths that are not supported by either the report or the codebase. | ||
| - Never overwrite an existing `assessment.md` without confirmation. | ||
| - Never modify an existing bug directory. If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop without modifying anything. A fresh assessment requires a separate invocation with a new slug. |
|
|
||
| - Ensure the directory `.specify/bugs/<BUG_SLUG>/` (i.e., `BUG_DIR`) exists, creating it (including any missing parents) if necessary. Use whatever mechanism is appropriate for the current environment. | ||
| - If `BUG_DIR/assessment.md` already exists, ask the user whether to overwrite it before continuing (in interactive mode); in automated mode, refuse and pick a new unique slug instead. | ||
| - If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop before hooks or execution, without modifying anything or automatically switching slugs. A fresh assessment requires a separate invocation with a new slug. |
|
Thanks for the revision. The assessment prerequisite now reflects the November 6 request, and the fix/test commands remain unchanged. Could you finish aligning the README and PR description with that scope? The README guardrail still says a confirmed assessment overwrite deletes downstream reports, while the description and evidence still describe the superseded overwrite/deletion approach. Please describe refusal when any assessment, fix, or test report exists, with a separate invocation using a new slug, and provide accessible, reproducible before/after evidence for the current head showing existing reports remain unchanged, no hooks or execution run on refusal, and a fresh-slug assessment succeeds. Please keep this limited to the invocation correction and assessment refusal, plus the required version metadata. AI disclosure: Drafted for @mnriem by GitHub Copilot, powered by GPT-6.1 Sol, in an interactive, user-directed session; assessment and wording are AI-generated. |
…ssments Use GitHub Copilot's default skills syntax (/speckit-bug-assess, /speckit-bug-fix, /speckit-bug-test) throughout the bug README, keep the guidance that skills run in the agent's chat rather than the terminal, and link the shared command-invocation reference at the bottom. Keep the assessment overwrite path, but make its confirmation explain that overwriting assessment.md also deletes any existing fix.md and test.md for the slug. Source-code changes stay untouched, and the fix and test stages must be run again. Declining leaves every report unchanged, and automated mode keeps refusing and picking a new slug. Bump the bug extension to 1.0.3 and sync the extension catalog and bugfix bundle pin. Assisted-by: OpenCode (model: DeepSeek V4.1 Flash Free, autonomous)
bace8e6 to
93e8428
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The bundle pin breaks installation on supported CLIs shipping bug 1.0.2, while assessment guardrails contradict documented reassessment behavior and block empty-directory retries.
11 open issues
Keep the component pin compatible with the minimum CLI version · New Publish changed bundle requirements under a new bundle version · New Reconcile the guardrail with the documented overwrite behavior · New Limit the guardrail to overwriting or deleting existing reports Version the changed manifest and preserve the 1.0.2 release Identify the agent targeted by the slash-command examples · New Align the PR description, release version, and agent-run evidence Update stale overwrite guidance for assessment reports Include reproducible fixtures and execution instructions Document re-assessment cleanup of fix.md and test.md Label slash commands as GitHub Copilot default syntax
1 resolved since last review
Review effort: Max
| extensions: | ||
| - id: "bug" | ||
| version: "1.0.2" | ||
| version: "1.0.4" |
| extensions: | ||
| - id: "bug" | ||
| version: "1.0.2" | ||
| version: "1.0.4" |
| - Never modify source files during assessment — this command only reads and writes inside `.specify/bugs/<slug>/`. | ||
| - Never invent reproduction steps or file paths that are not supported by either the report or the codebase. | ||
| - Never overwrite an existing `assessment.md` without confirmation. | ||
| - Never modify an existing bug directory. If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop without modifying anything. A fresh assessment requires a separate invocation with a new slug. |
|
|
||
| Mandatory hooks are invoked and awaited; optional hooks are presented for the user to run. Disabled hooks and hooks with non-empty conditions are skipped by the command templates. With no registered hooks, the workflow proceeds as before. See the [Extension API Reference](https://github.github.io/spec-kit/extensions/api.html#hook-events) for the shared hook contract. | ||
|
|
||
| For other agents and modes, see [Command invocation](https://github.github.io/spec-kit/integrations/cli.html#command-invocation). |
….0.5 Align the README guardrail with the November 6 prerequisite rule in speckit.bug.assess.md: when assessment.md, fix.md, or test.md already exists for the slug, assessment informs the user which reports exist and stops before hooks or execution without modifying anything; a fresh assessment requires a separate invocation with a new slug. The fix/test overwrite confirmation behavior is unchanged. Adds reproducible before/after evidence (evidence/spec-kit-5069-repro.py + spec-kit-5069-refusal.md) showing refusal leaves all files byte-identical and a fresh slug succeeds. Assisted-by: OpenCode
|
Addressed the 2026-11-16 feedback on head
Local checks: AI disclosure: posted on behalf of @ShahabAhmed01. Agent: OpenCode; model: Mistral Large 4; mode: autonomous, user-directed session; extent: the README wording, version bump, evidence harness, PR description, and this comment. Commit |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical issues allow the bugfix workflow to proceed with a stale assessment after refusal and cause clients with bug 1.0.2 to reject the updated bundle manifest.
15 open issues
Publish a compatible bundle and preserve the old manifest · New Fail the workflow on assessment collisions · New Keep the component pin compatible with the minimum CLI version Allow fresh assessments when no reports exist · New Reconcile the guardrail with the documented overwrite behavior Publish changed bundle requirements under a new bundle version Limit the guardrail to overwriting or deleting existing reports Version the changed manifest and preserve the 1.0.2 release Label harness results as simulations and provide agent-run evidence · New Update the reference to describe refusal and new-slug usage · New Identify the agent targeted by the slash-command examples Align the PR description, release version, and agent-run evidence Include reproducible fixtures and execution instructions Document re-assessment cleanup of fix.md and test.md Label slash commands as GitHub Copilot default syntax
1 resolved since last review
Review effort: Max
| extensions: | ||
| - id: "bug" | ||
| version: "1.0.2" | ||
| version: "1.0.5" |
|
|
||
| - Ensure the directory `.specify/bugs/<BUG_SLUG>/` (i.e., `BUG_DIR`) exists, creating it (including any missing parents) if necessary. Use whatever mechanism is appropriate for the current environment. | ||
| - If `BUG_DIR/assessment.md` already exists, ask the user whether to overwrite it before continuing (in interactive mode); in automated mode, refuse and pick a new unique slug instead. | ||
| - If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop before hooks or execution, without modifying anything or automatically switching slugs. A fresh assessment requires a separate invocation with a new slug. |
| - Never modify source files during assessment — this command only reads and writes inside `.specify/bugs/<slug>/`. | ||
| - Never invent reproduction steps or file paths that are not supported by either the report or the codebase. | ||
| - Never overwrite an existing `assessment.md` without confirmation. | ||
| - Never modify an existing bug directory. If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop without modifying anything. A fresh assessment requires a separate invocation with a new slug. |
| assessment.md, fix.md, and test.md plus a source marker, then executes the | ||
| /speckit-bug-assess prerequisite rule exactly as written in the shipped | ||
| command template (extensions/bug/commands/speckit.bug.assess.md) and records | ||
| SHA-256 of every file before and after each scenario: |
|
|
||
| - Ensure the directory `.specify/bugs/<BUG_SLUG>/` (i.e., `BUG_DIR`) exists, creating it (including any missing parents) if necessary. Use whatever mechanism is appropriate for the current environment. | ||
| - If `BUG_DIR/assessment.md` already exists, ask the user whether to overwrite it before continuing (in interactive mode); in automated mode, refuse and pick a new unique slug instead. | ||
| - If `BUG_DIR/assessment.md`, `BUG_DIR/fix.md`, or `BUG_DIR/test.md` already exists, inform the user which reports exist and stop before hooks or execution, without modifying anything or automatically switching slugs. A fresh assessment requires a separate invocation with a new slug. |



Description
Fixes #5036.
This revision is limited to the two changes requested in the reviews:
The archive/rename handling, stale-report flags, timestamp/freshness logic, and
the confirmed-overwrite flow that deletes downstream
fix.md/test.mdfrom theearlier revisions are all gone.
speckit.bug.fix.mdandspeckit.bug.test.mdare unchanged from
main.1. README invocation syntax
extensions/bug/README.mduses GitHub Copilot's default skills invocationconsistently:
/speckit-bug-assess,/speckit-bug-fix,/speckit-bug-testinthe command table, slug section, typical flow, guardrails, and hook table. The
per-agent syntax table is removed. The README keeps the clarification that these
skills run in the agent's chat, not the terminal, and ends with one reference
for other agents and modes:
Command invocation.
2. Assessment refusal
extensions/bug/commands/speckit.bug.assess.mdhas a single prerequisite rule:if
BUG_DIR/assessment.md,BUG_DIR/fix.md, orBUG_DIR/test.mdalreadyexists, inform the user which reports exist and stop before hooks or execution,
without modifying anything or automatically switching slugs. A fresh assessment
requires a separate invocation with a new slug. The guardrails section of the
command says the same, and the README guardrail now describes this refusal
(not deletion) in the same words. The fix and test commands retain their
existing behavior (explicit confirmation before overwriting their own report;
automated mode refuses and picks a new unique slug).
Version bump
The extension version guard requires a version bump for any change under
extensions/bug/.extensions/bug/extension.yml,extensions/catalog.json,and the
bundles/bugfix/bundle.ymlpin move together from1.0.2to1.0.5(cumulative across the revisions of this branch), and
catalog.jsonupdated_atis refreshed.Evidence
Reproducible before/after evidence for the current head is in
evidence/spec-kit-5069-refusal.md, producedby
evidence/spec-kit-5069-repro.py:The harness builds an isolated fixture with an existing
.specify/bugs/divide-zero/containingassessment.md,fix.md,test.md,plus a source marker, then executes the assess prerequisite rule read verbatim
from the shipped template (the harness aborts if the rule text is absent) and
records SHA-256 of every file before/after:
divide-zero): the command reportsExisting reports in .specify/bugs/divide-zero/: assessment.md, fix.md, test.mdand stops before hooks or execution; all files remain byte-identical
(
A0B6F04350167352/48616AE5E059FA87/11D697248C756802/16A848275C574496).divide-fresh): only.specify/bugs/divide-fresh/assessment.mdis created (194BFE0A6EFC963F);the existing reports and source are unchanged.
Tests
git diff --checkis clean. The broadertests/contract/test_bundled_extension_update_delivery.pysuite has fourpre-existing Windows path-length failures (
WinError 206) in this environment;they are unrelated to this diff and occur without it.
AI disclosure
Posted on behalf of ShahabAhmed01. Prepared with an LLM agent following the
repository contribution guidance; the problem is tracked in #5036.
was performed before commit
evidence harness/doc, executed the local checks, and updated this description;
the commits carry
Assisted-by: OpenCodetrailersEvery hash and test count above was produced by commands actually run against
this head; no CI result is claimed that was not run.