@fabersep/spec 0.0.0-stage → 0.2.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.
@@ -0,0 +1,54 @@
1
+ ---
2
+ id: feature.<feature_slug>.acceptance_criteria
3
+ type: acceptance_criteria
4
+ feature: <feature_slug>
5
+ status: draft # draft | in_review | verified | stale | deprecated
6
+ last_updated: YYYY-MM-DD
7
+ ---
8
+
9
+ # <Feature Name> — Acceptance Criteria (BDD)
10
+
11
+ > **Purpose:** Defines the testable behavioral contract for `<Feature Name>` using atomic **GIVEN / WHEN / THEN** scenarios. Serves as the shared verification truth for developers, reviewers, and AI coding agents.
12
+
13
+ ---
14
+
15
+ ## 1. Scenario Coverage & Traceability Matrix
16
+
17
+ | Scenario ID | Requirement | Group | Summary | Status |
18
+ | :--- | :--- | :--- | :--- | :--- |
19
+ | `AC-01` | `FR-01` | Happy Path | [Core successful behavior] | `[Verified / Pending / Failed]` |
20
+ | `AC-02` | `FR-01` | Edge Case | [Empty / boundary behavior] | `[Verified / Pending / Failed]` |
21
+ | `AC-03` | `FR-02` | Error Handling | [Invalid input rejection] | `[Verified / Pending / Failed]` |
22
+
23
+ ---
24
+
25
+ ## 2. BDD Authoring Rules
26
+
27
+ 1. **Behavior Over Implementation:** Describe observable user, CLI, API, or agent outcomes — never internal variable names, private functions, or class internals.
28
+ 2. **Atomic Scenarios:** Each scenario verifies **one** concrete outcome. Split multi-step workflows into separate scenarios.
29
+ 3. **Observable Assertions:** Replace vague assertions (*"works properly"*) with concrete results (*"exits with status 0 and outputs a valid JSON report containing..."*).
30
+
31
+ ---
32
+
33
+ ## 3. Detailed BDD Scenarios
34
+
35
+ ### Group A: Core Behavior (Happy Path)
36
+
37
+ #### Scenario AC-01: <Concise behavior title>
38
+ - **GIVEN:** [Initial state or precondition]
39
+ - **WHEN:** [Single user action, command, or trigger]
40
+ - **THEN:** [Exact observable outcome]
41
+
42
+ ### Group B: Boundary & Edge Cases
43
+
44
+ #### Scenario AC-02: <Concise edge-case title>
45
+ - **GIVEN:** [Boundary condition, e.g., empty project or missing optional config]
46
+ - **WHEN:** [Action]
47
+ - **THEN:** [Graceful, deterministic outcome]
48
+
49
+ ### Group C: Validation & Error Handling
50
+
51
+ #### Scenario AC-03: <Concise error-handling title>
52
+ - **GIVEN:** [Invalid input or unavailable prerequisite]
53
+ - **WHEN:** [Action]
54
+ - **THEN:** [Clear error message AND no partial/corrupt side effects]
@@ -0,0 +1,80 @@
1
+ ---
2
+ id: feature.<feature_slug>.prd
3
+ type: prd
4
+ feature: <feature_slug>
5
+ status: draft # draft | in_review | verified | stale | deprecated
6
+ last_updated: YYYY-MM-DD
7
+ ---
8
+
9
+ # <Feature Name> — Product Requirements Document (PRD)
10
+
11
+ > **Purpose:** Defines the intended behavior, user goals, functional requirements (`FR-XX`), boundaries, and edge cases for this feature (**WHAT** and **WHY**). Verification scenarios live in `acceptance_criteria.md`.
12
+
13
+ ---
14
+
15
+ ## 1. Capability Scope Matrix
16
+
17
+ | Capability | Target Release | Priority | Primary User / Caller | Status |
18
+ | :--- | :--- | :--- | :--- | :--- |
19
+ | **<Core Capability>** | `v0.1` | `P0 (Must Have)` | [Persona / Caller] | `[Implemented / In Progress / Planned]` |
20
+ | **<Secondary Capability>** | `v0.1` | `P1 (Should Have)` | [Persona / Caller] | `[Implemented / In Progress / Planned]` |
21
+
22
+ ---
23
+
24
+ ## 2. Problem Statement & Value
25
+
26
+ ### 2.1 Problem
27
+ Explain the specific user or developer friction this feature addresses.
28
+
29
+ ### 2.2 Expected Outcome
30
+ State the concrete improvement once this feature is in place.
31
+
32
+ ---
33
+
34
+ ## 3. Explicit Non-Goals
35
+
36
+ - **NG-01:** [What this feature deliberately does NOT include]
37
+ - **NG-02:** [Deferred capability or out-of-scope edge case]
38
+
39
+ ---
40
+
41
+ ## 4. Functional Requirements
42
+
43
+ Write clear, testable requirements in plain product language (avoid internal code identifiers).
44
+
45
+ ### FR-01: <Requirement Title>
46
+ - [Observable system behavior and rules]
47
+ - [Input/output expectations or constraints]
48
+
49
+ ### FR-02: <Requirement Title>
50
+ - [Observable system behavior and rules]
51
+
52
+ ---
53
+
54
+ ## 5. Primary User / Execution Flow
55
+
56
+ ```mermaid
57
+ flowchart TD
58
+ A["Trigger / Input"] --> B{"Valid?"}
59
+ B -->|No| C["Clear Error / Guidance"]
60
+ B -->|Yes| D["Core Processing"]
61
+ D --> E["Observable Output / State Change"]
62
+ ```
63
+
64
+ ---
65
+
66
+ ## 6. Edge Cases & Failure Modes
67
+
68
+ | Condition | Expected System Response |
69
+ | :--- | :--- |
70
+ | **Empty / Missing Input** | [Graceful output or explicit error message] |
71
+ | **Invalid Configuration / Arguments** | [Validation failure without corrupting state] |
72
+ | **Partial Failure / Interrupted Run** | [Safe fallback or clear diagnostic] |
73
+
74
+ ---
75
+
76
+ ## 7. Open Questions & Dependencies
77
+
78
+ | ID | Question / Dependency | Impact | Status |
79
+ | :--- | :--- | :--- | :--- |
80
+ | **OQ-01** | [Unresolved product or technical question] | [Scope / UX / Compatibility] | `Open` |
@@ -0,0 +1,114 @@
1
+ ---
2
+ id: project.master_prd
3
+ type: master_prd
4
+ status: draft # draft | in_review | verified | stale | deprecated
5
+ last_updated: YYYY-MM-DD
6
+ ---
7
+
8
+ # <Project Name> — Master Product Requirements Document (PRD)
9
+
10
+ > **Purpose:** Defines the overarching vision, target users, core capabilities, end-to-end workflows, scope boundaries, and success criteria for the product. This document explains **WHAT** the product does and **WHY** — low-level implementation details belong in `docs/architecture.md`.
11
+
12
+ ---
13
+
14
+ ## 1. Executive Summary & Vision
15
+
16
+ ### 1.1 What is <Project Name>?
17
+ Concise definition of the product, its archetype (e.g., CLI tool, library, MCP server, API service, web app, mobile app, agent plugin), target runtime/platforms, and the primary problem it solves.
18
+
19
+ ### 1.2 Core Value Proposition
20
+ - **For Primary Users (<Persona A>):** [Concrete outcome or workflow improvement]
21
+ - **For Secondary Users / Maintainers (<Persona B>):** [Operational, ecosystem, or team benefit]
22
+ - **Key Differentiator:** [What makes this approach materially better than common alternatives]
23
+
24
+ ---
25
+
26
+ ## 2. Problem Statement & Value Pillars
27
+
28
+ ### 2.1 The Core Problem
29
+ Describe the concrete friction, reliability gap, or operational bottleneck this product solves.
30
+
31
+ ### 2.2 Core Value Pillars
32
+ - **Pillar 1 (<Theme>):** [Foundational capability and why it matters]
33
+ - **Pillar 2 (<Theme>):** [Foundational capability and why it matters]
34
+ - **Pillar 3 (<Theme>):** [Foundational capability and why it matters]
35
+
36
+ ---
37
+
38
+ ## 3. Target Audience & Ecosystem
39
+
40
+ ```mermaid
41
+ flowchart LR
42
+ User["Primary User / Developer"] <--> System["<Project Name>"]
43
+ System <--> Ext["External Tools / Environments / Services"]
44
+ ```
45
+
46
+ | Persona / Role | Context / Environment | Primary Goal | Key Touchpoints |
47
+ | :--- | :--- | :--- | :--- |
48
+ | **<Primary Persona>** | [e.g., Developer using Claude Code / Antigravity] | [Desired outcome] | [CLI commands, MCP tools, UI screens, APIs] |
49
+ | **<Secondary Persona>** | [e.g., Maintainer / Contributor / Admin] | [Desired outcome] | [Config, schemas, docs, CI] |
50
+
51
+ ---
52
+
53
+ ## 4. Core User Journeys
54
+
55
+ ### Journey 1: Setup & First Value (Onboarding)
56
+ 1. **Install / Access:** How the user acquires or enables the product.
57
+ 2. **Initialize / Configure:** Minimal configuration required (or zero-config default).
58
+ 3. **First Value:** The first concrete, verifiable result the user gets.
59
+
60
+ ### Journey 2: Primary Daily Workflow (Core Loop)
61
+ 1. **Trigger:** What initiates the core action.
62
+ 2. **Execution & Feedback:** How the product processes input and communicates results.
63
+ 3. **Outcome:** What artifact, state change, or answer is produced.
64
+
65
+ ### Journey 3: Edge Cases, Failure Modes & Recovery
66
+ 1. **Invalid Input / Degraded Environment:** Missing config, unsupported input, offline state, or partial failure.
67
+ 2. **Safe Behavior:** Clear diagnostics, non-destructive handling, or graceful fallback.
68
+ 3. **Recovery:** How the user or system resumes cleanly.
69
+
70
+ *(Add Journey 4 for multi-role, monetization, or lifecycle flows only if applicable to this project.)*
71
+
72
+ ---
73
+
74
+ ## 5. Capability Overview
75
+
76
+ High-level map of the product's major capabilities. Detailed requirements live in `docs/features/<slug>/prd.md`.
77
+
78
+ | Capability | Status | Feature Spec | Summary |
79
+ | :--- | :--- | :--- | :--- |
80
+ | **<Capability 1>** | `[Implemented / In Progress / Planned]` | `docs/features/01-.../prd.md` | [One-line summary] |
81
+ | **<Capability 2>** | `[Implemented / In Progress / Planned]` | `docs/features/02-.../prd.md` | [One-line summary] |
82
+
83
+ ---
84
+
85
+ ## 6. Constraints & Operating Boundaries
86
+
87
+ - **Runtime / Platform Constraints:** [Supported OS, Node/Python/SDK versions, hardware or offline guarantees]
88
+ - **Privacy & Security Guarantees:** [Zero telemetry, local-only execution, permission boundaries, or auth model]
89
+ - **Packaging / Distribution:** [npm, PyPI, GitHub release, plugin format, Docker, app store]
90
+
91
+ ---
92
+
93
+ ## 7. Explicit Non-Goals (Scope Containment)
94
+
95
+ - **NG-01 (<Boundary>):** [What this product explicitly will NOT build or own]
96
+ - **NG-02 (<Boundary>):** [Responsibilities delegated to other tools or ecosystems]
97
+ - **NG-03 (<Boundary>):** [Deferred or intentionally excluded complexity]
98
+
99
+ ---
100
+
101
+ ## 8. Success Metrics & Quality Signals
102
+
103
+ | Metric ID | Objective | Target / Signal | Measurement Method |
104
+ | :--- | :--- | :--- | :--- |
105
+ | **KPI-01** | [Core effectiveness metric] | [Concrete benchmark] | [Benchmark suite / tests / telemetry] |
106
+ | **KPI-02** | [Reliability / quality metric] | [Concrete benchmark] | [CI gates / crash rate / schema checks] |
107
+ | **KPI-03** | [Performance / efficiency metric] | [Concrete benchmark] | [Latency / token savings / build time] |
108
+
109
+ ---
110
+
111
+ ## 9. Context Gaps, Assumptions & Open Questions
112
+
113
+ - **GAP-01:** [Unresolved requirement, missing verification, or deferred decision]
114
+ - **GAP-02:** [Assumption grounded in current state that may change]