Skip to content

docs(principles): lift §1 to lint (5/16 → 6/16) (#323)#407

Merged
trilamsr merged 1 commit into
mainfrom
feat/principles-1-lint-323
Jun 1, 2026
Merged

docs(principles): lift §1 to lint (5/16 → 6/16) (#323)#407
trilamsr merged 1 commit into
mainfrom
feat/principles-1-lint-323

Conversation

@trilamsr

@trilamsr trilamsr commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

§1 (Trust under load) was already covered by gosec + govet + errcheck in .golangci.yml.linters.enable — the PRINCIPLES.md table just hadn't been updated to reflect it. Two-line edit promotes §1 from partial lintlint and bumps the O7 KPI counter from 5/16 → 6/16, hitting the rc1 target.

Root cause

PR #357 (governance) enabled gosec + govet at file level but the mapping-table row for §1 was not updated. The KPI counter (5) was authored before that PR landed.

What this does NOT do (deferred from #323)

This PR is intentionally surgical: 2 lines, no .golangci.yml change, no behavior change. The lint rules were already running; this corrects the documentation.

Test plan

  • make lint — 0 issues
  • go vet ./... — pass
  • attribute-namespace-check — green
  • Pre-push hook all gates green

Partial-closes #323 (§1 row only — depguard for §6 deferred).

docs: lift §1 (Trust under load) enforcement from `partial lint` → `lint` in PRINCIPLES.md mapping table — gosec/govet/errcheck already cover panic-recovery + error-handling surface. KPI 5/16 → 6/16.

§1 (Trust under load) already covered by gosec + govet + errcheck. Update the mapping table row to reflect that and bump the O7 KPI counter from 5 to 6.

Docs-only edit; no .golangci.yml change required (gosec + govet + errcheck were already in linters.enable). The mapping table is the audit source-of-truth per the table's intro.

Partial-closes #323 — §6 depguard rule + principles-to-enforcement table sweep deferred (table sweep would be a separate audit pass; depguard rule for §6 needs allowlist enumeration).

Signed-off-by: Tri Lam <tri@maydow.com>
@trilamsr trilamsr enabled auto-merge (squash) June 1, 2026 22:32
@trilamsr trilamsr merged commit ec1cd47 into main Jun 1, 2026
12 checks passed
@trilamsr trilamsr deleted the feat/principles-1-lint-323 branch June 1, 2026 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[rc1-prep] Lint-enforced principles: add principles-to-enforcement mapping table + §6 depguard rule

1 participant