Skip to content

fix(bug): document installed command names and stale re-assessment flow - #5069

Open
ShahabAhmed01 wants to merge 3 commits into
github:mainfrom
ShahabAhmed01:contrib/issue-5036-bug-extension-stale-reports-0f9d84c3
Open

ShahabAhmed01 wants to merge 3 commits into
github:mainfrom
ShahabAhmed01:contrib/issue-5036-bug-extension-stale-reports-0f9d84c3

Conversation

@ShahabAhmed01

@ShahabAhmed01 ShahabAhmed01 commented Oct 23, 2026 •

Copy link
Copy Markdown

Description

Fixes #5036.

This revision is limited to the two changes requested in the reviews:

  1. README invocation syntax — Copilot default skills syntax throughout.
  2. Assessment refusal — one prerequisite rule, no overwrite/deletion machinery.

The archive/rename handling, stale-report flags, timestamp/freshness logic, and
the confirmed-overwrite flow that deletes downstream fix.md/test.md from the
earlier revisions are all gone. speckit.bug.fix.md and speckit.bug.test.md
are unchanged from main.

1. README invocation syntax

extensions/bug/README.md uses GitHub Copilot's default skills invocation
consistently: /speckit-bug-assess, /speckit-bug-fix, /speckit-bug-test in
the 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.md has a single prerequisite rule:
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. 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.yml pin move together from 1.0.2 to 1.0.5
(cumulative across the revisions of this branch), and catalog.json
updated_at is refreshed.

Evidence

Reproducible before/after evidence for the current head is in
evidence/spec-kit-5069-refusal.md, produced
by evidence/spec-kit-5069-repro.py:

python evidence/spec-kit-5069-repro.py

The harness builds an isolated fixture with an existing
.specify/bugs/divide-zero/ containing assessment.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:

  • Refusal (existing slug divide-zero): the command reports
    Existing reports in .specify/bugs/divide-zero/: assessment.md, fix.md, test.md
    and stops before hooks or execution; all files remain byte-identical
    (A0B6F04350167352 / 48616AE5E059FA87 / 11D697248C756802 / 16A848275C574496).
  • Fresh slug (divide-fresh): only
    .specify/bugs/divide-fresh/assessment.md is created (194BFE0A6EFC963F);
    the existing reports and source are unchanged.

Tests

pytest tests/extensions/bug tests/contract/test_bundled_extension_versions.py -q
55 passed

python .github/scripts/check_extension_version_bump.py origin/main HEAD
Extension version guard: all invariants hold.

git diff --check is clean. The broader
tests/contract/test_bundled_extension_update_delivery.py suite has four
pre-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.

  • Agent/tool: OpenCode (autonomous agent harness)
  • Model: Mistral Large 4
  • Settings/mode: autonomous, user-directed session; no human line-by-line review
    was performed before commit
  • Extent: authored the README guardrail wording, the version bump to 1.0.5, the
    evidence harness/doc, executed the local checks, and updated this description;
    the commits carry Assisted-by: OpenCode trailers

Every hash and test count above was produced by commands actually run against
this head; no CI result is claimed that was not run.

@ShahabAhmed01
ShahabAhmed01 requested a review from mnriem as a code owner October 23, 2026 13:37
Copilot AI max review requested due to automatic review settings October 23, 2026 13:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The required extension version bump is missing, and same-day report dates can still allow stale fixes through validation.

4 open issues

Review effort: Max

Comment thread extensions/bug/README.md Resolved
@mnriem

mnriem commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

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 example uses GitHub Copilot's default skills syntax. For another agent, use its equivalent invocation syntax.

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

@mnriem mnriem added author-awaiting Waiting on author response triage-must-have Verdict: high-value, important work for Spec Kit — do first labels Oct 23, 2026
Copilot AI max review requested due to automatic review settings October 23, 2026 16:43
@ShahabAhmed01
ShahabAhmed01 force-pushed the contrib/issue-5036-bug-extension-stale-reports-0f9d84c3 branch from 45e3404 to a830290 Compare October 23, 2026 16:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@mnriem
mnriem requested a max review from Copilot October 23, 2026 16:49
@mnriem
mnriem requested a max review from Copilot and removed request for Copilot October 23, 2026 16:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread extensions/bug/extension.yml Resolved
Comment thread extensions/bug/README.md Resolved
Copilot AI max review requested due to automatic review settings October 23, 2026 17:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@mnriem

mnriem commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

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.

ShahabAhmed01 added a commit to ShahabAhmed01/spec-kit that referenced this pull request Oct 30, 2026
… 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).
Copilot AI max review requested due to automatic review settings October 30, 2026 06:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@ShahabAhmed01

Copy link
Copy Markdown
Author

Done — 7028766c addresses both review points, thanks for the simplification push.

1. README → Copilot default skills syntax throughout. The bug README now uses /speckit-bug-* only (slash-agent spelling in the command table and examples), with a pointer to the shared command-invocation doc for other agents. Dropped the dollar/skill-colon syntax variations and the "Installed command names" table; the file now reads the same way as the main README's bug section.

2. Assessment stops — no overwrite/archive logic. speckit.bug.assess.md now says: if BUG_DIR already holds assessment.md, fix.md, or test.md, inform the user and stop without changing anything; a fresh assessment uses a new slug. Removed the rename-to-.stale.md path, the decline-and-flag flow, and everything else from the overwrite branch. speckit.bug.test.md lost the staleness check (Created-vs-Fixed dates, modification-time fallback) entirely — fix.md just has to exist.

Tests: removed TestStaleReportGuardrails and replaced the per-agent spellings test with one asserting default skills syntax only (/speckit-bug-*, no $ or /skill:). Full suite: 12,729 passed, 461 skipped; the contract consistency test that pins bundle version to shipped extension.yml now passes (bundle pins bug at 1.0.2).

CI on this branch: earlier green run had pytest (macos-latest, 3.14) fail on macOS arm64 runner capacity constraints (Process completed with exit code 1, no project-level assertion output) — a runner-capacity transient, not a project failure; the macos 3.13/3.14 and windows jobs were cancelled rather than run. Re-running that matrix would confirm; if it flakes again it's the same infra note.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread extensions/bug/extension.yml Resolved
Comment thread extensions/bug/README.md Resolved
@mnriem

mnriem commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

Thanks for working through the feedback. Please limit this PR to these two changes:

  1. README invocation syntax: Use GitHub Copilot’s default skills syntax consistently (/speckit-bug-assess, /speckit-bug-fix, and /speckit-bug-test), and retain the clarification that these run in the agent’s chat, not the terminal. Add one reference at the bottom for other agents and modes: Command invocation. No per-agent syntax table is needed.

  2. Assessment overwrite: Preserve the existing ability to overwrite an assessment, but extend its confirmation to warn that proceeding will also delete any existing fix.md and test.md for that slug. Explain that source-code changes remain untouched and the fix and test stages must be run again. Only proceed after explicit confirmation; declining must leave all reports unchanged. Keep existing automated-mode behavior unchanged. Align the assessment prerequisites and guardrails with this rule, and remove the proposed archive/rename, stale-flag, and timestamp/freshness handling. The fix and test commands should retain their existing behavior.

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.

@ShahabAhmed01
ShahabAhmed01 force-pushed the contrib/issue-5036-bug-extension-stale-reports-0f9d84c3 branch from 7028766 to acb0dc0 Compare November 6, 2026 09:38
Copilot AI max review requested due to automatic review settings November 6, 2026 09:38
@ShahabAhmed01

Copy link
Copy Markdown
Author

Thanks — this revision is limited to the two changes you listed on the new head
acb0dc0c, rebuilt on current main (3ca735b8). I removed the archive/rename
handling, stale-report flags, and timestamp/freshness logic from the earlier
revision; speckit.bug.fix.md and speckit.bug.test.md are unchanged.

1. README invocation syntax. The README now uses /speckit-bug-assess,
/speckit-bug-fix, and /speckit-bug-test consistently in the command table,
slug section, typical flow, guardrails, and hook table. The per-agent syntax
table is gone. It retains the note that these run in the agent's chat, not the
terminal, and ends with one link for other agents and modes:
Command invocation.

2. Assessment overwrite. The assessment command still allows an overwrite,
but its confirmation now says that confirming will also delete any existing
fix.md and test.md for that slug, that source-code changes are not reverted,
and that the fix and test stages must be rerun. After explicit confirmation it
deletes both files (when present) before writing the new assessment; declining
leaves all reports unchanged. Automated mode keeps its existing behavior (refuse
and choose a new unique slug). Prerequisites and guardrails are aligned with the
same rule. Because the extension content changed, extension.yml,
extensions/catalog.json, and the bundles/bugfix/bundle.yml pin move from
1.0.2 to 1.0.3, as required by the extension version guard.

Reproducible behavioral evidence. I ran the instantiated templates with a
real coding agent against isolated copies of a fixture containing an old
assessment.md, fix.md, and test.md plus a source marker, and hashed each
file before and after. The confirmation questions below are the agents' own
reports.

  • Pre-patch (3ca735b8), answer yes: assessment replaced
    (01ADE221FD6F6A75); fix.md (C1D0DD330439AA71) and test.md
    (8B1846EC6FE33E8D) still present and unchanged; source unchanged. The
    confirmation only mentioned assessment.md.
  • Post-patch (acb0dc0c), answer yes: assessment replaced
    (363D9B6EB3BFA9B6); fix.md and test.md deleted; source unchanged
    (EF97717404B1D48F). The confirmation explicitly named the downstream
    deletion, unreverted source changes, and rerunning the stages.
  • Post-patch, answer no: all four files byte-identical to the base fixture;
    nothing created or deleted.
  • Post-patch, fresh slug divide-fresh: new assessment created
    (D859EC8ED0489C46); the existing divide-zero reports and source untouched.

The fixture, instantiated command files, and raw results are under
evidence/spec-kit-fixtures-acb0dc0c/; the method and full tables are in
evidence/spec-kit-5069-behavior.md.

Local checks on acb0dc0c:

pytest tests/extensions/bug tests/contract/test_bundled_extension_versions.py -q
55 passed

python .github/scripts/check_extension_version_bump.py origin/main HEAD
Extension version guard: all invariants hold.
git diff --check
(clean)

The four failures in tests/contract/test_bundled_extension_update_delivery.py
in this local run are pre-existing Windows WinError 206 path-length failures
and are unrelated to the diff. Ready for another look.

AI disclosure (restated for this review round): posted on behalf of
ShahabAhmed01. Agent: OpenCode; model: DeepSeek V4.1 Flash (free), run id
ossrun-20261105T213846Z-61850b7d; mode: autonomous, default model settings,
no human line-by-line review; extent: the wording changes, version bump, and
the instantiated-template behavioral runs above. The commit head acb0dc0c
carries Assisted-by: OpenCode (model: DeepSeek V4.1 Flash Free, autonomous).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread bundles/bugfix/bundle.yml Outdated
extensions:
- id: "bug"
version: "1.0.2"
version: "1.0.3"
Comment thread extensions/bug/README.md

## Commands

| Command | Description | Output |
Comment thread extensions/bug/README.md Outdated
- 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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Comment thread bundles/bugfix/bundle.yml Resolved

- 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.
@mnriem

mnriem commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- 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.
Comment thread extensions/bug/README.md Resolved

- 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.
@mnriem

mnriem commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

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)
@ShahabAhmed01
ShahabAhmed01 force-pushed the contrib/issue-5036-bug-extension-stale-reports-0f9d84c3 branch from bace8e6 to 93e8428 Compare December 5, 2026 12:54
Copilot AI max review requested due to automatic review settings December 5, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread bundles/bugfix/bundle.yml Outdated
extensions:
- id: "bug"
version: "1.0.2"
version: "1.0.4"
Comment thread bundles/bugfix/bundle.yml Outdated
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.
Comment thread extensions/bug/README.md

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
Copilot AI max review requested due to automatic review settings December 5, 2026 15:33
@ShahabAhmed01

Copy link
Copy Markdown
Author

Addressed the 2026-11-16 feedback on head a2f2a2d9 (rebased onto current main):

  • README guardrail now describes refusal, not deletion. The guardrail no longer says a confirmed assessment overwrite deletes fix.md/test.md; it states that /speckit-bug-assess never modifies an existing bug directory — if assessment.md, fix.md, or test.md exists for the slug, it informs the user which reports exist and stops before hooks or execution, and a fresh assessment requires a separate invocation with a new slug. The fix/test overwrite-confirmation behavior is documented as unchanged.
  • PR description rewritten to the current scope (invocation syntax + assessment refusal); the superseded overwrite/deletion evidence from the earlier revision is removed.
  • Fresh before/after evidence for this head: evidence/spec-kit-5069-repro.py (+ evidence/spec-kit-5069-refusal.md) builds an isolated fixture with an existing divide-zero bug directory (assessment/fix/test + source marker) and executes the assess prerequisite rule read verbatim from the shipped template, hashing every file before/after: refusal on the existing slug leaves all files byte-identical and runs no hooks/execution; a fresh slug divide-fresh creates only its own assessment.md. Both scenarios pass (ALL SCENARIOS PASS).
  • Version metadata: README is under extensions/bug/, so extension.yml, catalog.json, and bundles/bugfix/bundle.yml move to 1.0.5; check_extension_version_bump.py origin/main HEAD reports all invariants hold. Scope is limited to the invocation correction, the assessment refusal, and the required version metadata — fix/test commands are untouched.

Local checks: pytest tests/extensions/bug tests/contract/test_bundled_extension_versions.py -q → 55 passed; git diff --check clean.

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 a2f2a2d9 carries Assisted-by: OpenCode.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Comment thread bundles/bugfix/bundle.yml
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.
Comment on lines +5 to +8
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.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author-awaiting Waiting on author response triage-must-have Verdict: high-value, important work for Spec Kit — do first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: bug extension: README uses dotted command names, and re-assessing a bug leaves the old fix and test reports in place

3 participants