Skip to content

v2.2.4

Choose a tag to compare

@girishr girishr released this 27 Sep 13:06
· 502 commits to main since this release

[2.2.4] - 2026-09-27

Fixed

  • specpilot archive did nothing on a table-shaped ## Completed section while specpilot validate kept telling you to run it (BL-057): archiveTasks() only recognised numbered-list entries, so a Completed section written as a markdown table was never archived. Tables are now supported: the body rows are the entries, the header and separator stay in place and are repeated above the moved rows in tasks-archive.md, and rows move by position, byte for byte, oldest first. Validator and archiver now share one decision (planCompletedArchive()), so validate warns about the Completed section only when archive would move something, and after archive runs the warning is gone. Numbered-list sections (the generated template) archive exactly as before.
  • The specpilot-archive slash command could still sweep sections after ## Completed into the archive: its embedded archive_tasks() measured the section to end-of-file, the bug fixed in the CLI in 2.2.1 but never ported to this independent bash copy. It now bounds the section at the next ## heading, handles table-shaped sections, and uses the same arithmetic as the CLI. Existing projects do not get this fix automatically: specpilot backfill never overwrites an existing command file. To get it after upgrading, delete each IDE's copy of the command — .claude/commands/specpilot-archive.md, .cursor/commands/specpilot-archive.md, .windsurf/workflows/specpilot-archive.md, .agent/workflows/specpilot-archive.md, .github/prompts/specpilot-archive.prompt.md — and run specpilot backfill. Codex users must re-copy .codex/prompts/specpilot-archive.md into ~/.codex/prompts/ themselves, because backfill skips Codex and the working copy lives outside the repo; for the same reason backfill does not refresh the project's .codex/prompts/ reference copy either, so regenerate that file first (for example, run specpilot init in a scratch directory with Codex selected and take its .codex/prompts/specpilot-archive.md).

Changed

  • Internal: shared section-bounds helper and pure spec reader (BL-050, specpilot serve Phase 0 groundwork; no user-visible change): new src/utils/markdownSections.ts findSectionBounds() is now the single TypeScript source of the "a ## section ends at the next ## heading, not EOF" rule, used by specArchiver.ts (archiveTasks(), archivePrompts()) and specValidator.ts (validateLineLimits()) with identical behaviour. New src/utils/specReader.ts is a pure, fs-free parser from .specs/ file contents to per-file metadata and tasks.md Backlog / Current Sprint / Completed rows, cell text verbatim. 10 new tests (216 → 226).