Problem/Motivation

The module's design decisions exist as terse invariants (AGENTS.md), a contributor recipe (CONTRIBUTING.md), and rationale scattered across merged issues — but nothing explains the system as a whole: how a finding becomes a fingerprint becomes a lifecycle row becomes a trend, why resolution has an authority rule, why checks and queries are different primitives, or what the store's retention tiers mean for consumers. A contributor writing their first check, or an integrator consuming the stored history, currently has to reverse-engineer the architecture from code and issue archaeology.

Steps to reproduce

Try to answer "why did my resolved finding disappear from the changes feed after 90 days but not from the chart?" from the existing documentation: the answer exists only in code comments and the results-store issue (#3608513: Add results store and trends).

Proposed resolution

A docs/ARCHITECTURE.md explaining the system the invariants produce, complementing rather than duplicating the existing docs (AGENTS.md stays the rules; CONTRIBUTING.md stays the how-to):

  • The shape: one kernel, surfaces as projections — checks and surfaces add, never multiply.
  • The two-primitive model (checks vs. queries) and why persistence belongs only to one of them.
  • The result schema as the API; not-applicable vs. clean; the collection window and staleness.
  • Fingerprints (identity, never state) and the lifecycle semantics: set-difference resolution, resolution authority ("no news is not good news"), close-and-reopen on severity change.
  • The four store tables, churn-not-time growth, and the retention tiers with their reasoning.
  • Collection cadence, the agent surface (in-site tool execution, a read-plus-no-store toolset with the structural-vs-convention distinction per surface, no external write API, the llm _meta section as the agent-facing documentation channel), and the pagination rule.
  • The deliberately deferred machinery (queued expensive collection) and its trigger.

Remaining tasks

  • Review the document for accuracy against 1.x as merged.

User interface changes

None.

API changes

None — documentation only.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

amangrover90 created an issue. See original summary.

amangrover90’s picture

Assigned: Unassigned » amangrover90

amangrover90’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

amangrover90’s picture

Assigned: amangrover90 » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.