Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
4907a3a
docs: release-agents - Specify portable changelog and release agents
claude Oct 9, 2026
603bff9
docs: release-agents - Add spec 020 plan, research and contracts
claude Oct 9, 2026
48d4167
docs: release-agents - Add spec 020 issue map and delivery plan
claude Oct 9, 2026
fec1c45
docs: release-agents - Add spec 020 task breakdown
claude Oct 9, 2026
ee4cc5d
docs: release-agents - Add spec 020 safety and handoff checklist
claude Oct 9, 2026
4903188
docs: release-agents - Apply spec 020 analysis remediations
claude Oct 9, 2026
8f5a2f2
docs: release-agents - Record spec 020 approval clarification
claude Oct 9, 2026
5f09d58
docs: release-agents - Record spec 020 changelog engine clarification
claude Oct 9, 2026
b906f58
docs: release-agents - Record spec 020 missing-response clarification
claude Oct 9, 2026
c9c2ad9
docs: release-agents - Record spec 020 required-checks clarification
claude Oct 9, 2026
3ef65c7
docs: release-agents - Record spec 020 enhancement detection clarific…
claude Oct 9, 2026
eab3ce8
docs: release-agents - Address spec 020 review findings
claude Oct 9, 2026
648386d
docs: release-agents - Remove spec 020 from the specification catalogue
coderabbitai[bot] Oct 9, 2026
1656078
docs: release-agents - Restore spec 020 catalogue entry
claude Oct 9, 2026
ec6a25e
docs: release-agents - Record applied issue-map previews
claude Oct 10, 2026
d1989b4
docs: release-agents - Record spec 020 numbering decision
claude Oct 10, 2026
7258d7d
docs: release-agents - Record spec 020 version-source clarification
claude Oct 10, 2026
15fc7bf
docs: release-agents - Record spec 020 changelog ownership clarification
claude Oct 10, 2026
bb2ab84
docs: release-agents - Record spec 020 adapter shape clarification
claude Oct 10, 2026
365e0d6
spec(020-portable-changelog-release-agents): Apply spec analysis reme…
claude Oct 12, 2026
c85125b
docs: release-agents - Fix spec 020 remediation review findings
claude Oct 12, 2026
6e392bf
docs: release-agents - Apply remaining spec 020 analysis fixes
claude Oct 12, 2026
e505511
docs: release-agents - Adopt verification contract and validation policy
claude Oct 12, 2026
04a4b2e
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Oct 13, 2026
3be34de
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Oct 13, 2026
1d5c57d
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Oct 14, 2026
e90871b
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Oct 21, 2026
06f2675
docs: release-agents - Record decision to keep spec number 020
claude Oct 22, 2026
7e427bd
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 5, 2026
ea94b1c
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 5, 2026
cf88059
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
c5862a3
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
a82ad26
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
37490c2
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
fa4eefd
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
5b02281
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
54b008d
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
312cdd7
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
53495b1
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
5c07662
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
e17d209
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
25165d0
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
2499713
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 9, 2026
c7b6fbc
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 11, 2026
0e130b0
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
1dd0f28
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
25ee0d1
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
223a0b9
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
baf1df2
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
50a1bf4
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
c631966
Merge branch 'develop' into docs/portable-changelog-release-agents
lightspeed-docs-bot[bot] Nov 18, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Specification Quality Checklist: Portable Changelog and WordPress Release Preparation Agents

**Purpose**: Validate specification completeness and quality before proceeding to planning
**Created**: 2026-10-09
**Feature**: [spec.md](../spec.md)

## Content Quality

- [x] No implementation details beyond names the brief mandates (existing utilities, test frameworks, package layout are constraints, not new design)
- [x] Focused on user value and safety outcomes
- [x] Written so maintainers and reviewers can follow it
- [x] All mandatory sections completed

## Requirement Completeness

- [x] No [NEEDS CLARIFICATION] markers remain (three open decisions are listed for `/speckit-clarify`)
- [x] Requirements are testable and unambiguous
- [x] Success criteria are measurable
- [x] Success criteria avoid invented thresholds
- [x] All acceptance scenarios are defined
- [x] Edge cases are identified
- [x] Scope is clearly bounded (MVP versus roadmap versus out of scope)
- [x] Dependencies and assumptions identified

## Feature Readiness

- [x] All functional requirements have clear acceptance criteria
- [x] User scenarios cover primary flows
- [x] Feature meets measurable outcomes defined in Success Criteria
- [x] No unverified claims (issue/PR numbers appear only where the brief cites them)

## Notes

- `issue-map.md` and `delivery-plan.md` are written from live records; every record change in them is a preview that needs separate approval.
- Run `/speckit-clarify` for the three open decisions before `/speckit-plan`.
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Release Safety and Handoff Requirements Quality Checklist: Portable Changelog and WordPress Release Preparation Agents

**Purpose**: Validate that the release-safety, fail-closed handoff and delivery-governance requirements are complete, clear, consistent and measurable before implementation begins
**Created**: 2026-10-09
**Feature**: [spec.md](../spec.md)

**Note**: This custom checklist is generated by the `/speckit-checklist` command based on feature context and requirements.
**Review Ownership**: This checklist is a reviewer-owned requirements-quality review artifact. Mark an item `[x]` only when the reviewer determines the requirements-quality criterion is satisfied.
**Marker Semantics**: `[x]` means the criterion has been reviewed and satisfied for requirements quality. It does not mean implementation work is complete.

**Focus and depth** (defaults applied because the request gave no focus): standard depth, reviewer audience (spec PR review before `/speckit-analyze`), two focus areas: release safety (fail-closed, dry run, recovery, path safety) and the release-to-changelog handoff with delivery traceability.

## Requirement Completeness

- [ ] CHK001 Is the "allowlist" for approved preparation edits defined, including which files and which fields it covers? [Gap, Spec §FR-007]
- [ ] CHK002 Is the approval mechanism for preparation and apply operations specified (who approves, in what form, how it is recorded and referenced)? [Gap, Spec §FR-007, Spec §FR-009]
- [ ] CHK003 Are the "required checks" whose absence blocks readiness enumerated, or is their source named? [Gap, Spec §FR-005]
- [ ] CHK004 Is the target "enhancement" component type defined well enough to be detected, rather than only named? [Gap, Spec §FR-003]
- [ ] CHK005 Are non-functional requirements stated for portability beyond Claude (offline use, supported Node versions, path handling on macOS and Linux)? [Gap, Spec §FR-019]
- [ ] CHK006 Are requirements defined for how the agent behaves when `git` itself is unavailable or the repository is not a git repository? [Gap, Edge Case]
- [ ] CHK007 Is the "recoverability" of an approved edit defined (what state is restored, how it is verified, and what is reported if recovery fails)? [Gap, Spec §FR-007, Spec §SC-004]

## Requirement Clarity

- [ ] CHK008 Is "meaningful errors" defined with required content (cause, affected path, next step)? [Ambiguity, Spec §FR-007]
- [ ] CHK009 Is "conflicting version or tag evidence" defined precisely enough to distinguish a conflict from a note? [Ambiguity, Spec §FR-005]
- [ ] CHK010 Is "bounded" in "bounded edits" quantified (which sections or lines may change)? [Ambiguity, Spec §FR-009]
- [ ] CHK011 Is the repository "length rule" for changelog entries stated in the spec rather than only referenced from the constitution? [Ambiguity, Spec §FR-011]
- [ ] CHK012 Is "unavailable" for the changelog agent defined, including how long a missing response is awaited before it counts as not received? [Ambiguity, Spec §FR-014]
- [ ] CHK013 Is "unsafe path" defined consistently between the spec, the readiness contract and the data model? [Clarity, Spec §FR-006]
- [ ] CHK014 Is "authoritative" version source defined for the case where a target's instructions designate more than one? [Ambiguity, Spec §FR-004]

## Requirement Consistency

- [ ] CHK015 Does User Story 3 (priority P1) conflict with its dependence on User Story 2 (priority P2), given the handoff requires a working changelog agent? [Conflict, Spec §US2, Spec §US3]
- [ ] CHK016 Do the spec's statements that release preparation is "priority 1" and that its final ready state is blocked on changelog evidence read consistently? [Consistency, Spec §Scope, Spec §FR-014]
- [ ] CHK017 Are the readiness blocker codes in the readiness contract consistent with the failure conditions listed in the functional requirements? [Consistency, Spec §FR-005]
- [ ] CHK018 Is the rule that only the changelog agent edits `CHANGELOG.md` consistent with the release agent's preparation scope? [Consistency, Spec §FR-008, Spec §FR-009]
- [ ] CHK019 Do the requirements that the agents "fail closed" and that dry run is the default apply equally to both agents? [Consistency, Spec §FR-001, Spec §FR-014]
- [ ] CHK020 Is the claim that no new labels or event services are needed consistent with the labels and routing the delivery plan relies on? [Consistency, Spec §FR-015]

## Acceptance Criteria Quality

- [ ] CHK021 Can "every required fixture scenario" in the dry-run success criterion be objectively checked, given the fixture list lives in another requirement? [Measurability, Spec §SC-001, Spec §FR-022]
- [ ] CHK022 Is "runs in a clean location" measurable, with the definition of clean stated? [Measurability, Spec §SC-008]
- [ ] CHK023 Is "zero replacement issues are proposed where an existing issue fits" verifiable without subjective judgement of fit? [Measurability, Spec §SC-009]
- [ ] CHK024 Are acceptance criteria defined for the ESM-to-CommonJS boundary and the migration of existing callers? [Gap, Spec §FR-016]
- [ ] CHK025 Does each user story have acceptance scenarios covering its failure paths, not only its success path? [Coverage, Spec §US1, Spec §US2, Spec §US3]

## Scenario and Edge Case Coverage

- [ ] CHK026 Are requirements defined for a hand edit to the changelog or version files between draft and approved apply? [Gap, Edge Case, Spec §US2]
- [ ] CHK027 Are requirements defined for a repeated or concurrent invocation against the same target? [Gap, Edge Case]
- [ ] CHK028 Are recovery requirements defined when an approved edit fails part-way across several version files? [Coverage, Recovery, Spec §FR-007]
- [ ] CHK029 Are requirements defined for a repository with both plugin and theme markers, or with neither? [Coverage, Edge Case, Spec §Edge Cases]
- [ ] CHK030 Is the behaviour defined when the explicit `repoRoot` itself contains symlinks or resolves outside the intended tree? [Coverage, Exception Flow, Spec §FR-002, Spec §FR-006]

## Dependencies, Assumptions and Traceability

- [ ] CHK031 Is the assumption that the in-flight consolidation (issue 3880, PR 3881) will land before the release MVP validated, and is the fallback stated? [Assumption, Spec §Assumptions]
- [ ] CHK032 Is the dependency on the shipped validation engine's location documented against the requirement that copied adapters work without a governance checkout? [Dependency, Conflict, Spec §FR-010, Spec §FR-019]
- [ ] CHK033 Is the dependency on the 019 numbering reservation and its effect on the spec audit recorded as a requirement-level risk? [Dependency, Spec §FR-025]
- [ ] CHK034 Does every functional requirement map to at least one user story and one success criterion, or is the gap stated? [Traceability, Spec §Requirements]
- [ ] CHK035 Is a requirement ID scheme established that tasks, contracts and the issue map reference consistently? [Traceability, Spec §Requirements]

## Ambiguities and Open Decisions

- [ ] CHK036 Are the three open decisions (authoritative version source when instructions are silent, who stamps the changelog, one adapter module or two) tied to the requirements each one changes? [Ambiguity, Spec §Open Decisions]
- [ ] CHK037 Are the provisional answers recorded in research clearly distinguished from decided requirements in the spec? [Ambiguity, Spec §Open Decisions]

## Notes

- Mark items `[x]` only after review confirms the requirement-quality criterion is satisfied
- Leave items unchecked when they still require clarification, correction, or reviewer evaluation
- `/speckit-implement` reads checklist checkbox state as a gate and must not modify markers
- `checklists/requirements.md` has a separate built-in lifecycle maintained by `/speckit-specify` and `/speckit-clarify`
- Add comments or findings inline
- Candidate findings noticed while writing this checklist, for the reviewer to confirm: CHK015 (priority conflict between US2 and US3), CHK032 (engine location versus portability) and CHK011 (length rule not stated in the spec)
- Items are numbered sequentially for easy reference
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Contract: Agent Package Layout

Applies to `agents/release-agent/` and `agents/changelog-agent/` (FR-017). Reconciliation with the in-flight canonical-source migration (issue #3880, PR #3881) is a prerequisite.

## Required

| Item | Notes |
|------|-------|
| `AGENT.md` | One canonical agent definition. Distinct from working-instructions `AGENTS.md`. |
| `README.md` | Usage, safety defaults and portability notes. |
| `CHANGELOG.md` | The agent's own changelog. |
| `scripts/` | Node scripts; tests in `scripts/__tests__/` or `scripts/adapters/__tests__/` (Jest). |
| `skills/<capability>/SKILL.md` | Namespaced, conforming to the skill standard. Only real skills; no empty placeholders. |
| `claude/` | Small Claude adapter that resolves resources outside any governance checkout. |

## Conditional

| Item | When |
|------|------|
| `package.json` and lockfile | Where the selected project convention requires them. |
| `tests/` with fixtures | Bash/Bats cases at agent root. |
| `references/`, `assets/` | Only when actual content exists. |

## Prohibited

Gratuitous `includes/`, `gates/`, `shared/`, `results/`, `manifest` or example trees; invented dependencies; empty directories created to look compliant.

## Install behaviour (for the later setup and distribution slices)

Default dry run; refuse name collisions; preserve user and project overrides; pin source and version; define upgrade and uninstall ownership; never copy secrets, hooks or cloud configuration wholesale. Claude local and cloud discovery differ; other providers need independent current documentation and tests.
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Approval Digest Contract

**Feature**: [spec.md](./../spec.md) | Related: FR-029, SC-011, T018, T024, T029, T036

## Purpose

An approval digest binds the maintainer's approval to one exact proposed edit. The agent writes only when the digest it recomputes immediately before writing matches the digest the maintainer supplied. Command names, flag names and exit codes are decided in the implementation tasks (T023, T036); this contract fixes only the algorithm and behaviour.

## Digest algorithm

- **Hash function**: SHA-256.
- **Input**: canonical JSON (sorted keys, no extra whitespace) of the files to change, with the action, key, old value and new value for each.
- **Encoding**: 64 lowercase hexadecimal characters.
- **Scope by agent** (FR-009):
- Release agent: allowlisted version-field files only (plugin header, readme stable tag, theme stylesheet, `package.json`, `VERSION`). It never edits `CHANGELOG.md`.
- Changelog agent: `CHANGELOG.md` only. It never edits version fields.

### Worked example (release agent)

Canonical input:

```text
{"files":{"package.json":{"action":"update","key":"version","newValue":"1.2.0","oldValue":"1.1.0"},"readme.txt":{"action":"update","key":"Stable tag","newValue":"1.2.0","oldValue":"1.1.0"}}}
```

SHA-256 of that exact string:

```text
885ad763e69ae46f458a8df321a5fdf0510a7c50766ef42c3089c43d2f126fca
```

## Behaviour

1. **Display**: the agent shows the exact proposed edit and its digest. It writes nothing.
2. **Supply**: the maintainer returns the digest through the agent's approval input.
3. **Recheck**: immediately before writing, the agent recomputes the digest from the current repository state.
4. **Match**: write only the approved edit and record the digest in the result.
5. **Mismatch, missing or malformed digest**: write nothing and report which condition occurred, with both digests on a mismatch.

A hand edit between display and approval changes the recomputed digest, so the approval cannot be reused for a different change.

## Failure results

| Condition | Result | Writes |
|-----------|--------|--------|
| Supplied digest differs from the recomputed digest | `approval-digest-mismatch`, both digests shown | None |
| No digest supplied where one is required | `approval-required`, digest to approve shown | None |
| Supplied value is not 64 lowercase hex characters | `approval-digest-invalid` | None |

## Test scenarios

| Scenario | Setup | Expected |
|----------|-------|----------|
| Digest match | Display digest D1, maintainer supplies D1 | Edit written; digest recorded |
| Digest mismatch | Display D1, file edited by hand, recomputed D2 | Zero files written |
| Missing digest | No approval supplied | Edit refused; digest shown |
| Invalid digest | Malformed value | Rejected |
| Repeat after a successful apply | Run again with the same digest | Recomputed digest differs or the change is already applied; nothing is written twice |

## Traceability

- **FR-029**: the maintainer supplies the digest of the exact proposed edit; the agent rechecks before writing.
- **SC-011**: in every fixture where the supplied digest does not match, zero files are written.
- **T018 / T024**: release-agent tests and the approved preparation operation.
- **T029 / T036**: changelog-agent tests and the approved apply operation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Contract: Release Readiness Report

**Producer**: release agent (readiness operation) | **Consumers**: maintainer, changelog agent (via handoff)

The readiness operation is read-only. Producing this report must not write files, stage, stash, tag, push or contact a remote.

## Inputs

| Input | Required | Notes |
|-------|----------|-------|
| `repoRoot` | Yes | Explicit path. Applied to every filesystem and git operation. |
| `mode` | No | Defaults to `readiness`. Any other mode is a separate, approved operation. |
| `targetVersion`, `releaseDate` | Only to request changelog verification | Strict SemVer and a valid `YYYY-MM-DD` date, never inferred from the clock. Missing values prevent the verification request, not inspection. |

## Output fields

| Field | Description |
|-------|-------------|
| `status` | `ready` or `not-ready`. |
| `repoRoot` | Echo of the root actually used. |
| `componentType` | `plugin`, `theme`, `enhancement` or `unknown`. |
| `versionSources[]` | Each source: kind, repository-relative path, value, authoritative flag. |
| `findings[]` | Each finding: `code`, `severity` (`blocker` or `note`), `message`, affected paths. |
| `writes` | Always `0` for readiness. Non-zero is a defect. |

## Required blocker codes

| Code | Raised when |
|------|-------------|
| `dirty-tree` | Uncommitted changes exist. |
| `version-drift` | Detected versions differ. Findings name each source and file. |
| `version-ambiguous` | Authoritative field cannot be determined from the target's instructions. |
| `unsafe-path` | A path escapes `repoRoot` or is absolute where relative is required. |
| `missing-check` | A required check named in the target's own instructions or CI configuration could not run, or none are named so nothing can be verified. It is never skipped silently. |
| `tag-conflict` | Local and remote tag evidence disagree, or the target tag exists. |
| `component-unknown` | No plugin or theme could be identified, or the repository looks like an enhancement but its own instructions do not declare it and name its version fields. |
| `changelog-unverified` | Handoff verification is missing, failed or not received. |

`status` is `ready` only when no `blocker` finding exists and changelog verification meets every rule in [verification-handoff.md](./verification-handoff.md). Passed prechecks are not readiness: the verification request carries `precheckStatus: "passed"`, and only the verified handback can lead to `ready`.
Loading
Loading