Skip to content

docs(docs): add a no clean default rule for result models - #3844

Merged
dan-petty merged 2 commits into
mainfrom
docs/2660-no-clean-default-guardrail
Nov 6, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/2660-no-clean-default-guardrail

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

ARCHITECTURE.md section 7 now has a bullet, No Clean Default on a Result. The result model of a lookup or a check has a field that names how the lookup ended. That field has no default that reads as clean, and a missing value raises a ValidationError. A result that no lookup marked then never reads as verified.

The bullet cites #2504 and #2636, which removed the clean default from NetworkReputationRecord, NetworkReference and PackageLookupResult. It names the two merged tests that fail if a clean default returns, so the rule rests on a check and not on prose alone.

Closes #2660

Change: openspec/changes/archive/2026-11-06-2660-no-clean-default-guardrail/

@dan-petty dan-petty added type/docs Type docs: a change to the documents scope/docs Documents, guides, ADRs and generated references labels Nov 6, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Local checks on the final commit, full uv run devops ci under the shared lock:

  • Pass: lint, format, typecheck, audit, security, actionlint, zizmor, docs, uv-check, lockfile, build, outdated, deps, constructs, devcontainer, openspec, git, test-settings, k8s, test-tree, startup-imports, swallowed-failures.
  • Fail: test (9m 31s, over the 5 minute budget, the known row of fix(ci): the pytest step of devops ci exceeds the 5-minute budget #3593) and coverage (it needs the test run). The change edits only ARCHITECTURE.md and an OpenSpec folder, and no test failed on a change of mine. The output named no failing test.

Premise: uv run devops pr hardening-report --pr 2647 -f json on origin/main prints is_hardened: true since #3684, so the audit no longer reports Missing. The issue still stands for its other need: no document states the rule. The proposal records this in ## Feasibility.

The scope of the title is docs, because .github/labels.yml has no scope/architecture label.

@dan-petty
dan-petty marked this pull request as ready for review November 6, 2026 20:12
@dan-petty
dan-petty merged commit 64b8959 into main Nov 6, 2026
23 checks passed
@dan-petty
dan-petty deleted the docs/2660-no-clean-default-guardrail branch November 6, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/docs Documents, guides, ADRs and generated references type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(architecture): add the guardrail of #2504 to a declared hardening surface

1 participant