Skip to content

v0.20.0 — adr-tools and tpl-tools join the marketplace; past-decision check uses adr-search

Latest

Choose a tag to compare

@kompiro kompiro released this 17 Nov 09:25
88f0c33

Added

  • The kompiro-hane marketplace now lists the tpl-tools plugin (/plugin install tpl-tools@kompiro-hane), which carries the test-perspective skill. If you added kompiro-hane before this release, run /plugin marketplace update kompiro-hane first, or the install cannot find the plugin. (#101, #103)
  • The kompiro-hane marketplace now lists the adr-tools plugin (/plugin install adr-tools@kompiro-hane), which carries the adr-search skill: it finds the ADRs that apply to a task and says which are still in force, with adr search / adr refs from adr-tools v0.0.14. Refresh the marketplace first if you added it before this release. (kompiro/adr-tools#39)

Changed

  • start-dev / design-doc: in a host that keeps its ADRs with adr-tools (adr.config.json at the repo root), the past-decision check now runs /adr-tools:adr-search, which tells which ADRs are still in force. Its "Decisions to keep" go into the plan or design doc as constraints, and its "Decisions that need a discussion before overriding" are the conflicts the check looks for. Without the plugin, the check greps as before and suggests /plugin install adr-tools@kompiro-hane, without waiting for it. Hosts without adr.config.json keep the grep. See ADR-110. (#110)
  • design-doc: a proactive TPL is now written with /tpl-tools:test-perspective, and the skill no longer says to take the TPL's number from the Issue, because the id follows the host's idFormat. When the plugin is missing, the skill asks the user to install it; if they decline, the perspective is written into the design doc's ## Related TPLs section as not yet a TPL. (#101, #103)
  • init: adopting docs/test-perspectives/ no longer copies a TPL template, whose copy now lives in the tpl-tools skill. It asks for the TPL id format and writes tpl.config.json: issue-number (TPL-<number>, as hane numbered TPLs before) by default, or date-sequence. It creates .gitkeep and the config only when the directory has no TPLs yet and the host has no tpl-tools config, and points to the tpl-tools plugin and CLI. The process.md skeleton names /tpl-tools:test-perspective, and TPL ids follow idFormat. (#101, #103)
  • Deprecation convention: the Retire level now also adds disable-model-invocation: true, because a description without trigger phrases still let the model pick the skill. The retired qa skill now has it. See ADR-103. (#103)
  • ship / start-dev: the PR body no longer has a Post-merge follow-ups section, and an implementation PR links its Issue with Closes #N, so the Issue closes when the PR merges (except a PR that leaves an implementation step of the Issue's Plan open; see the next entry). An item that can only be checked or done after the merge (the next release, a production-only setting, a backfill on main) gets its own Issue, opened before the PR and linked from the PR's Purpose in one line. Steps the host's process already defines after a merge (ADR promotion, cleanup) are not written down. The cleanup step that appended follow-ups to the Issue body is gone. In 0.19.0 most implementation PRs listed such a step as a follow-up, switched to Refs #N, and left their Issue open after the merge. (#97)
  • ship / start-dev: the PR's Issue link now follows one test: after this PR merges, does the Plan written in the Issue body still have an implementation step? If not (or the Issue body has no Plan steps), the PR says Closes #N. If it does, as with a PR that lands only a trial build, the PR says Refs #N, names in its Purpose the step it finishes and the steps that remain, and the Issue stays open; cleanup marks the finished steps as done in the Issue body and moves it from status: in-review back to status: ready so pick-issue offers the remaining steps again. Only the Plan section of the Issue body counts (not its acceptance criteria, and not a session's plan mode, which other sessions cannot see), and steps the host's process defines after a merge (ADR promotion, cleanup) are not counted even when the Plan lists them. A design-doc-only PR still says Refs #N whatever the Plan says, and ship's cleanup moves its Issue from status: in-review to status: designed (the same label design-doc step 9 sets). An item checkable only after the merge does not affect the link; the Plan test alone decides it. Issues blocked on #N are moved to status: ready after a Refs #N PR only when they waited on the step it finished, and in either case only when their other prerequisites are done. On kompiro/karasu#3769 a trial-build PR said Closes #3684, and the merge closed the Issue with its later steps still open. This follows kompiro/karasu ADR-3818. (#107)

Deprecated

  • test-perspective skill: retired. Superseded by /tpl-tools:test-perspective, because the rules for writing a TPL now live in tpl-tools. Trigger phrases were removed from description and disable-model-invocation: true was added, so a repo that uses TPLs needs the tpl-tools plugin for the skill to be suggested. The banner tells a reader who calls it by name not to follow the old steps. The body is kept for provenance. A repo that already has TPL-<number> files and no tpl.config.json must add {"idFormat": "issue-number"} to tpl.config.json; without it the tpl-tools skill and tpl validate use date-sequence (TPL-YYYYMMDD-NN). See ADR-101. (#101, #103)

Fixed

  • acceptance-test: whether a TPL is proactive is now decided by its origin: whether the failure it guards against had already happened when the TPL was raised. The skill no longer reads the presence of issue: as retrospective, and no single discovered_from field or Issue label decides; the fields and the Issue are clues, and the skill asks the user when they do not settle it. Since ADR-92 a proactive TPL also names the Issue it was raised under, so the skill skipped proactive TPLs from design-doc and never carried their checklist items into the AT. See ADR-104, which replaces ADR-92's "has root_cause_file / root_cause_adr". (#104)
  • acceptance-test / design-doc: related TPLs are now found with tpl related when the host has the tpl CLI from @kompiro/tpl-tools (directly or through a host script): by topic, and by the files the change touches (--base / --changed-files, tpl-tools v0.0.14 and later). The frontmatter module fields (scope.packages and the like) are grepped either way, because the CLI does not match them. Without the CLI, the skills also grep TPL bodies for the changed paths and match scope.paths, because some TPLs name a file only in their body. The skills used to point only to host scripts named like tpl:related and grep the frontmatter. design-doc now points a proactive TPL's root_cause_file at the principle it guards. (#104)
  • test-perspective: a host whose TPL index is a generated file (its header says it is generated by tpl regenerate and not to edit it by hand) no longer gets that index edited or regenerated in a TPL PR. The PR changes only the TPL files, and the host's docs/test-perspectives/README.md says how the index is updated. A host that keeps a hand-maintained table still gets a row added. The skill used to assume every host had a hand-maintained table, so an agent could treat kompiro/karasu's generated index.md as that table and fail karasu's check that keeps generated changes out of regular PRs (kompiro/karasu#3289). (#99)

Full Changelog: v0.19.0...v0.20.0