Skip to main content

goals

Summary

Optional section for desired outcomes, quality targets, and risks.

Where it appears

  • rqml > goals

Content model

  • goal (0..n)
  • qgoal (0..n)
  • obstacle (0..n)
  • goalLink (0..n)

goal children: statement (1), rationale (0..1)
qgoal children: statement (1), metric (0..1)
obstacle children: statement (1), mitigation (0..1)

Attributes

ElementNameTypeRequiredDefaultDescription
goalidIdTypeyesGoal identifier.
goaltitlestringyesShort goal label.
goalpriorityPriorityType (`mustshouldmay`)no
goalstatusStatusTypenoLifecycle.
goalownerRefIdTypenoOwner reference.
qgoalid, title, priority, statusas above
obstacleidIdTypeyesObstacle identifier.
obstacletitlestringyesObstacle label.
obstaclelikelihoodtokennoRisk likelihood.
obstacleseveritytokennoRisk severity.
goalLinkidIdTypeyesLink identifier.
goalLinkfromIdTypeyesSource goal/obstacle ID.
goalLinktoIdTypeyesTarget goal/obstacle ID.
goalLinktypeTraceTypeyesRelation (refines, mitigates, etc.).
goalLinkconfidenceConfidenceType (0..1)noConfidence in relation.

Example (minimal)

<goals>
<goal id="GOAL-1" title="Deliver value">
<statement>Ship features customers need.</statement>
</goal>
</goals>

Example (typical)

<goals>
<goal id="GOAL-AVAIL" title="High availability" priority="must">
<statement>Maintain payment API availability during peak shopping.</statement>
</goal>
<qgoal id="QGOAL-LATENCY" title="Low latency" priority="should">
<statement>Keep API latency low for checkout.</statement>
<metric>p95 latency ≤ 500ms under 200 rps.</metric>
</qgoal>
<obstacle id="OBS-DB" title="DB contention" likelihood="medium" severity="high">
<statement>Single DB cluster could throttle writes.</statement>
<mitigation>Shard by merchant and add write queue.</mitigation>
</obstacle>
<goalLink id="GL-1" from="OBS-DB" to="GOAL-AVAIL" type="threatens" confidence="0.7"/>
</goals>

Notes / LLM hints

  • Use measurable metric for qgoal to keep quality targets testable.
  • Model risks as obstacle and connect via goalLink before deriving requirements.