Skip to content

feat(ci): docs-affected map-integrity lint + count-0 map-gap nudge - #513

Merged
nockawa merged 2 commits into
mainfrom
feature/512-map-integrity-lint
Jul 18, 2026
Merged

nockawa merged 2 commits into
mainfrom
feature/512-map-integrity-lint

Conversation

@nockawa

@nockawa nockawa commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up hardening for the doc-accuracy net (#490) — issue #512. Makes the hand-authored docs-affected map self-defending, and closes a feedback-loop gap in the Layer-2 reviewer.

Changes

  • scripts/docs-affected.py — new --validate: a whole-map integrity check. Exits non-zero on any stale entry (a mapped page/dir that no longer exists — deterministic map rot); warns (non-blocking) on source subsystems with no map key.
  • .github/workflows/build-docs.yml — run --validate as a blocking Layer-1 gate alongside the telemetry + link/xref gates; the map + resolver join the trigger paths so a map-only edit is validated too.
  • .github/workflows/doc-accuracy-review.yml — post the unmapped/stale map-gap nudge even when 0 pages are affected. Previously the review step (and its nudge) was skipped on count-0 PRs, so a change touching only unmapped source surfaced no prompt to extend the map.

Why this shape

Unmapped subsystems don't need a hard gate — Layer 3's weekly whole-corpus audit is the correctness floor (it reads the whole corpus, map-independent). Stale entries are deterministic map rot, so they block. The count-0 nudge closes the "adjust the map" feedback loop at the earliest actionable moment (the PR that introduces unmapped code) instead of waiting for L3 to catch the drift and hoping someone back-infers the missing key.

Validation (local)

  • --validate: clean tree → exit 0 (18 areas, 0 stale); a synthetic moved page → exit 1 naming the entry.
  • Both workflows: YAML parses; the count/nudge extraction logic verified on count-0 and count>0 inputs.
  • Note: build-docs.yml's new --validate step runs on this very PR (workflow taken from the PR head), so the gate dogfoods here.

Also in this commit

Carries two pending, unrelated doc-accuracy corrections: the DurabilityOverride "declared but not wired into the engine" fixes in doc/feature-set/README.md and doc/in-depth-overview/11-durability.md.

Part of #490 · #512.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E8KzH4pPW5Dq7Y94NXfgrM

@github-actions

Copy link
Copy Markdown
Contributor

📝 Doc-accuracy review (advisory · scoped · Layer 2)

Reviewed:

  • doc/feature-set/README.md (line 177)
  • doc/in-depth-overview/11-durability.md (lines 91–93)

Findings:

  • doc/in-depth-overview/11-durability.md:93 ↔ src/Typhon.Engine/Transactions/public/Transaction.cs:2346

    The PR introduces the sentence: "Transaction.Commit takes only (ref UnitOfWorkContext, ConcurrencyConflictHandler)". This is inaccurate — there are two Commit overloads: Commit(ref UnitOfWorkContext, ConcurrencyConflictHandler) (line 2122) and a convenience overload Commit(ConcurrencyConflictHandler handler = null) (line 2346). The core claim (no DurabilityOverride parameter exists) is correct, but "takes only" misrepresents the API surface.

    Suggested fix: Replace "takes only (ref UnitOfWorkContext, ConcurrencyConflictHandler)" with "has no DurabilityOverride parameter in either overload (Commit(ref UnitOfWorkContext, ConcurrencyConflictHandler) and the convenience Commit(ConcurrencyConflictHandler))".


Advisory & scoped to the pages the change touches — recall for cross-cutting or unmapped drift is covered by the weekly Layer 3 audit.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Doc-accuracy review (advisory · scoped · Layer 2)

Reviewed:

  • doc/feature-set/README.md (edited in this PR)
  • doc/in-depth-overview/11-durability.md (edited in this PR)

No contradictions found in the reviewed pages.

Both edits are accurate to the code:

  • 11-durability.md §DurabilityOverride (line 93): The new prose correctly states the enum is declared but not wired — Transaction.Commit has exactly two overloads (Commit(ref UnitOfWorkContext, ConcurrencyConflictHandler) and Commit(ConcurrencyConflictHandler)), neither taking a DurabilityOverride parameter. The suggested workarounds (dbe.CreateQuickTransaction(DurabilityMode.Immediate), ctx.CreateSideTransaction(DurabilityMode.Immediate)) both exist in code (DatabaseEngineExtensions.cs:32, TyphonRuntime.cs:427).
  • feature-set/README.md line 177: The updated summary accurately describes the workaround pattern and correctly parenthesises the enum's unfinished state. The ✅ Implemented status is consistent — the behavior (escalating one tx to zero-loss durability) is achievable; only the planned DurabilityOverride API surface is missing.

Advisory & scoped to the pages the change touches — recall for cross-cutting or unmapped drift is covered by the weekly Layer 3 audit.

@nockawa
nockawa merged commit ee7c6fd into main Jul 18, 2026
9 checks passed
@nockawa
nockawa deleted the feature/512-map-integrity-lint branch July 18, 2026 18:25
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.

1 participant