reqmd Package: graph

Package: graph

approved 91Leaf

91 requirements · 47 nested · 3 items

X Reqmd.source File
X Reqmd.source Line
X Reqmd.symbol Kind

This file is auto-generated by reqmd-code. Do not edit by hand.

IMP-graph-CoverageCovered-528707b CoverageCovered

#

missing coverage

Coverage states reported by CoverageStates. They describe what therequires-trace-from check concluded for a single requirement, so exportsnever infer coverage from link presence.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
10
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CoverageMissing-aa30c41 CoverageMissing

#

missing coverage

Coverage states reported by CoverageStates. They describe what therequires-trace-from check concluded for a single requirement, so exportsnever infer coverage from link presence.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
10
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CoverageNotRequired-c4a9f1d CoverageNotRequired

#

missing coverage

Coverage states reported by CoverageStates. They describe what therequires-trace-from check concluded for a single requirement, so exportsnever infer coverage from link presence.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
10
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CoverageUnresolved-1b08f3c CoverageUnresolved

#

missing coverage

Coverage states reported by CoverageStates. They describe what therequires-trace-from check concluded for a single requirement, so exportsnever infer coverage from link presence.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
10
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CoverageMiss-857ed57 CoverageMiss

#

missing coverage

CoverageMiss is one unmet requires-trace-from expectation. Unknown istrue when the expected source names no known document-id or level.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
19
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-NodeCoverage-860badb NodeCoverage

#

missing coverage

NodeCoverage is the presentation view of one requirement's upstreamcoverage: the same conclusion checkRequiresTraceFromCoverage reaches,without the CheckResult wrapper. Misses is empty unless State isCoverageMissing or CoverageUnresolved; Drafts counts in-filter inboundrequirements ignored by the status gate.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
29
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-NodeVerification-680a83e NodeVerification

#

missing coverage

NodeVerification is the presentation view of one requirement'sverification state. Eligible marks the measures the missing-verdict checkexpects a result for; Outcome is empty when such a measure has none.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
52
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-LevelError-0404fb1 LevelError

#

missing coverage

Check result severity levels.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
28
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-LevelInfo-b980285 LevelInfo

#

missing coverage

Check result severity levels.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
28
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-LevelWarning-53a630f LevelWarning

#

missing coverage

Check result severity levels.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
28
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CodeFailingVerdict-bb0e0e1 CodeFailingVerdict

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CodeMissingVerdict-4bad3ad CodeMissingVerdict

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CodeVerdict-5df84bd CodeVerdict

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CodeVersionPin-2084bbf CodeVersionPin

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-DirOutdated-118b760 DirOutdated

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-DirPredated-3a7c657 DirPredated

#

missing coverage

Machine-readable check codes and direction values for version-pin findings.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
35
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-CheckResult-ef41c76 CheckResult

#

missing coverage

CheckResult describes a single Pass 2 trace validation finding.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
45
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-RepinDelta-c85934f RepinDelta

#

missing coverage

RepinDelta describes a single version-pin change that the repincommand proposes or applies. One delta corresponds to onerequirement's one trace ref. DeltaKind distinguishes "outdated"(pin < upstream.version) from "unpinned" (no pin against aversioned upstream) when promoteUnpinned is true. Predatedfindings (pin > upstream.version) are surfaced as DeltaPredatedand never auto-fixed by repin.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
62
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-CachedNode-c82f26b CachedNode

#

CachedNode is an in-memory typed representation of a requirement node,populated once at graph creation. All check methods iterate this cache.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
75
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-isSuppressed-a75ef65 isSuppressed

#

isSuppressed returns true if the given check name is in this node'ssuppression set. O(1) via the precomputed map; falls back to thelinear scan only if the set was not built (defensive).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1542
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-effectiveStatus-42ced62 effectiveStatus

#

effectiveStatus returns the built-in status value, falling back tomodel.StatusDefault ("approved") when no status attr is declared.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1552
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-Graph-186bdff Graph

#

Graph wraps an in-memory adjacency map with a typed node cache. It isbuilt once from parsed documents and queried by Pass 2 check methods.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
111
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-CoverageStates-6accec7 CoverageStates

#

CoverageStates returns the coverage state of every requirement node.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
60
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-TraceRefs-8ad701a TraceRefs

#

TraceRefs returns the declared trace references of one requirement insource order, each resolved to its target and annotated with the resolvedversion and the authored version pin. References that do not resolve arereturned with Resolved=false so the caller can surface link health.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
72
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-VersionOf-ff7ca98 VersionOf

#

VersionOf returns the declared version of a requirement, or 0.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
97
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-VerificationStates-edc734e VerificationStates

#

VerificationStates returns the verification state of every non-syntheticrequirement. Eligible follows the missing-verdict gate (approved measurewith a verify attribute that is not deferred or rejected), so apresentation denominator matches the check's expectation set.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/analysis.go
X Reqmd.source Line
108
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-SetFilter-3588adb SetFilter

#

SetFilter restricts per-requirement checks to the given set of requirementIDs. nil means no filter (check everything — the default); an emptynon-nil set means "the filter matched nothing" — no requirement ischecked. The distinction matters: a --filter expression that matches norequirements must scope the graph to the empty set, not reset tocheck-everything. The graph is always built from the full document treeso trace references to filtered-out requirements still resolve; only theper-req check/report loop is scoped.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
140
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-SetDisjointAttrs-8acf10b SetDisjointAttrs

#

SetDisjointAttrs enables the disjoint-attribute check for the namedarray-typed attributes. Empty or nil disables it.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
147
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-inFilter-25a0fba inFilter

#

inFilter reports whether a requirement ID is in the active filter set.Returns true when no filter is active (nil filter = check everything).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
153
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-firstDocID-8625bf6 firstDocID

#

firstDocID returns the first document-id associated with any of the givendirectory paths, or the first directory path itself if no document-idis declared.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
429
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-inferBoundaries-7fc25a7 inferBoundaries

#

inferBoundaries returns two maps describing the V-model topology:rootDirs: directories that are at the top (have no upstream sources, or are declared external).leafDirs: directories that are at the bottom (are not referenced as upstream sources by any other document).

The returned maps are pure functions of the documents; callers shouldtreat them as read-only.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
449
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-resolveCoverageSource-602ac8e resolveCoverageSource

#

resolveCoverageSource resolves a coverage-expectation token (a document-id or alevel name) to the set of directory paths that satisfy it. Returnsnil/empty when nothing matches.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
491
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-CheckResults-f98967d CheckResults

#

CheckResults runs all Pass 2 validation checks and returns the combined results.Checks performed:Broken reference (WARNING): trace target not found; also includes duplicate ID and ambiguous reference errors collected during edge creation.Circular dependency (ERROR): cycles detected via DFS.Requires-trace-from coverage (WARNING): for each requirement that declares requires-trace-from, verifies that at least one requirement from each expected source (document-id or level) traces to it.Generic untraced / no-downstream (WARNING) — fallback for requirements that do NOT declare requires-trace-from: the boundary inference still applies so a single requirement stays clean when its document is at the top or bottom of the V-model.Disposition without reason (WARNING).Mandatory disposition (ERROR).Version pin (ERROR): outdated (V > N) and predated (V < N) version pins on trace references. Suppress per-node with reqmd-suppress: [version-pin]. Code: "version-pin", Direction: "outdated" or "predated".ID prefix (ERROR).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
522
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkCircular-c98b028 checkCircular

#

checkCircular detects cycles using DFS on the in-memory cached nodes.Returns ERROR results when a cycle is detected.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
549
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-ensureBoundaries-d241cd3 ensureBoundaries

#

ensureBoundaries computes the V-model boundaries when CheckResults has notrun yet, so analysis callers get the same boundary inference.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
590
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-coverageState-afd14ce coverageState

#

coverageState classifies one node using the coverage rules ofcheckRequiresTraceFromCoverage. It is the single implementation both thecheck and CoverageStates read.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
600
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-explicitCoverage-af57a45 explicitCoverage

#

explicitCoverage classifies a requirement that declares (or inherits) arequires-trace-from expectation.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
612
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-inboundFrom-8fab110 inboundFrom

#

inboundFrom reports whether an in-filter, approved inbound requirement comesfrom one of the expected document directories. drafts counts in-filterinbound requirements ignored by the status gate.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
641
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-genericCoverage-ab8c9e6 genericCoverage

#

genericCoverage applies the boundary-aware untraced rule for requirementswithout a requires-trace-from expectation: an inbound link, the rootboundary, or a nested sub-requirement needs no coverage.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
668
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkRequiresTraceFromCoverage-b763ab0 checkRequiresTraceFromCoverage

#

checkRequiresTraceFromCoverage runs two related checks:For each requirement that explicitly declares requires-trace-from (even requires-trace-from: []), verify that at least one inbound edge originates from each expected document-id or level. Unknown expectations produce a WARNING.For requirements that do NOT declare requires-trace-from, fall back to the generic untraced / no-downstream checks using the V-model boundary inference so a top-level or bottom-level document stays clean.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
689
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-hasFilteredInbound-b63ba43 hasFilteredInbound

#

hasFilteredInbound reports whether any inbound edge originates from arequirement in the active filter set. With no filter active (nil), itdegenerates to "has any inbound" — preserving the pre-filter behaviorexactly without iterating the inbound list.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
766
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-hasFilteredOutbound-82016fe hasFilteredOutbound

#

hasFilteredOutbound reports whether any outbound edge targets arequirement in the active filter set. With no filter active (nil), itdegenerates to "has any outbound" — preserving the pre-filter behavior.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
776
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkDispositionReason-b62bc60 checkDispositionReason

#

checkDispositionReason detects nodes where disposition is set to a valueother than "implemented" but disposition-reason is missing or empty.Returns WARNING for each.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
786
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkMandatoryDisposition-f8f6727 checkMandatoryDisposition

#

checkMandatoryDisposition detects nodes in directories wheremandatory-disposition is set and the requirement has no disposition value.Returns ERROR for each violation.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
813
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkIDPrefixes-d92a5f0 checkIDPrefixes

#

checkIDPrefixes validates that every requirement ID matches the declaredprefix for its document directory and that no two directories share a prefix.Prefix collision is an ERROR: two document directories must not declare thesame ID prefix, since that would make requirement IDs ambiguous across docs.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
841
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-pinStatus-f3ee71c pinStatus

#

pinStatus classifies a single version pin against its target'scurrent version. Shared by checkVersionPins (which emits findings)and RepinDeltas (which proposes edits). Returns the direction("outdated", "predated", or "" for current) and ok=true when thepin is comparable to the target. Returns ok=false when the pinshould be skipped (target missing, external, unversioned, orthe node suppresses the version-pin check).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
889
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkVersionPins-9ee679f checkVersionPins

#

checkVersionPins compares each downstream requirement's ~N version pinon a trace reference against the upstream requirement's version.Findings:outdated — upstream version V > pinned N. Downstream must be re-verified.predated — upstream version V < pinned N. Downstream claims a version that does not exist on the upstream; data integrity issue.

Both emit ERROR by default. Outdated findings carryCode="version-pin" + Direction="outdated" and can be demoted to WARNINGby the cmd layer when --relaxed-versions is set. Predated stays ERROR.

Skip rules are shared with RepinDeltas via pinStatus.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
922
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-measureGate-567b976 measureGate

#

measureGate applies the shared eligibility gate for the outcome-gatedchecks: a node must be a measure (not a result), an approved coverageprovider (draft measures are not expected to have results), and notdeferred/rejected (those are exempt from verification).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
967
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkMissingVerdict-c8e4978 checkMissingVerdict

#

checkMissingVerdict flags approved verification measures whose rolled-upevidence set is empty. A measure is any approved, non-result node carryinga verify attribute (see isMeasure). Evidence is the union of themeasure's own attached results and the results of approved, in-filternodes in its inbound trace closure (downstream test cases). Draft measuresare skipped (a draft measure is not expected to have results yet).

The check runs only when result pseudo-requirements are present in thegraph (loaded via check --results). With no results loaded, no nodehas IsResult=true and the check is a no-op.

Severity: WARNING. Suppress per-node withreqmd-suppress: [missing-verdict]. Code: "missing-verdict".

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
987
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkFailingVerdict-d16fe4c checkFailingVerdict

#

checkFailingVerdict flags approved measures whose rolled-up verdict isfail. Like checkMissingVerdict it is a no-op when no result nodes arepresent. Draft measures are skipped (a draft measure is not expected togate on results), mirroring the missing-verdict draft gate.

The message names the failing case(s) and their source file(s).

Severity: ERROR. Suppress per-node withreqmd-suppress: [failing-verdict]. Code: "failing-verdict".

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1032
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-hasResultNodes-7d55ead hasResultNodes

#

hasResultNodes reports whether any synthesized result pseudo-requirementis present in the graph.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1073
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-isMeasure-d3d8fed isMeasure

#

isMeasure reports whether a node is a verification measure — arequirement authored with a verify attribute (e.g. verify: Test,verify: Review). Whether a result currently traces to it is irrelevant tothe definition (see checkMissingVerdict). Result nodes are not measures.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1081
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-evidenceItem-68bb8e5 evidenceItem

#

evidenceItem derives an EvidenceItem from a synthesized result node.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1162
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-evidenceCase-4b908ea evidenceCase

#

evidenceCase resolves the case key of a result node: the #case suffix ona case-keyed result, or the case key of the synthesized test case theresult traces to, or "" for a direct (uncased) result.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1176
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-measureEvidence-4a52af0 measureEvidence

#

measureEvidence gathers the evidence set of a requirement: its ownattached results plus the results of approved, in-filter nodes in itsinbound trace closure (downstream authored test cases and synthesizedcases). Draft in-filter intermediaries are not contributors and arereported in the returned draft count. self holds the results attacheddirectly to the requirement; items is the deduplicated union (by casekey, keeping the higher severity).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1195
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-failingEvidence-f67bd40 failingEvidence

#

failingEvidence returns the evidence items whose outcome is fail.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1254
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-severityOf-087a1fd severityOf

#

severityOf computes the rolled-up severity of a node's evidence set,recursing through approved, in-filter intermediaries. Results are cachedon the graph (invalidated by SetFilter) so a whole check pass stays cheap.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1268
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-measureSeverity-77a210e measureSeverity

#

measureSeverity returns the rolled-up severity of a measure's evidenceset (sevNone when the set is empty).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1311
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-latestOutcomeFor-e2aaff3 latestOutcomeFor

#

latestOutcomeFor returns the outcome and source file of the result nodetracing to the given measure. Since the result layer(internal/verify.MergeLatest) already collapses to one result permeasure, there is at most one result node per measure. Returns("", "", false) if no result traces to the measure.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1320
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkVerdicts-50f5597 checkVerdicts

#

checkVerdicts emits an INFO-level result for each measure that has anon-empty rolled-up evidence set, showing the rolled-up outcome. Thismakes passing verdicts visible in the output — without it, a clean runwith --results looks identical to a run without --results. Measureswithout evidence are covered by checkMissingVerdict and emit no verdictline here.

Severity: INFO (never affects exit code). Code: "verdict".

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1341
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-MeasureOutcome-1fbdb57 MeasureOutcome

#

MeasureOutcome returns the latest verification outcome for a measure(pass, fail, skipped, inconclusive) and whether a result exists. Returns("", false) if the measure has no result or is not a measure.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1378
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-rollupVerdict-a36e2f2 rollupVerdict

#

rollupVerdict computes the strict verdict roll-up for a node from itsevidence set: the highest-severity outcome plus a representative sourcefile (the node's own attached result when present, else the file of thehighest-severity downstream item). ok is false when the evidence set isempty. Shared by checkVerdicts and MeasureVerdicts so the roll-up rulelives in one place.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1400
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-MeasureVerdicts-ce3940b MeasureVerdicts

#

MeasureVerdicts returns, for every non-synthetic node with a non-emptyrolled-up evidence set, the rolled-up outcome, a representative sourcefile, and the deduplicated evidence items. The set is keyed by requirementID and computed from graph adjacency, so a single source of truth feedsall outputs. Returns nil when no results are loaded.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1424
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-HasResults-7adf509 HasResults

#

HasResults reports whether the graph contains any synthesized resultpseudo-requirements (i.e. --results was supplied).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1444
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-RootDirs-133e25f RootDirs

#

RootDirs returns the document directory paths at the top of the V-model(no upstream sources declared, or external), sorted. Uses the cachedboundaries from CheckResults; returns empty if CheckResults has not beencalled.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1452
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-LeafDirs-f06eb17 LeafDirs

#

LeafDirs returns a sorted slice of document directory paths that are atthe bottom of the V-model (not referenced as upstream sources by anyother document).Uses the cached boundaries from CheckResults; returns empty if CheckResultshas not been called.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1461
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-NodeCount-b5b435a NodeCount

#

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1483
X Reqmd.symbol Kind
method
Status
approved

Query / inspection methods on *Graph

#

NodeCount returns the number of requirement nodes in the graph.

IMP-graph-UpstreamNeighbors-5e29545 UpstreamNeighbors

#

missing coverage

UpstreamNeighbors returns the requirement IDs that the given requirementtraces TO — its parents/upstream requirements. Returns nil if not found.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1489
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-DownstreamNeighbors-21bdb76 DownstreamNeighbors

#

missing coverage

DownstreamNeighbors returns the requirement IDs that trace TO the givenrequirement — its children/downstream requirements. Returns nil if not found.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1498
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-ResolveTraceRef-89c568f ResolveTraceRef

#

missing coverage

ResolveTraceRef resolves a raw trace reference (as written in thetrace attribute, before pin stripping) to the bare requirement ID itpoints at, using the same rules New uses: a doc-id/ID prefix resolvesthrough document-ids, falling back to a directory path; a bare IDresolves globally. ok is false for a dangling or ambiguous-everywherereference. Callers that need dangling refs keep the raw string.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1511
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-Documents-61288d7 Documents

#

missing coverage

Documents returns the document slice the graph was built from, in theorder given to New. Exports and reporters use it to look up authoredmetadata (attributes, titles) that the cached node view does not carry.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1535
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-RepinDeltas-c2e94c2 RepinDeltas

#

missing coverage

RepinDeltas computes the list of version-pin changes the repincommand would propose (or apply) against this graph.

Without promoteUnpinned, only outdated findings are returned —refs whose pin is strictly below the upstream's current version.Predated findings (pin strictly above upstream version) aresurfaced separately so the user can see them; repin neverauto-fixes a predated pin because it is a data integrity error,not a process error.

With promoteUnpinned=true, refs that have no pin at all(~N not present in the source) against a versioned upstreamalso produce a delta. This converts "no claim" into "claimed atcurrent version" — the caller is expected to opt in deliberately.

Rules shared with checkVersionPins:Skip synthetic nodes (result pseudo-requirements and future synthesized test cases — they exist in memory only, so there is no source file to rewrite). IsResult is kept for nodes built directly in tests that predate the Synthetic document marker.Skip nodes that suppress the version-pin check.Skip refs whose target is external (versions out of our control).Skip refs whose target has no version (no ground truth).

Returns deltas sorted for stable output: by source file, thenrequirement ID, then source ref.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1585
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-isCoverageProvider-9153780 isCoverageProvider

#

missing coverage

isCoverageProvider reports whether a node counts as a valid upstreamcoverage source for downstream requirements. A node is a coverageprovider when its document has opted out of the status lifecycle(x-reqmd.ignore-status) or its effective status is "approved".

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1654
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-checkDisjointAttribute-013f99b checkDisjointAttribute

#

missing coverage

checkDisjointAttribute verifies that for every trace link, the source andtarget requirements have at least one overlapping value for each declareddisjoint-check attribute. Requirements with an empty/absent value for theattribute are exempt ("applies to all"). Both non-empty with zerointersection → ERROR. Filter-aware: only checks source reqs in the activefilter set.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1674
X Reqmd.symbol Kind
method
Status
approved

IMP-graph-New-16672c9 New

#

missing coverage

New builds a pure Go in-memory adjacency graph from all parsed documents.It creates one CachedNode per requirement and populates Inbound/Outboundadjacency from trace attributes. Broken trace references (target ID notfound in any document) are collected as WARNING results.

Trace reference resolution:"doc-id/ID" — prefix is resolved as a document-id first, falling back to a directory path if no matching document-id is found."ID" — resolved against the global ID map; emits an ERROR ambiguity warning if the ID exists in multiple documents.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
171
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-expectsVerification-8e717c2 expectsVerification

#

missing coverage

expectsVerification reports whether a measure's disposition still expectsverification results. A deferred or rejected measure is not expected to beverified, so it is exempt from the outcome-gated checks (mirroring howsuch dispositions suppress the generic trace warnings).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1092
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-severity-8c8004a severity

#

missing coverage


Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1107
X Reqmd.symbol Kind
type
Status
approved

Evidence-set roll-up (strict aggregation)

severity ranks verification outcomes for strict roll-up aggregation:any fail → fail, else inconclusive → inconclusive, else skipped →skipped, else pass; an empty evidence set has severity none.

IMP-graph-sevFail-dc8e7f9 sevFail

#

missing coverage

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1109
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-sevInconclusive-0745f31 sevInconclusive

#

missing coverage

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1109
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-sevNone-3c87e27 sevNone

#

missing coverage

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1109
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-sevPass-99c88c4 sevPass

#

missing coverage

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1109
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-sevSkipped-8bb8ffb sevSkipped

#

missing coverage

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1109
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-outcomeSeverity-fde3f6c outcomeSeverity

#

missing coverage

outcomeSeverity maps an outcome string onto the severity lattice.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1118
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-severityOutcome-12d5cbe severityOutcome

#

missing coverage

severityOutcome maps a severity back to its outcome string ("" for none).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1134
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-EvidenceItem-35e5173 EvidenceItem

#

missing coverage

EvidenceItem is one verification result contributing to a measure'sevidence set: its case key ("" for direct, uncased results), outcome,source report file, and the synthesized test case's Markdown description(empty for direct results and authored test cases).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1154
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-NodeVerdict-84bafd6 NodeVerdict

#

missing coverage

NodeVerdict is the rolled-up verdict and a representative result sourcefile for a single node, resolved by the graph. It feeds exporters andreporters; Outcome is the strict roll-up over the node's evidence set(own attached results plus approved downstream test cases), and Evidencelists the deduplicated items that make up that set (case, outcome, file,description).

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1388
X Reqmd.symbol Kind
type
Status
approved

IMP-graph-sortedKeys-5e2bad4 sortedKeys

#

missing coverage

sortedKeys returns the keys of a string-keyed map in sorted order.Map iteration order is randomized in Go, so any code path that turns amap into an ordered result (findings, listings) must sort to staydeterministic.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1469
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-CodeDisjointAttribute-443a7cc CodeDisjointAttribute

#

missing coverage

CodeDisjointAttribute is the check code for the disjoint-attribute check.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1666
X Reqmd.symbol Kind
const
Status
approved

IMP-graph-intersects-b1f2ba7 intersects

#

missing coverage

intersects reports whether two string slices have at least one elementin common. Both slices are assumed non-empty.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1743
X Reqmd.symbol Kind
function
Status
approved

IMP-graph-CollectDisjointAttrs-e44228b CollectDisjointAttrs

#

missing coverage

CollectDisjointAttrs merges disjoint-check attribute names from CLI flagsand x-reqmd.disjoint-check schema declarations into a sorted,deduplicated slice. Returns nil when nothing is configured.

Details
X Reqmd.imported
true
X Reqmd.source File
internal/graph/graph.go
X Reqmd.source Line
1759
X Reqmd.symbol Kind
function
Status
approved