--- name: requirements-grounding description: >- Grounds proposed requirements in a real actor-bound problem, explicit scope, authoritative sources, evidence, assumptions, priority, and validation confidence. Use when defining or sharpening a problem, extracting obligations or stakeholder needs, separating facts from interpretations and hypotheses, writing solution-free requirement candidates, defining measurable expected outcomes without turning them into acceptance criteria, deciding what belongs in scope, sweeping quality characteristics for unstated non-functional obligations, reverse-engineering provisional requirements from existing code, tests, schemas, configuration, public interfaces, documentation, or history, or determining whether requirements are ready for dependency modeling. Do not use for graph construction or implementation planning except to prepare their inputs. --- # Requirements Grounding Turn raw legal, contractual, commercial, operational, customer, or product input into requirement candidates that are traceable, solution-free, and honest about uncertainty. > **Core Directives** > > 1. **Problem before requirement.** Do not derive a solution from an unconfirmed > problem statement. > 2. **Separate authority, evidence, interpretation, and hypothesis.** They imply > different confidence and validation work. > 3. **One actor, one outcome, one decision.** Split material differences instead > of hiding them in compound requirements. > 4. **Observable completion.** Every requirement states how a reviewer can know > the capability is complete without prescribing implementation or substituting > a downstream impact metric for completion. > 5. **Domain policy is input, not universal truth.** Honor project-specific > terminology, source hierarchies, roles, and classifications without embedding > them in this skill. > 6. **Implementation is evidence, not intent.** Code proves what can happen in > the inspected version; it does not by itself prove what should happen, why it > exists, or whether it remains wanted. > 7. **Compose; do not fork.** Generic method stays in this skill. A project > profile owns repository paths, source policy, schemas, taxonomies, roles, > commands, and other domain conventions. > 8. **Completion is not impact.** Passing a requirement's completion conditions > proves the capability works as specified; it does not prove the capability > changed the actor's or organization's outcome. ## Boundary Use `requirements-topology` after grounding when stable IDs, typed relationships, dependency order, duplicate/conflict checks, or a graph package are needed. Use `implementation-readiness` after topology when developers and architects need a build-preparation package. Do not introduce graph edges, domain entities, APIs, services, ADRs, or implementation increments here. Record them only as questions for later stages. ## Operating Modes Choose the lightest mode that preserves the decisions at risk: - **Conversational**: lead with the problem, scope, and a compact candidate table. - **Batch**: process an existing source set while keeping ambiguity and confidence visible; do not invent confirmation. - **Interactive deepening**: confirm one decisive item or one requirement at a time when mistakes are costly or difficult to reverse. - **Recovery**: inspect an existing codebase or project to produce provisional, evidence-linked requirement candidates and a confirmation queue. - **Standalone artifact**: save a durable document with source context, decision log, completion date, and unresolved watch items. ## Source Discipline Before relying on a project-specific source: 1. Identify its authority: law, regulation, contract, standard, policy, approved decision, user evidence, operational evidence, or hypothesis. 2. Check applicability, version, date, and status when the source is volatile or normative. 3. Preserve source wording and provenance; interpret it separately. 4. Surface conflicting sources or interpretations instead of silently choosing. 5. Identify the canonical editable requirement source and distinguish it from generated registers, diagrams, code constants, reports, and implementation evidence. Never author meaning in a derived view. If source currency cannot be verified, mark the affected requirements provisional. Do not imply legal, compliance, security, or contractual certainty that the source set does not support. If the canonical source or project profile is missing or contradictory, name the ownership gap instead of choosing the most polished artifact. ## Recovery Mode Use recovery mode when requirements are missing, stale, incomplete, or detached from the implementation. Code is evidence, not intent: recover candidates from several evidence classes, never by translating files or symbols into requirements, and default them to `PROVISIONAL` and recovered outcome hypotheses to `unmeasured`. Read [references/recovery-mode.md](references/recovery-mode.md) before recovering requirements from an existing project: it holds the inspection order, the evidence classes and what each does not prove, the recovery record, and the promotion rule. ## Workflow 1. **Orient**: inventory the input, source classes, existing decisions, and domain overlay (project instructions, glossaries, role catalogs, policy files when present). 2. **Frame the problem**: state actor, situation, desired outcome, and current obstacle without naming a feature or technical design. 3. **Confirm decisive assumptions**: confirm the problem, done state, and not-problem boundary before deriving a large requirement set. Also confirm source versions, actor splits, or high-impact hypotheses when they materially change the result. Do not re-ask what the user has already established. 4. **Explore adjacent scope**: inspect before/after workflows, other actors, adjacent obligations, variants, reused data, and paid or operational layers. Place each item in this scope, another scope, or outside scope. 5. **Choose the boundary**: classify the subject as a problem scope or a shared foundation capability. Split when owner, lifecycle, outcome, or test surface materially differs. Do not call a requirements scope a subsystem unless the project explicitly uses that domain term. 6. **Identify actors**: name the actor served by each requirement. Split role differences that change the need or completion conditions. 7. **Draft atomic candidates**: assign readable slug IDs and write one outcome per requirement. 8. **Describe completion**: add actor, capability, purpose when useful, and two to four observable complete-when conditions. 9. **Sweep quality characteristics**: walk the product-quality characteristics in [references/quality-model.md](references/quality-model.md) for obligations the drafted candidates and their sources imply but do not state. Record each characteristic as covered by named candidate slugs, not applicable with a reason, or open with an owner, and draft the candidates a covered-but-unwritten obligation needs. A candidate set that names no quality characteristic is a coverage finding, not evidence that none apply. A covered obligation that binds more than one scope is an aspect: give its candidate a `Holds across` line. 10. **State outcome hypotheses when relevant**: link a measurable downstream impact hypothesis to the affected requirements without turning it into a completion condition. For authoritative obligations whose validity does not depend on product-value evidence, record `not applicable` plus the reason instead of creating a hypothesis record. 11. **Classify independently**: assign basis, priority, validation decision, and confidence without letting one label imply another. 12. **Record decisions**: capture source, assumption, owner, date, watch item, and revisit trigger for every consequential choice, and what the choice supersedes: earlier decisions, requirement candidates, or criteria, or `none`. ## Problem Check A grounded problem is: - **solution-free** — describes a need or obligation, not a screen, service, or algorithm; - **actor-bound** — identifies who experiences the problem; - **situation-bound** — identifies the trigger or context; - **outcome-bound** — states the result that must become possible; - **obstacle-bound** — states why that result is not already achievable; - **singular** — contains no hidden second problem; - **role-consistent** — materially different actors are split; - **bounded** — includes both done-when and not-problem statements. ## Requirement Shape Give each requirement a stable, readable, kebab-case slug of one to four words. Prefer `report-approval` over `R7` or `validation`. Reuse the slug downstream. Mint a new slug only when a requirement genuinely splits or merges, and record the transformation. Use this shape: ```text Requirement: Actor: Must be able to: So that: Holds across: Complete when: - - Basis: authoritative | interpreted | evidenced | hypothesized Source or evidence: Evidence class: Recovery status: Priority: must | should | could | won't-now Validation decision: accept | test | watch | reject Confidence: low | medium | high ``` If a project defines its own basis or priority taxonomy, use it and include a legend. Never silently translate away a domain distinction. `So that` records purpose. It is neither evidence that the outcome will occur nor a substitute for a testable outcome hypothesis. `Holds across` marks an aspect: an obligation that binds more than one problem scope or foundation capability. Record it once, on the aspect requirement, never repeated on the requirements it constrains. The quality sweep still records a characteristic as covered by named slugs; the slugs, not the characteristic, carry `Holds across`. Omit the line for a requirement that holds in one scope. ## Outcome Hypothesis Shape Create an outcome hypothesis when an expected customer, product, commercial, or operational impact could change the decision to build, retain, simplify, expand, or stop the capability. Link it to one or more requirement slugs; do not embed it inside each requirement. Read [references/outcome-hypothesis.md](references/outcome-hypothesis.md) before writing one: it holds the record shape and the three artifacts a hypothesis is kept apart from. Do not invent a baseline, target, or causal claim to make a hypothesis look complete. Record `unknown` plus the measurement needed. At creation, set `Evidence state` to `unmeasured`. Later states and references are projections from `requirements-traceability`, not edits to hypothesis meaning. Lack of a product-value experiment must not delay an authoritative obligation. After representative use, use `requirements-traceability` to link measurements, assess evidence state and freshness for the exact hypothesis version, and feed current evidence to `functionality-complexity-tradeoff`. M alone owns BUILD, DEFER, DROP, KEEP, SIMPLIFY, and removal decisions; grounding records hypothesis meaning without issuing that worth verdict. ## Validation Gate Gate strictness equals the cost of being wrong multiplied by the difficulty of reversal. | Basis | Validate | Safe movement before certainty | Hedge | | --- | --- | --- | --- | | Authoritative | Correct source, applicability, and reading | Proceed when applicable | Preserve source/version and watch changes | | Interpreted | Defensibility and competing readings | Proceed only when reversible | Make the decision explicit and revisitable | | Evidenced | Strength, reach, and recency of evidence | Prefer the smallest useful commitment | Measure the outcome | | Hypothesized | Whether the need occurs at all | Test before material commitment | Define the smallest experiment and trigger | Validate authoritative requirements against their controlling source. Validate empirical outcome hypotheses against their measure, threshold, window, guardrails, and evidence plan. Do not force an authoritative obligation to pass an empirical value test. A must-have with weak basis or evidence is a risk finding, not a reason to hide the uncertainty. Strengthen the source, reduce the commitment, or define a reversible test. This gate decides whether a requirement is grounded enough to move forward. It does not decide whether proposed functionality earns its complexity; consume the `functionality-complexity-tradeoff` verdict rather than recreating its value and cost ledger here. ## Output Contract Every application emits a decision record before any longer artifact: ```text Subject: Mode: conversational | batch | interactive | recovery | standalone Decision: GROUNDED | PROVISIONAL | NOT-GROUNDED Problem: Basis profile: Confidence: low | medium | high Blocking gaps: Outcome hypotheses: Supersedes: Next action: Verification: Revisit when: ``` Return only the additional weight needed for the current decision. A complete grounding artifact contains: ```text Requirements grounding: - Meta-context: # standalone artifacts only - Problem statement: - Done when: - Not-problem: - Scope placements: - Quality coverage: # per characteristic: covered | not applicable + reason | open + owner - Actors and role splits: - Requirement candidates: # readable slug IDs + requirement shape - Outcome hypotheses: # linked records or not applicable + reason - Implementation evidence map: # recovery mode only - Contradictions and obsolete behavior: # recovery mode only - Confirmation queue: # recovery mode only - Basis and priority legend: - Validation decisions: - Assumptions and experiments: - Input and decision log: # each entry carries Supersedes: - Watch items and revisit triggers: - Topology handoff note: ``` For a standalone file, include audience, purpose, completion date, source files, source currency, and caveats once near the top. For a conversational answer, put the problem statement first and omit ceremony that no reader needs. If downstream topology or readiness artifacts already exist and grounding changes materially, either update them when they are in scope or name exactly what is now stale. Never leave silent divergence. ## Guardrails - Do not turn a quality characteristic into a requirement or a numeric target without an actor, source, or evidence; an open characteristic is a finding with an owner, not a manufactured non-functional requirement. - Do not give a requirement `Holds across` without a source or evidence that binds it to each scope named; `all` is a claim about every scope, not a default. - Do not bury unresolved decisions inside polished requirement prose. - Do not create broken links to prerequisites; name missing artifacts explicitly. - Do not optimize this output for developers at the expense of product, domain, legal, compliance, or stakeholder readability.