Software understanding
A source-backed model of software objects and relationships within Engine.
The software model
Software understanding is the foundation within Engine. It records what analysis can establish about a codebase: definitions, references, calls, interfaces, dependencies, and supporting source locations.
A maintained model lets people, tools, and intelligent actors query those facts without reconstructing the entire system from source files for every task. The model combines a local graph, analyzer plugins, source ranges, and explicit analysis coverage.
Facts and evidence
Each fact needs enough context to assess it: the object or relationship, its supporting source, the revision it describes, and the analyzer’s coverage. Unresolved references and dynamic behaviour remain visible as limits of the model.
A query for a login operation might return its entrypoint, handler, callers, interfaces, and related tests. Those results need source evidence and a current revision before a work plan can rely on them. This is a conceptual query example, rather than a captured result.
Objects, relationships, and identity
Files and definitions provide the structural starting point. References, calls, imports, type relationships, and dependencies connect them. Language and framework analyzers can add supported semantic relationships, such as the connection between a route and its handler or between a component and its lifecycle behaviour.
An object needs an identity that queries and downstream representations can refer to precisely. Display names alone are insufficient: two modules may define the same name, an alias may obscure a reference, and a file may move. A resolved identity must remain tied to the source state that justified it. Identity across revisions needs explicit reconciliation when the code changes.
Relationships also need a meaning and evidence. A call edge, an import edge, and a framework-mediated entrypoint answer different questions. Traversal should retain those distinctions so an actor can explain why one object is relevant to another.
Discovery, traversal, and source inspection
A typical interaction starts with a focused search for an identifier or concept. Discovery produces candidates. Resolving a candidate gives an exact object reference. Traversal follows relevant relationships to build a bounded view of the affected system. Source inspection then returns the definitions or occurrences needed to assess the claim.
For a login change, an actor might find the route, resolve its handler, inspect callers and authentication dependencies, and locate relevant tests. It can repeat that process as new questions arise. The graph supports navigation; the source and observations remain the evidence for the conclusions drawn from it.
CLI, MCP, and REST interfaces can expose the same underlying model to different consumers. Their shared contract should preserve object identities, relationship types, revision information, and source locations. A consumer should be able to move from a query result to the evidence supporting it without guessing which file or definition was intended.
Coverage is part of the answer
A missing edge can mean no supported relationship was found, the analyzer does not cover the construct, resolution failed, or the behaviour is established only at runtime. These cases need distinct results. Otherwise an actor may interpret incomplete analysis as proof that a dependency does not exist.
Coverage should be available alongside the facts used for a decision. A supported static call relationship may justify traversal; dynamic dispatch may require broader inspection or a runtime check. Framework conventions need their own analysis support. Confidence in a change depends on knowing where evidence ends.
This also shapes context selection. A focused graph view can bring the relevant definitions and paths into an actor’s working context. The actor still needs to assess whether that view is sufficient and expand it when relationships are unresolved.
Keeping the model current
An edit can invalidate a relationship, source range, or target. Updating the model and identifying stale results are part of software understanding. A returned relationship needs to retain the revision it refers to, so a person or actor can distinguish current evidence from an earlier analysis.
Coverage matters as much as the graph’s contents. Static analysis can establish facts within supported languages and frameworks; runtime behaviour can require other evidence.
From a model to a change boundary
The affected surface of a change may include an entrypoint, its callers, a shared interface, and consumers in other modules. Traversal helps identify that surface. It does not automatically prove that every downstream consequence has been found.
A useful change boundary records the objects considered, relationships followed, relevant coverage, and remaining uncertainties. LMIR can refer to those objects when grounding a requirement. Work IR can use the same references as targets and preconditions. After implementation, refreshed analysis can compare the affected relationships and supply evidence to verification.
Source-backed understanding therefore persists across the task: it helps discover a target, constrain work, detect invalidation, and inspect the resulting software. The model needs to preserve enough evidence for those uses without requiring every actor to reconstruct the entire codebase.
Within Engine
LMIR grounds agreed intent in the software model. Work IR names operations against those targets and expected source state. Verification connects outcomes to the constraints that motivated the work.
The Engine architecture guide explains how these layers connect through a complete worked specification. The integrated pipeline remains under development.