@codyswann/lisa 2.303.0 → 2.304.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/doctor-readiness-report-redaction.d.ts +11 -0
- package/dist/cli/doctor-readiness-report-redaction.d.ts.map +1 -0
- package/dist/cli/doctor-readiness-report-redaction.js +59 -0
- package/dist/cli/doctor-readiness-report-redaction.js.map +1 -0
- package/dist/cli/doctor-readiness.d.ts +13 -1
- package/dist/cli/doctor-readiness.d.ts.map +1 -1
- package/dist/cli/doctor-readiness.js +2 -1
- package/dist/cli/doctor-readiness.js.map +1 -1
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +34 -13
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/package.json +1 -1
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/lisa/.codex-plugin/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/lisa/.codex-plugin/skills/lisa-research/SKILL.md +3 -1
- package/plugins/lisa/rules/eager/prd-definition-of-ready.md +32 -0
- package/plugins/lisa/rules/eager/work-item-definition-of-ready.md +27 -0
- package/plugins/lisa/rules/reference/prd-definition-of-ready.md +81 -0
- package/plugins/lisa/rules/reference/work-item-definition-of-ready.md +145 -0
- package/plugins/lisa/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/lisa/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/lisa/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/lisa/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/lisa/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/lisa/skills/lisa-research/SKILL.md +3 -1
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-agy/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-agy/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/lisa-agy/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/lisa-agy/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-agy/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/lisa-agy/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-agy/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/lisa-agy/skills/lisa-research/SKILL.md +3 -1
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/rules/eager/prd-definition-of-ready.md +32 -0
- package/plugins/lisa-copilot/rules/eager/work-item-definition-of-ready.md +27 -0
- package/plugins/lisa-copilot/rules/reference/prd-definition-of-ready.md +81 -0
- package/plugins/lisa-copilot/rules/reference/work-item-definition-of-ready.md +145 -0
- package/plugins/lisa-copilot/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-copilot/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-copilot/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/lisa-copilot/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/lisa-copilot/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-copilot/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/lisa-copilot/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-copilot/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/lisa-copilot/skills/lisa-research/SKILL.md +3 -1
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/rules/prd-definition-of-ready-reference.mdc +86 -0
- package/plugins/lisa-cursor/rules/prd-definition-of-ready.mdc +37 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready-reference.mdc +150 -0
- package/plugins/lisa-cursor/rules/work-item-definition-of-ready.mdc +32 -0
- package/plugins/lisa-cursor/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-cursor/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-cursor/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/lisa-cursor/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/lisa-cursor/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-cursor/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/lisa-cursor/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/lisa-cursor/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/lisa-cursor/skills/lisa-research/SKILL.md +3 -1
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/rules/eager/prd-definition-of-ready.md +32 -0
- package/plugins/src/base/rules/eager/work-item-definition-of-ready.md +27 -0
- package/plugins/src/base/rules/reference/prd-definition-of-ready.md +81 -0
- package/plugins/src/base/rules/reference/work-item-definition-of-ready.md +145 -0
- package/plugins/src/base/skills/lisa-confluence-to-tracker/SKILL.md +24 -0
- package/plugins/src/base/skills/lisa-confluence-write-prd/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-github-to-tracker/SKILL.md +24 -0
- package/plugins/src/base/skills/lisa-github-validate-issue/SKILL.md +39 -7
- package/plugins/src/base/skills/lisa-github-write-prd/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-jira-validate-ticket/SKILL.md +41 -7
- package/plugins/src/base/skills/lisa-linear-to-tracker/SKILL.md +24 -0
- package/plugins/src/base/skills/lisa-linear-validate-issue/SKILL.md +40 -6
- package/plugins/src/base/skills/lisa-linear-write-prd/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-notion-to-tracker/SKILL.md +24 -0
- package/plugins/src/base/skills/lisa-notion-write-prd/SKILL.md +2 -0
- package/plugins/src/base/skills/lisa-research/SKILL.md +3 -1
- package/ui/index.html +37 -2
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# PRD Definition of Ready — Reference
|
|
2
|
+
|
|
3
|
+
The eager head carries the atom definition and enforcement points; this
|
|
4
|
+
reference carries the rationale, the full vagueness lexicon, and worked
|
|
5
|
+
rewrites. The companion rule `work-item-definition-of-ready` governs the next
|
|
6
|
+
stage down (tickets); this rule governs what the Plan factory decomposes from.
|
|
7
|
+
|
|
8
|
+
## Why requirement shape is the whole game
|
|
9
|
+
|
|
10
|
+
The pipeline consumes requirements three times, and each consumer needs a
|
|
11
|
+
different property that only shaped atoms provide:
|
|
12
|
+
|
|
13
|
+
1. **Plan decomposes** — an EARS-shaped atom (*When X, the system shall Y*)
|
|
14
|
+
maps to a Gherkin scenario (*When X / Then Y*) nearly mechanically. Prose
|
|
15
|
+
paragraphs force the planner to invent the split, which is where scope
|
|
16
|
+
quietly drifts between the PRD and the backlog.
|
|
17
|
+
2. **Tickets trace** — gate S16 quotes the requirement verbatim on every leaf.
|
|
18
|
+
A verbatim quote of a paragraph containing three requirements is an
|
|
19
|
+
ambiguous trace: which of the three does this ticket satisfy?
|
|
20
|
+
3. **Verification checks conformance** — spec-conformance and `verify-prd`
|
|
21
|
+
read the PRD back against the shipped result. A fit criterion is a
|
|
22
|
+
conformance check waiting to run; an adjective is not.
|
|
23
|
+
|
|
24
|
+
The standards being distilled: **ISO/IEC/IEEE 29148** (successor to IEEE 830)
|
|
25
|
+
supplies the per-requirement quality characteristics — necessary, appropriate,
|
|
26
|
+
unambiguous, complete, singular, feasible, verifiable, correct — and the
|
|
27
|
+
practice of banning untestable phrasing. **EARS** (Mavin et al.) supplies the
|
|
28
|
+
five sentence patterns. **Volere** supplies the fit criterion. **ISO 25010**
|
|
29
|
+
supplies the non-functional axes for the completeness walk. None of these are
|
|
30
|
+
imported wholesale; this rule takes exactly the parts a machine planner and a
|
|
31
|
+
machine verifier consume.
|
|
32
|
+
|
|
33
|
+
## The vagueness lexicon
|
|
34
|
+
|
|
35
|
+
Presence of these (and their kin) in a requirement atom FAILs it as
|
|
36
|
+
unverifiable — each is a phrase no test can check:
|
|
37
|
+
|
|
38
|
+
> as appropriate · as needed · if necessary · user-friendly · intuitive ·
|
|
39
|
+
> seamless · robust · flexible · fast · quickly · efficient · optimize ·
|
|
40
|
+
> minimize / maximize (unbounded) · handle gracefully · support (unbounded) ·
|
|
41
|
+
> etc. · and/or · TBD inside an atom (TBD belongs in Open Questions)
|
|
42
|
+
|
|
43
|
+
The lexicon is a floor, not a ceiling — validators should flag any phrasing
|
|
44
|
+
they cannot turn into a check.
|
|
45
|
+
|
|
46
|
+
## Worked rewrites
|
|
47
|
+
|
|
48
|
+
| Before (fails) | After (passes) |
|
|
49
|
+
|---|---|
|
|
50
|
+
| "Uploads should be fast and handle errors gracefully." | R4: *When a user uploads a file ≤ 25 MB, the system shall complete the upload within 4s at p95.* Fit: perf-trace on staging. R5: *If an upload fails, then the system shall show a retryable error naming the cause.* Fit: screenshot of the error state per failure class. |
|
|
51
|
+
| "The dashboard should be user-friendly and support filtering, sorting, etc." | R7: *The dashboard shall filter by status, owner, and date range.* R8: *The dashboard shall sort by any visible column.* Fit: each verb exercised in an E2E journey. ("etc." is deleted — unnamed features are unbuilt features.) |
|
|
52
|
+
| "Optimize the pipeline." | R2: *The nightly pipeline shall complete within 30 minutes for a 10k-item batch* (baseline: 47m measured 2026-07-01). Fit: pipeline duration metric. — note this is Improvement-shaped: baseline + target, per `work-item-definition-of-ready`. |
|
|
53
|
+
|
|
54
|
+
## Singularity repair
|
|
55
|
+
|
|
56
|
+
When an atom contains multiple behaviors, the register splits it (`R4` →
|
|
57
|
+
`R4a`, `R4b`) — **mechanically when the split preserves meaning**, as a
|
|
58
|
+
product clarification when it does not. The split is recorded in the dry-run
|
|
59
|
+
report; it is never silent, because the PRD author's numbering is part of the
|
|
60
|
+
traceability contract.
|
|
61
|
+
|
|
62
|
+
## The non-functional walk
|
|
63
|
+
|
|
64
|
+
A PRD is complete only when the ISO 25010 axes were each considered:
|
|
65
|
+
performance, security, reliability, usability, compatibility,
|
|
66
|
+
maintainability/operability. The required artifact is one line per axis —
|
|
67
|
+
either an atom or an explicit "no requirement." The point is not ceremony; it
|
|
68
|
+
is that **silence and "no requirement" are different facts**, and only one of
|
|
69
|
+
them is a decision a verifier can hold the product to.
|
|
70
|
+
|
|
71
|
+
## Relationship to the lifecycle
|
|
72
|
+
|
|
73
|
+
- **Write** — `lisa-research` authors atoms; `*-write-prd` carries the body
|
|
74
|
+
rule. Factory-authored PRDs are born conforming.
|
|
75
|
+
- **Intake** — `*-to-tracker` Phase 1.45 is the universal gate (human-authored
|
|
76
|
+
PRDs arrive here without passing any write path). Failures quote the atom
|
|
77
|
+
verbatim, name the defect, and offer 1–3 candidate rewrites — the
|
|
78
|
+
EARS-shaped rewrite is the default recommendation. Routed like every other
|
|
79
|
+
intake failure: PRD to `blocked`, product-readable comments.
|
|
80
|
+
- **Verify** — fit criteria become the spec-conformance checks; the
|
|
81
|
+
requirement register ids appear in the PRD backlink and the coverage audit.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Work-Item Definition of Ready — Reference
|
|
2
|
+
|
|
3
|
+
The eager head carries the table; this reference carries the reasoning, the
|
|
4
|
+
failure modes each requirement prevents, and worked examples. The enforcing
|
|
5
|
+
gates live in the three tracker validators (`lisa-jira-validate-ticket`,
|
|
6
|
+
`lisa-github-validate-issue`, `lisa-linear-validate-issue`), which cite this
|
|
7
|
+
rule so the bar cannot drift per vendor.
|
|
8
|
+
|
|
9
|
+
## The design principle
|
|
10
|
+
|
|
11
|
+
A readiness gate is justified by exactly one thing: **its absence forces a
|
|
12
|
+
human question.** The goal state is that a stateless agent — fresh session, no
|
|
13
|
+
memory of any prior conversation — claims any ready item and drives it to its
|
|
14
|
+
terminal state with zero human clarification. Every requirement below is an
|
|
15
|
+
answer to a question agents otherwise ask mid-flight, which is the most
|
|
16
|
+
expensive time to ask it: the item is claimed, the human is absent, and the
|
|
17
|
+
choice is stall (blocked, human round-trip) or guess (rework when wrong).
|
|
18
|
+
|
|
19
|
+
The bar is **type-keyed** because work types break autonomy differently. A
|
|
20
|
+
Story with perfect Gherkin but no design source makes the agent guess visuals.
|
|
21
|
+
A Bug with perfect prose but no executable repro makes the agent guess whether
|
|
22
|
+
it even fixed anything. One generic checklist over-asks some types (Gherkin on
|
|
23
|
+
a Spike is noise) and under-asks others (three bullets on a Bug).
|
|
24
|
+
|
|
25
|
+
## Bug — the defect anatomy
|
|
26
|
+
|
|
27
|
+
Modeled on the ISTQB defect-report content list, IEEE 1044, and
|
|
28
|
+
minimal-reproducible-example practice, tightened for a machine executor:
|
|
29
|
+
|
|
30
|
+
1. **Agent-executable reproduction.** Numbered steps a stateless agent can run
|
|
31
|
+
mechanically: exact entry point, named account/role (consistent with the
|
|
32
|
+
Sign-in Required section when authenticated), concrete data state, exact
|
|
33
|
+
actions. "Open the dashboard and click around until it breaks" is
|
|
34
|
+
human-followable, not agent-executable — it FAILs. A linked failing test
|
|
35
|
+
satisfies this requirement outright and is the preferred form.
|
|
36
|
+
2. **Expected vs. actual, with the source of "expected."** Name or link where
|
|
37
|
+
the expected behavior comes from — spec, PRD requirement, prior release. A
|
|
38
|
+
fix target must be a fact, not an opinion, or the agent can confidently fix
|
|
39
|
+
to the wrong behavior.
|
|
40
|
+
3. **Environment and version.** Where reproduced, and the build/commit
|
|
41
|
+
observed. Include last-known-good when known — that regression window is
|
|
42
|
+
what makes bisection possible. `unknown` is acceptable but must be stated.
|
|
43
|
+
4. **Reproducibility rate.** Always vs. intermittent (with observed
|
|
44
|
+
frequency). An intermittent bug invalidates run-the-repro-once as a
|
|
45
|
+
verification plan; the verifier needs to know to run it N times or
|
|
46
|
+
instrument instead.
|
|
47
|
+
5. **Occurrence evidence.** At least one link or attachment proving the bug
|
|
48
|
+
happened: error-tracker issue, log excerpt, stack trace, screenshot or
|
|
49
|
+
recording. Input evidence, distinct from the output evidence manifest.
|
|
50
|
+
|
|
51
|
+
**Terminal state:** the reproduction (or failing test) fails before the fix
|
|
52
|
+
and passes after — both runs captured under the evidence manifest. This is
|
|
53
|
+
what makes a Bug autonomously closable: done-ness is a mechanical check, not a
|
|
54
|
+
judgment.
|
|
55
|
+
|
|
56
|
+
## Story
|
|
57
|
+
|
|
58
|
+
The generic gates (three audiences, Gherkin, Out of Scope, source precedence)
|
|
59
|
+
were designed around Stories, so Stories are the best-covered type already.
|
|
60
|
+
The additional expectations:
|
|
61
|
+
|
|
62
|
+
- UI-touching stories SHOULD name the non-happy-path states — error, empty,
|
|
63
|
+
loading — in the AC. These are the states product-walkthroughs flag as
|
|
64
|
+
missing after the fact; naming them up front converts a review finding into
|
|
65
|
+
a requirement.
|
|
66
|
+
- Keep stories INVEST-small: a story too large to hold in one session is the
|
|
67
|
+
leading cause of mid-flight questions. Prefer decomposition over heroics.
|
|
68
|
+
|
|
69
|
+
**Terminal state:** every AC scenario exercised against the running product.
|
|
70
|
+
|
|
71
|
+
## Task
|
|
72
|
+
|
|
73
|
+
A Task is "do this specific thing" — its risk is a fuzzy finish line, not a
|
|
74
|
+
fuzzy user. It must carry an observable done-state and the command or check
|
|
75
|
+
that proves it ("`bun run verify:x` exits 0", "the workflow file validates and
|
|
76
|
+
the job appears in CI"). **Terminal state:** that check passes.
|
|
77
|
+
|
|
78
|
+
## Improvement — the measured delta
|
|
79
|
+
|
|
80
|
+
An Improvement without numbers has no verifiable terminal state by
|
|
81
|
+
construction: "make it faster" can never be autonomously closed. Required:
|
|
82
|
+
|
|
83
|
+
1. **Metric + measurement method** the agent can run (command, query,
|
|
84
|
+
dashboard export — something mechanical).
|
|
85
|
+
2. **Baseline** — the current measured value. A number, not an adjective.
|
|
86
|
+
3. **Target** — the numeric value or bound that defines done.
|
|
87
|
+
|
|
88
|
+
If no baseline exists yet, measuring it is the first task — file it as such.
|
|
89
|
+
**Terminal state:** the measurement method reports a value meeting the target.
|
|
90
|
+
|
|
91
|
+
## Spike — the investigation contract
|
|
92
|
+
|
|
93
|
+
A Spike's output is knowledge, so its readiness is about making knowledge
|
|
94
|
+
checkable:
|
|
95
|
+
|
|
96
|
+
1. **The question** being answered.
|
|
97
|
+
2. **The decision it enables**, and the options being weighed — so the answer
|
|
98
|
+
is written to be decidable against, not merely interesting.
|
|
99
|
+
3. **A timebox** — spikes without one become open-ended research.
|
|
100
|
+
4. **Deliverable format and location** — decision doc, prototype, findings
|
|
101
|
+
page, and *where it will live* (wiki page, decision record, attachment).
|
|
102
|
+
|
|
103
|
+
Gherkin AC is intentionally N/A for Spikes (S4 already exempts them).
|
|
104
|
+
**Terminal state:** a deliverable exists at the named location **and answers the
|
|
105
|
+
question** — it records the findings, the recommended decision, and the
|
|
106
|
+
options weighed. An empty or placeholder document at the right path is not
|
|
107
|
+
terminal.
|
|
108
|
+
|
|
109
|
+
## Sub-task
|
|
110
|
+
|
|
111
|
+
Always has a parent (no stranded-leaf exception), and otherwise carries the
|
|
112
|
+
bar of its own nature — a bug-shaped sub-task carries the bug anatomy.
|
|
113
|
+
|
|
114
|
+
## Epic and containers
|
|
115
|
+
|
|
116
|
+
Containers are never build-ready (`leaf-only-lifecycle`); their readiness
|
|
117
|
+
question is decomposition completeness — does every PRD requirement trace to a
|
|
118
|
+
leaf (`prd-ticket-coverage`) — not buildability.
|
|
119
|
+
|
|
120
|
+
## The stateless-pickup dry-run (gate S18)
|
|
121
|
+
|
|
122
|
+
Structure gates are proxies; this gate checks the property directly. The
|
|
123
|
+
validator simulates a stateless read of the item plus its resolvable links —
|
|
124
|
+
session knowledge deliberately excluded, because the next claimant will not
|
|
125
|
+
have it — and lists every question it would need answered before starting,
|
|
126
|
+
before choosing between materially different implementations, or before
|
|
127
|
+
declaring done. Zero questions = PASS. Each question found is emitted verbatim
|
|
128
|
+
as its own remediation line; those lines are exactly the clarifying comments
|
|
129
|
+
the caller posts to the source. This is the enforcement of the intake
|
|
130
|
+
contract's core promise, and of TASC AC8.6: *ready means zero-clarification
|
|
131
|
+
executable.*
|
|
132
|
+
|
|
133
|
+
## Relationship to the lifecycle
|
|
134
|
+
|
|
135
|
+
- **Write time** — `*-write-*` runs the applicable pre-write gates; a spec
|
|
136
|
+
failing the type-keyed bar is repaired or rejected before it exists. S18 is
|
|
137
|
+
not a write-time gate — most specs are not yet build-ready when written.
|
|
138
|
+
- **Ready time** — the bar is what the build-ready role asserts, and S18 runs
|
|
139
|
+
here, on build-ready leaves only, making the assertion checked rather than
|
|
140
|
+
hoped.
|
|
141
|
+
- **Claim time** — `ticket-triage` remains the analytical deep-check against
|
|
142
|
+
the codebase (edge cases, duplicate work, rework classification). With this
|
|
143
|
+
bar enforced upstream, triage's ambiguity phase should find nothing a
|
|
144
|
+
validator could have caught — its findings become a monitoring signal for
|
|
145
|
+
gaps in this rule.
|
|
@@ -224,6 +224,30 @@ The register feeds three consumers: the `## Source Requirement` section on
|
|
|
224
224
|
every created ticket (Phases 3–5), the dry-run report (above), and the
|
|
225
225
|
requirement tokens in the PRD back-link (Phase 7).
|
|
226
226
|
|
|
227
|
+
### Phase 1.45: Requirement Quality Gates (prd-definition-of-ready)
|
|
228
|
+
|
|
229
|
+
Validate every Phase 1.4 register entry against the `prd-definition-of-ready` rule before
|
|
230
|
+
planning proceeds. Per atom:
|
|
231
|
+
|
|
232
|
+
- **Singular** — one behavior per entry. An entry welding multiple shall/when clauses together is
|
|
233
|
+
split in the register (R4 → R4a/R4b) when the split is mechanical and meaning-preserving; when
|
|
234
|
+
the split would change meaning, it is a product question, not a repair.
|
|
235
|
+
- **Unambiguous** — FAIL on the vagueness lexicon ("as appropriate", "user-friendly", "fast",
|
|
236
|
+
"handle gracefully", "etc.", "and/or", unbounded "optimize"/"support"): phrasing no test can
|
|
237
|
+
check. The full lexicon lives in the rule's reference body.
|
|
238
|
+
- **Verifiable** — a fit criterion (the measurable test of satisfaction) is present or
|
|
239
|
+
mechanically derivable from the text; a requirement no test could check is not admitted as a
|
|
240
|
+
requirement.
|
|
241
|
+
- **Pattern shape (SHOULD)** — an EARS pattern (ubiquitous / When / While / If-then / Where) or an
|
|
242
|
+
equivalent single-behavior sentence; conforming shapes decompose into Gherkin mechanically.
|
|
243
|
+
|
|
244
|
+
Failures here are **requirement-level product clarifications**, not internal errors: report each in
|
|
245
|
+
the dry-run report as a `product-clarity` item quoting the atom verbatim, naming the defect, and
|
|
246
|
+
offering 1–3 candidate rewrites (an EARS-shaped rewrite is the default recommendation). In intake
|
|
247
|
+
flows these route to the PRD's `blocked` role with comments, exactly like ticket-validator
|
|
248
|
+
failures. Mechanical splits and derived fit criteria are repaired in-register and recorded in the
|
|
249
|
+
report — never silently.
|
|
250
|
+
|
|
227
251
|
### Phase 1.5: Extract Source Artifacts
|
|
228
252
|
|
|
229
253
|
PRDs typically reference external design, UX, and data artifacts (Figma files, Lovable prototypes, Loom walkthroughs, screenshots, example payloads, peer Confluence pages). These MUST be preserved onto the resulting tickets — otherwise developers picking up a ticket lose the source of truth. This is the failure mode this step exists to prevent.
|
|
@@ -99,6 +99,8 @@ outcome: created | reused
|
|
|
99
99
|
|
|
100
100
|
## Rules
|
|
101
101
|
|
|
102
|
+
- The PRD body's requirements MUST conform to `prd-definition-of-ready`: identified atoms (`R1`, `R2`, …), one behavior each in an EARS-pattern shape, each with a measurable fit criterion, plus the non-functional checklist. This governs factory-authored bodies; human-authored PRDs are validated at intake instead (`*-to-tracker` Phase 1.45).
|
|
103
|
+
|
|
102
104
|
- All access via `lisa-atlassian-access`; never call Atlassian directly.
|
|
103
105
|
- State is the parent page, not a label — never attempt Confluence label writes (they 401 on scoped
|
|
104
106
|
tokens; see `config-resolution`).
|
|
@@ -211,6 +211,30 @@ The register feeds three consumers: the `## Source Requirement` section on
|
|
|
211
211
|
every created ticket (Phases 3–5), the dry-run report (above), and the
|
|
212
212
|
requirement tokens in the PRD back-link (Phase 7).
|
|
213
213
|
|
|
214
|
+
### Phase 1.45: Requirement Quality Gates (prd-definition-of-ready)
|
|
215
|
+
|
|
216
|
+
Validate every Phase 1.4 register entry against the `prd-definition-of-ready` rule before
|
|
217
|
+
planning proceeds. Per atom:
|
|
218
|
+
|
|
219
|
+
- **Singular** — one behavior per entry. An entry welding multiple shall/when clauses together is
|
|
220
|
+
split in the register (R4 → R4a/R4b) when the split is mechanical and meaning-preserving; when
|
|
221
|
+
the split would change meaning, it is a product question, not a repair.
|
|
222
|
+
- **Unambiguous** — FAIL on the vagueness lexicon ("as appropriate", "user-friendly", "fast",
|
|
223
|
+
"handle gracefully", "etc.", "and/or", unbounded "optimize"/"support"): phrasing no test can
|
|
224
|
+
check. The full lexicon lives in the rule's reference body.
|
|
225
|
+
- **Verifiable** — a fit criterion (the measurable test of satisfaction) is present or
|
|
226
|
+
mechanically derivable from the text; a requirement no test could check is not admitted as a
|
|
227
|
+
requirement.
|
|
228
|
+
- **Pattern shape (SHOULD)** — an EARS pattern (ubiquitous / When / While / If-then / Where) or an
|
|
229
|
+
equivalent single-behavior sentence; conforming shapes decompose into Gherkin mechanically.
|
|
230
|
+
|
|
231
|
+
Failures here are **requirement-level product clarifications**, not internal errors: report each in
|
|
232
|
+
the dry-run report as a `product-clarity` item quoting the atom verbatim, naming the defect, and
|
|
233
|
+
offering 1–3 candidate rewrites (an EARS-shaped rewrite is the default recommendation). In intake
|
|
234
|
+
flows these route to the PRD's `blocked` role with comments, exactly like ticket-validator
|
|
235
|
+
failures. Mechanical splits and derived fit criteria are repaired in-register and recorded in the
|
|
236
|
+
report — never silently.
|
|
237
|
+
|
|
214
238
|
### Phase 1.5: Extract Source Artifacts
|
|
215
239
|
|
|
216
240
|
PRDs typically reference external design, UX, and data artifacts (Figma files, Lovable prototypes, Loom walkthroughs, screenshots, example payloads, peer Notion / Confluence / Linear pages). These MUST be preserved onto the resulting tickets — otherwise developers picking up a ticket lose the source of truth. This is the failure mode this step exists to prevent.
|
|
@@ -76,6 +76,8 @@ Gates are grouped into **Specification** (spec-only checks, no GitHub lookups) a
|
|
|
76
76
|
|
|
77
77
|
Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Categories are the same fixed set used by `lisa-jira-validate-ticket` so downstream PRD-intake comment-formatting policy is shared across vendors.
|
|
78
78
|
|
|
79
|
+
Per-type content requirements are defined once in the vendor-neutral `work-item-definition-of-ready` rule (eager + reference); gates S4–S6 and S17 enforce them, and S18 enforces the stateless-pickup property directly.
|
|
80
|
+
|
|
79
81
|
| Gate | Category | Product-relevant |
|
|
80
82
|
|------|----------|------------------|
|
|
81
83
|
| S1 Required core fields | `structural` | false |
|
|
@@ -94,6 +96,8 @@ Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Ca
|
|
|
94
96
|
| S14 Evidence manifest binding (leaf work units) | `acceptance-criteria` | true |
|
|
95
97
|
| S15 Leaf-only build-ready | `structural` | false |
|
|
96
98
|
| S16 Source Requirement traceability | `product-clarity` | true |
|
|
99
|
+
| S17 Improvement measurability | `acceptance-criteria` | true |
|
|
100
|
+
| S18 Stateless-pickup dry-run | `product-clarity` | true |
|
|
97
101
|
| F1 Issue type label exists in repo | `structural` | false |
|
|
98
102
|
| F2 Parent sub-issue exists and is the right type | `structural` | false |
|
|
99
103
|
| F3 Linked issues exist | `structural` | false |
|
|
@@ -135,18 +139,26 @@ The `## Acceptance Criteria` section must contain at least one `Scenario:` block
|
|
|
135
139
|
|
|
136
140
|
#### S5 — Bug-specific content
|
|
137
141
|
|
|
138
|
-
When `issue_type = Bug`, body must additionally include:
|
|
142
|
+
When `issue_type = Bug`, body must additionally include the full bug anatomy from the `work-item-definition-of-ready` rule:
|
|
143
|
+
|
|
144
|
+
- **Agent-executable reproduction** — numbered steps a stateless agent can run mechanically: exact entry point, named account/role (consistent with Sign-in Required when authenticated), concrete data state, exact actions. Human-followable-only prose ("click around until it breaks") FAILs. A linked failing test satisfies this outright and is the preferred form.
|
|
145
|
+
- **Expected vs. actual behavior**, naming or linking the *source* of "expected" (spec, PRD requirement, prior release behavior) — a fix target is a fact, not an opinion.
|
|
146
|
+
- **Environment + version** — where reproduced and the build/commit observed; last-known-good when known (`unknown` must be stated, not omitted).
|
|
147
|
+
- **Reproducibility rate** — always, or intermittent with observed frequency; intermittent invalidates run-once verification.
|
|
148
|
+
- **Occurrence evidence** — at least one link/attachment: error-tracker issue, log excerpt, stack trace, screenshot/recording.
|
|
139
149
|
|
|
140
|
-
-
|
|
141
|
-
- Expected vs. actual behavior
|
|
142
|
-
- Environment where reproduced
|
|
150
|
+
A Bug's terminal state is its reproduction: the same steps (or test) fail before the fix and pass after — capture both as evidence: under the S14 manifest when `runtime_behavior_change = true`, or attached directly to the item for non-runtime Bugs (doc/config fixes), where S14 is N/A.
|
|
143
151
|
|
|
144
152
|
#### S6 — Spike-specific content
|
|
145
153
|
|
|
146
154
|
When `issue_type = Spike`, body must include:
|
|
147
155
|
|
|
148
|
-
- The question being answered
|
|
149
|
-
-
|
|
156
|
+
- The **question** being answered
|
|
157
|
+
- The **decision** the answer enables, and the options being weighed
|
|
158
|
+
- A **timebox**
|
|
159
|
+
- **Deliverable format and location** — decision doc / prototype / findings page, and where it will live, so the terminal state — a deliverable at that location that actually answers the question, with findings, decision and options — is checkable
|
|
160
|
+
|
|
161
|
+
Gherkin AC is intentionally N/A for Spikes (S4).
|
|
150
162
|
|
|
151
163
|
#### S7 — Parent sub-issue declared
|
|
152
164
|
|
|
@@ -190,6 +202,8 @@ Accept either placement:
|
|
|
190
202
|
|
|
191
203
|
Detect by scanning for the phrase `Source Precedence` (case-insensitive) AND verifying the four axes (business rules, visual, flow, data) are each named.
|
|
192
204
|
|
|
205
|
+
If the spec doesn't set `artifacts_attached`, infer it the same way S9 infers sign-in: scan the body for design/mock/prototype/data-artifact references (design-tool links, "mock", "prototype", spreadsheet or API artifacts). If such artifacts are referenced and no source-precedence guidance exists: FAIL.
|
|
206
|
+
|
|
193
207
|
#### S13 — Relationship Search documented
|
|
194
208
|
|
|
195
209
|
The issue must EITHER have at least one entry in `links`, OR the body must contain a `## Relationship Search` block listing the git history queries and `gh issue list` queries that were run with their outcomes. ("Searched git history for `<keywords>` and `gh issue list` for label `component:X`; no related work found.")
|
|
@@ -269,6 +283,22 @@ R-id with no quote: FAIL with remediation
|
|
|
269
283
|
`product_relevant: true` — a issue whose requirement cannot be traced is
|
|
270
284
|
a product-clarity problem: nobody can tell why the work exists.
|
|
271
285
|
|
|
286
|
+
#### S17 — Improvement measurability
|
|
287
|
+
|
|
288
|
+
When `issue_type = Improvement`, the body must define the improvement as a measured delta per `work-item-definition-of-ready`:
|
|
289
|
+
|
|
290
|
+
- **Metric + measurement method** the agent can run (command, query, dashboard export)
|
|
291
|
+
- **Baseline** — the current measured value (a number, not an adjective)
|
|
292
|
+
- **Target** — the numeric value or bound that defines done
|
|
293
|
+
|
|
294
|
+
Without a baseline and a target an Improvement has no verifiable terminal state and can never be autonomously closed. FAIL names the missing pieces; when no baseline exists yet, the remediation is to file measuring it as the first step. `N/A` for every other type.
|
|
295
|
+
|
|
296
|
+
#### S18 — Stateless-pickup dry-run
|
|
297
|
+
|
|
298
|
+
The autonomy gate, run last, on every build-ready leaf (use the S15 classification; `N/A` for containers and non-build-ready items). Simulate a stateless agent reading only this item and the links it can resolve — session knowledge about the codebase does not count, because the next claimant will not have it. List every question that agent would have to ask a human before starting work, before choosing between materially different implementations, or before declaring the work done.
|
|
299
|
+
|
|
300
|
+
Zero questions → PASS. Any question → FAIL, with each question listed verbatim as its own remediation line — these are exactly the clarifying comments the caller posts to the source. The structure gates are proxies; this gate checks the readiness property itself: `ready` means a stateless agent can drive this item to its terminal state with zero human clarification (see `work-item-definition-of-ready`).
|
|
301
|
+
|
|
272
302
|
### Feasibility Gates (require GitHub lookups; skip in `--spec-only`)
|
|
273
303
|
|
|
274
304
|
#### F1 — Issue type label exists in repo
|
|
@@ -423,6 +453,8 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
|
|
|
423
453
|
- [PASS|FAIL|N/A] S14 Evidence manifest binding — <one-line reason>
|
|
424
454
|
- [PASS|FAIL|N/A] S15 Leaf-only build-ready — <one-line reason>
|
|
425
455
|
- [PASS|FAIL|N/A] S16 Source Requirement traceability — <one-line reason>
|
|
456
|
+
- [PASS|FAIL|N/A] S17 Improvement measurability — <one-line reason>
|
|
457
|
+
- [PASS|FAIL|N/A] S18 Stateless-pickup dry-run — <one-line reason>
|
|
426
458
|
|
|
427
459
|
### Feasibility Gates (omit this section when --spec-only)
|
|
428
460
|
- [PASS|FAIL|N/A] F1 Issue type label exists in repo — <one-line reason>
|
|
@@ -449,7 +481,7 @@ The verdict is `PASS` if every applicable gate is `PASS`. Any `FAIL` makes the v
|
|
|
449
481
|
|
|
450
482
|
Same shape and meaning as `lisa-jira-validate-ticket` so downstream PRD-intake skills (Notion, Confluence, Linear, GitHub) can format comments uniformly:
|
|
451
483
|
|
|
452
|
-
- **gate**: the gate ID (`S1`–`
|
|
484
|
+
- **gate**: the gate ID (`S1`–`S18`, `F1`–`F5`).
|
|
453
485
|
- **category**: the gate's fixed category from the table.
|
|
454
486
|
- **product_relevant**: matches the gate's table entry. `false` means the failure is an internal data-quality problem the caller should fix without bothering product.
|
|
455
487
|
- **what**: plain-language, product-readable.
|
|
@@ -146,6 +146,8 @@ outcome: created | reused
|
|
|
146
146
|
|
|
147
147
|
## Rules
|
|
148
148
|
|
|
149
|
+
- The PRD body's requirements MUST conform to `prd-definition-of-ready`: identified atoms (`R1`, `R2`, …), one behavior each in an EARS-pattern shape, each with a measurable fit criterion, plus the non-functional checklist. This governs factory-authored bodies; human-authored PRDs are validated at intake instead (`*-to-tracker` Phase 1.45).
|
|
150
|
+
|
|
149
151
|
- Exactly one PRD lifecycle label at all times (leaf-only does not apply — PRDs are not build leaves).
|
|
150
152
|
- Match dedupe by marker, never by title.
|
|
151
153
|
- Preserve an existing canonical `## Lisa Usage` section on update; never append a second usage
|
|
@@ -73,6 +73,8 @@ Gates are grouped into **Specification** (spec-only checks, no JIRA lookups) and
|
|
|
73
73
|
|
|
74
74
|
Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Categories drive how downstream callers (notably `lisa-notion-prd-intake`) translate failures into product-facing comments; `product_relevant=false` failures indicate internal data-quality problems (broken parent links, missing core fields) that the agent should fix itself rather than ask product to clarify.
|
|
75
75
|
|
|
76
|
+
Per-type content requirements are defined once in the vendor-neutral `work-item-definition-of-ready` rule (eager + reference); gates S4–S6 and S17 enforce them, and S18 enforces the stateless-pickup property directly.
|
|
77
|
+
|
|
76
78
|
| Gate | Category | Product-relevant |
|
|
77
79
|
|------|----------|------------------|
|
|
78
80
|
| S1 Required core fields | `structural` | false |
|
|
@@ -91,6 +93,8 @@ Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Ca
|
|
|
91
93
|
| S14 Evidence manifest binding (leaf work units) | `acceptance-criteria` | true |
|
|
92
94
|
| S15 Leaf-only build-ready | `structural` | false |
|
|
93
95
|
| S16 Source Requirement traceability | `product-clarity` | true |
|
|
96
|
+
| S17 Improvement measurability | `acceptance-criteria` | true |
|
|
97
|
+
| S18 Stateless-pickup dry-run | `product-clarity` | true |
|
|
94
98
|
| F1 Issue type valid in project | `structural` | false |
|
|
95
99
|
| F2 Epic parent exists and is an Epic | `structural` | false |
|
|
96
100
|
| F3 Linked tickets exist | `structural` | false |
|
|
@@ -138,16 +142,26 @@ The `Acceptance Criteria` section must contain at least one criterion in `Given
|
|
|
138
142
|
|
|
139
143
|
#### S5 — Bug-specific content
|
|
140
144
|
|
|
141
|
-
When `issue_type = Bug`, description must additionally include:
|
|
142
|
-
|
|
143
|
-
-
|
|
144
|
-
-
|
|
145
|
+
When `issue_type = Bug`, description must additionally include the full bug anatomy from the `work-item-definition-of-ready` rule:
|
|
146
|
+
|
|
147
|
+
- **Agent-executable reproduction** — numbered steps a stateless agent can run mechanically: exact entry point, named account/role (consistent with Sign-in Required when authenticated), concrete data state, exact actions. Human-followable-only prose ("click around until it breaks") FAILs. A linked failing test satisfies this outright and is the preferred form.
|
|
148
|
+
- **Expected vs. actual behavior**, naming or linking the *source* of "expected" (spec, PRD requirement, prior release behavior) — a fix target is a fact, not an opinion.
|
|
149
|
+
- **Environment + version** — where reproduced and the build/commit observed; last-known-good when known (`unknown` must be stated, not omitted).
|
|
150
|
+
- **Reproducibility rate** — always, or intermittent with observed frequency; intermittent invalidates run-once verification.
|
|
151
|
+
- **Occurrence evidence** — at least one link/attachment: error-tracker issue, log excerpt, stack trace, screenshot/recording.
|
|
152
|
+
|
|
153
|
+
A Bug's terminal state is its reproduction: the same steps (or test) fail before the fix and pass after — capture both as evidence: under the S14 manifest when `runtime_behavior_change = true`, or attached directly to the item for non-runtime Bugs (doc/config fixes), where S14 is N/A.
|
|
145
154
|
|
|
146
155
|
#### S6 — Spike-specific content
|
|
147
156
|
|
|
148
157
|
When `issue_type = Spike`, description must include:
|
|
149
|
-
|
|
150
|
-
-
|
|
158
|
+
|
|
159
|
+
- The **question** being answered
|
|
160
|
+
- The **decision** the answer enables, and the options being weighed
|
|
161
|
+
- A **timebox**
|
|
162
|
+
- **Deliverable format and location** — decision doc / prototype / findings page, and where it will live, so the terminal state — a deliverable at that location that actually answers the question, with findings, decision and options — is checkable
|
|
163
|
+
|
|
164
|
+
Gherkin AC is intentionally N/A for Spikes (S4).
|
|
151
165
|
|
|
152
166
|
#### S7 — Epic parent declared
|
|
153
167
|
|
|
@@ -191,6 +205,8 @@ Accept either placement — both are valid per `lisa-tracker-source-artifacts`:
|
|
|
191
205
|
|
|
192
206
|
Detect by scanning for the phrase `Source Precedence` (case-insensitive) anywhere in the description, AND verifying the four axes (business rules, visual, flow, data) are each named. Missing the phrase OR missing one or more axes: FAIL with a remediation that names the missing axes.
|
|
193
207
|
|
|
208
|
+
If the spec doesn't set `artifacts_attached`, infer it the same way S9 infers sign-in: scan the description for design/mock/prototype/data-artifact references (design-tool links, "mock", "prototype", spreadsheet or API artifacts). If such artifacts are referenced and no source-precedence guidance exists: FAIL.
|
|
209
|
+
|
|
194
210
|
#### S13 — Relationship Search documented
|
|
195
211
|
|
|
196
212
|
The ticket must EITHER have at least one issue link in `links`, OR the description / a comment must contain a `## Relationship Search` block listing the git history queries and JQL queries that were run with their outcomes ("Searched git history for `<keywords>` and JQL for component=`X`; no related work found.").
|
|
@@ -269,6 +285,22 @@ R-id with no quote: FAIL with remediation
|
|
|
269
285
|
`product_relevant: true` — a ticket whose requirement cannot be traced is
|
|
270
286
|
a product-clarity problem: nobody can tell why the work exists.
|
|
271
287
|
|
|
288
|
+
#### S17 — Improvement measurability
|
|
289
|
+
|
|
290
|
+
When `issue_type = Improvement`, the description must define the improvement as a measured delta per `work-item-definition-of-ready`:
|
|
291
|
+
|
|
292
|
+
- **Metric + measurement method** the agent can run (command, query, dashboard export)
|
|
293
|
+
- **Baseline** — the current measured value (a number, not an adjective)
|
|
294
|
+
- **Target** — the numeric value or bound that defines done
|
|
295
|
+
|
|
296
|
+
Without a baseline and a target an Improvement has no verifiable terminal state and can never be autonomously closed. FAIL names the missing pieces; when no baseline exists yet, the remediation is to file measuring it as the first step. `N/A` for every other type.
|
|
297
|
+
|
|
298
|
+
#### S18 — Stateless-pickup dry-run
|
|
299
|
+
|
|
300
|
+
The autonomy gate, run last, on every build-ready leaf (use the S15 classification; `N/A` for containers and non-build-ready items). Simulate a stateless agent reading only this item and the links it can resolve — session knowledge about the codebase does not count, because the next claimant will not have it. List every question that agent would have to ask a human before starting work, before choosing between materially different implementations, or before declaring the work done.
|
|
301
|
+
|
|
302
|
+
Zero questions → PASS. Any question → FAIL, with each question listed verbatim as its own remediation line — these are exactly the clarifying comments the caller posts to the source. The structure gates are proxies; this gate checks the readiness property itself: `ready` means a stateless agent can drive this item to its terminal state with zero human clarification (see `work-item-definition-of-ready`).
|
|
303
|
+
|
|
272
304
|
### Feasibility Gates (require JIRA lookups; skip in dry-run if requested)
|
|
273
305
|
|
|
274
306
|
#### F1 — Issue type valid in project
|
|
@@ -354,6 +386,8 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
|
|
|
354
386
|
- [PASS|FAIL|N/A] S14 Evidence manifest binding — <one-line reason>
|
|
355
387
|
- [PASS|FAIL|N/A] S15 Leaf-only build-ready — <one-line reason>
|
|
356
388
|
- [PASS|FAIL|N/A] S16 Source Requirement traceability — <one-line reason>
|
|
389
|
+
- [PASS|FAIL|N/A] S17 Improvement measurability — <one-line reason>
|
|
390
|
+
- [PASS|FAIL|N/A] S18 Stateless-pickup dry-run — <one-line reason>
|
|
357
391
|
|
|
358
392
|
### Feasibility Gates (omit this section when --spec-only)
|
|
359
393
|
- [PASS|FAIL|N/A] F1 Issue type valid in project — <one-line reason>
|
|
@@ -379,7 +413,7 @@ The verdict is `PASS` if and only if every applicable gate is `PASS`. Any `FAIL`
|
|
|
379
413
|
|
|
380
414
|
### Failure-detail fields
|
|
381
415
|
|
|
382
|
-
- **gate**: the gate ID (`S1`–`
|
|
416
|
+
- **gate**: the gate ID (`S1`–`S18`, `F1`–`F5`).
|
|
383
417
|
- **category**: the gate's fixed category from the table above. Callers use this to label or filter comments — `product-clarity`, `acceptance-criteria`, `design-ux`, `scope`, `dependency`, `data`, `technical`, or `structural`.
|
|
384
418
|
- **product_relevant**: matches the gate's table entry. `false` means the failure is an internal data-quality problem (e.g., the agent built a malformed spec, an issue type is invalid in the project) and the caller should fix it without bothering the product team. `true` means the PRD needs product input to resolve.
|
|
385
419
|
- **what**: plain-language description of the issue. No gate IDs, no JIRA jargon, no engineering shorthand. A product owner reading this on a Notion comment should understand what is unclear and why.
|
|
@@ -208,6 +208,30 @@ The register feeds three consumers: the `## Source Requirement` section on
|
|
|
208
208
|
every created ticket (Phases 3–5), the dry-run report (above), and the
|
|
209
209
|
requirement tokens in the PRD back-link (Phase 7).
|
|
210
210
|
|
|
211
|
+
### Phase 1.45: Requirement Quality Gates (prd-definition-of-ready)
|
|
212
|
+
|
|
213
|
+
Validate every Phase 1.4 register entry against the `prd-definition-of-ready` rule before
|
|
214
|
+
planning proceeds. Per atom:
|
|
215
|
+
|
|
216
|
+
- **Singular** — one behavior per entry. An entry welding multiple shall/when clauses together is
|
|
217
|
+
split in the register (R4 → R4a/R4b) when the split is mechanical and meaning-preserving; when
|
|
218
|
+
the split would change meaning, it is a product question, not a repair.
|
|
219
|
+
- **Unambiguous** — FAIL on the vagueness lexicon ("as appropriate", "user-friendly", "fast",
|
|
220
|
+
"handle gracefully", "etc.", "and/or", unbounded "optimize"/"support"): phrasing no test can
|
|
221
|
+
check. The full lexicon lives in the rule's reference body.
|
|
222
|
+
- **Verifiable** — a fit criterion (the measurable test of satisfaction) is present or
|
|
223
|
+
mechanically derivable from the text; a requirement no test could check is not admitted as a
|
|
224
|
+
requirement.
|
|
225
|
+
- **Pattern shape (SHOULD)** — an EARS pattern (ubiquitous / When / While / If-then / Where) or an
|
|
226
|
+
equivalent single-behavior sentence; conforming shapes decompose into Gherkin mechanically.
|
|
227
|
+
|
|
228
|
+
Failures here are **requirement-level product clarifications**, not internal errors: report each in
|
|
229
|
+
the dry-run report as a `product-clarity` item quoting the atom verbatim, naming the defect, and
|
|
230
|
+
offering 1–3 candidate rewrites (an EARS-shaped rewrite is the default recommendation). In intake
|
|
231
|
+
flows these route to the PRD's `blocked` role with comments, exactly like ticket-validator
|
|
232
|
+
failures. Mechanical splits and derived fit criteria are repaired in-register and recorded in the
|
|
233
|
+
report — never silently.
|
|
234
|
+
|
|
211
235
|
### Phase 1.5: Extract Source Artifacts
|
|
212
236
|
|
|
213
237
|
PRDs typically reference external design, UX, and data artifacts (Figma files, Lovable prototypes, Loom walkthroughs, screenshots, example payloads, peer Linear or Confluence pages). These MUST be preserved onto the resulting tickets — otherwise developers picking up a ticket lose the source of truth. This is the failure mode this step exists to prevent.
|
|
@@ -74,6 +74,8 @@ Gates are grouped into **Specification** (spec-only checks, no Linear lookups) a
|
|
|
74
74
|
|
|
75
75
|
Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Categories drive how downstream callers (notably `lisa-linear-prd-intake`) translate failures into product-facing comments; `product_relevant=false` failures indicate internal data-quality problems the agent should fix itself rather than ask product to clarify.
|
|
76
76
|
|
|
77
|
+
Per-type content requirements are defined once in the vendor-neutral `work-item-definition-of-ready` rule (eager + reference); gates S4–S6 and S17 enforce them, and S18 enforces the stateless-pickup property directly.
|
|
78
|
+
|
|
77
79
|
| Gate | Category | Product-relevant |
|
|
78
80
|
|------|----------|------------------|
|
|
79
81
|
| S1 Required core fields | `structural` | false |
|
|
@@ -92,6 +94,8 @@ Each gate is tagged with a fixed `category` and a `product_relevant` boolean. Ca
|
|
|
92
94
|
| S14 Evidence manifest binding (leaf work units) | `acceptance-criteria` | true |
|
|
93
95
|
| S15 Leaf-only build-ready | `structural` | false |
|
|
94
96
|
| S16 Source Requirement traceability | `product-clarity` | true |
|
|
97
|
+
| S17 Improvement measurability | `acceptance-criteria` | true |
|
|
98
|
+
| S18 Stateless-pickup dry-run | `product-clarity` | true |
|
|
95
99
|
| F1 Issue type valid in team | `structural` | false |
|
|
96
100
|
| F2 Project parent exists and is in same team | `structural` | false |
|
|
97
101
|
| F3 Linked items exist | `structural` | false |
|
|
@@ -139,16 +143,26 @@ The `Acceptance Criteria` section must contain at least one criterion in `Given
|
|
|
139
143
|
|
|
140
144
|
#### S5 — Bug-specific content
|
|
141
145
|
|
|
142
|
-
When `issue_type = Bug`, description must additionally include:
|
|
143
|
-
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
+
When `issue_type = Bug`, description must additionally include the full bug anatomy from the `work-item-definition-of-ready` rule:
|
|
147
|
+
|
|
148
|
+
- **Agent-executable reproduction** — numbered steps a stateless agent can run mechanically: exact entry point, named account/role (consistent with Sign-in Required when authenticated), concrete data state, exact actions. Human-followable-only prose ("click around until it breaks") FAILs. A linked failing test satisfies this outright and is the preferred form.
|
|
149
|
+
- **Expected vs. actual behavior**, naming or linking the *source* of "expected" (spec, PRD requirement, prior release behavior) — a fix target is a fact, not an opinion.
|
|
150
|
+
- **Environment + version** — where reproduced and the build/commit observed; last-known-good when known (`unknown` must be stated, not omitted).
|
|
151
|
+
- **Reproducibility rate** — always, or intermittent with observed frequency; intermittent invalidates run-once verification.
|
|
152
|
+
- **Occurrence evidence** — at least one link/attachment: error-tracker issue, log excerpt, stack trace, screenshot/recording.
|
|
153
|
+
|
|
154
|
+
A Bug's terminal state is its reproduction: the same steps (or test) fail before the fix and pass after — capture both as evidence: under the S14 manifest when `runtime_behavior_change = true`, or attached directly to the item for non-runtime Bugs (doc/config fixes), where S14 is N/A.
|
|
146
155
|
|
|
147
156
|
#### S6 — Spike-specific content
|
|
148
157
|
|
|
149
158
|
When `issue_type = Spike`, description must include:
|
|
150
|
-
|
|
151
|
-
-
|
|
159
|
+
|
|
160
|
+
- The **question** being answered
|
|
161
|
+
- The **decision** the answer enables, and the options being weighed
|
|
162
|
+
- A **timebox**
|
|
163
|
+
- **Deliverable format and location** — decision doc / prototype / findings page, and where it will live, so the terminal state — a deliverable at that location that actually answers the question, with findings, decision and options — is checkable
|
|
164
|
+
|
|
165
|
+
Gherkin AC is intentionally N/A for Spikes (S4).
|
|
152
166
|
|
|
153
167
|
#### S7 — Project parent declared
|
|
154
168
|
|
|
@@ -194,6 +208,8 @@ Accept either placement:
|
|
|
194
208
|
|
|
195
209
|
Detect by scanning for the phrase `Source Precedence` (case-insensitive) anywhere in the description AND verifying the four axes are each named. Missing the phrase OR any axis: FAIL with remediation naming the missing axes.
|
|
196
210
|
|
|
211
|
+
If the spec doesn't set `artifacts_attached`, infer it the same way S9 infers sign-in: scan the description for design/mock/prototype/data-artifact references (design-tool links, "mock", "prototype", spreadsheet or API artifacts). If such artifacts are referenced and no source-precedence guidance exists: FAIL.
|
|
212
|
+
|
|
197
213
|
#### S13 — Relationship Search documented
|
|
198
214
|
|
|
199
215
|
The item must EITHER have at least one entry in `relations`, OR the description / a comment must contain a `## Relationship Search` block listing the git history queries and Linear MCP queries that were run with their outcomes.
|
|
@@ -271,6 +287,22 @@ R-id with no quote: FAIL with remediation
|
|
|
271
287
|
`product_relevant: true` — a issue whose requirement cannot be traced is
|
|
272
288
|
a product-clarity problem: nobody can tell why the work exists.
|
|
273
289
|
|
|
290
|
+
#### S17 — Improvement measurability
|
|
291
|
+
|
|
292
|
+
When `issue_type = Improvement`, the description must define the improvement as a measured delta per `work-item-definition-of-ready`:
|
|
293
|
+
|
|
294
|
+
- **Metric + measurement method** the agent can run (command, query, dashboard export)
|
|
295
|
+
- **Baseline** — the current measured value (a number, not an adjective)
|
|
296
|
+
- **Target** — the numeric value or bound that defines done
|
|
297
|
+
|
|
298
|
+
Without a baseline and a target an Improvement has no verifiable terminal state and can never be autonomously closed. FAIL names the missing pieces; when no baseline exists yet, the remediation is to file measuring it as the first step. `N/A` for every other type.
|
|
299
|
+
|
|
300
|
+
#### S18 — Stateless-pickup dry-run
|
|
301
|
+
|
|
302
|
+
The autonomy gate, run last, on every build-ready leaf (use the S15 classification; `N/A` for containers and non-build-ready items). Simulate a stateless agent reading only this item and the links it can resolve — session knowledge about the codebase does not count, because the next claimant will not have it. List every question that agent would have to ask a human before starting work, before choosing between materially different implementations, or before declaring the work done.
|
|
303
|
+
|
|
304
|
+
Zero questions → PASS. Any question → FAIL, with each question listed verbatim as its own remediation line — these are exactly the clarifying comments the caller posts to the source. The structure gates are proxies; this gate checks the readiness property itself: `ready` means a stateless agent can drive this item to its terminal state with zero human clarification (see `work-item-definition-of-ready`).
|
|
305
|
+
|
|
274
306
|
### Feasibility Gates (require Linear lookups; skip in dry-run if requested)
|
|
275
307
|
|
|
276
308
|
#### F1 — Issue type valid in team
|
|
@@ -360,6 +392,8 @@ Output is a single fenced text block. Callers parse it; do not add free-form pro
|
|
|
360
392
|
- [PASS|FAIL|N/A] S14 Evidence manifest binding — <one-line reason>
|
|
361
393
|
- [PASS|FAIL|N/A] S15 Leaf-only build-ready — <one-line reason>
|
|
362
394
|
- [PASS|FAIL|N/A] S16 Source Requirement traceability — <one-line reason>
|
|
395
|
+
- [PASS|FAIL|N/A] S17 Improvement measurability — <one-line reason>
|
|
396
|
+
- [PASS|FAIL|N/A] S18 Stateless-pickup dry-run — <one-line reason>
|
|
363
397
|
|
|
364
398
|
### Feasibility Gates (omit when --spec-only)
|
|
365
399
|
- [PASS|FAIL|N/A] F1 Issue type valid in team — <one-line reason>
|