Spec-to-implementation linking
A Spec topic in LOGOS must be linkable to the implementation
it produced, and that link must be navigable in both
directions — from spec to implementation and from
implementation back to spec.
Why It's Needed
Without explicit linking, the connection between a design
decision and the code it produced exists only in someone's
memory or in an informal convention. Six months later the
question "why was this built this way?" has no answer. The
spec and the implementation drift apart and the traceability
that NEXUS methodology depends on is lost.
The link is not just documentation — it is the closure of
the design loop. A spec without a linked implementation is
incomplete. An implementation without a linked spec is
ungrounded.
The Requirement
When a Spec topic reaches Approved state it can be linked
to one or more implementation artifacts. An implementation
artifact is any referenceable thing — a code repository,
a specific commit, a file, another LOGOS topic, or an
external URL.
The link is bidirectional and explicit:
- The Spec topic shows what was built from it
- The implementation artifact shows what spec it was
built from - Neither direction requires manual maintenance —
creating the link populates both ends
A Spec topic moves to Linked to Implementation state when
at least one implementation link exists.
Relationship to AI-Assisted Implementation
An Approved spec is the input to AI-assisted code
generation within the NEXUS methodology. The spec provides
the design; AI produces the implementation. The link
created at that point is the record that this implementation
came from this design — traceable, auditable, and permanent.
Acceptance
A spec topic in Approved state is linked to a code
repository commit. The spec topic displays the link and
moves to Linked to Implementation state. Navigating to
the commit shows a back-reference to the spec. The link
persists as an immutable event — removing the link creates
an unlink event rather than deleting the original link
record.
Sources
- LOGOS → Requirements → Spec topic type with defined workflow states (linking is the final stage of the spec workflow)
- LOGOS → Requirements → Event-sourced storage as the foundation (links are events — creation and removal both recorded)