Skip to content

feat(persistence): audit tie-break resolutions - #18

Merged
DAVstudy merged 1 commit into
mainfrom
feat/t11-audit-persistence
Nov 16, 2026
Merged

DAVstudy merged 1 commit into
mainfrom
feat/t11-audit-persistence

Conversation

@DAVstudy

@DAVstudy DAVstudy commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Closes #10

Summary

  • Persist append-only tie-break resolution revisions per store and calendar month.
  • Preserve configured policy, actual method, fallback reason, organizer, order, and timestamp.
  • Reject invalid audit orders atomically without consuming a revision.

Changes

File Change
src/modules/persistence/sqlite-monthly-league-repository.ts Adds the durable audited tie-resolution repository contract and schema.
src/modules/persistence/sqlite-monthly-league-repository.test.ts Covers persistence, isolation, revisions, and rejected-write atomicity.

Test plan

  • Focused persistence tests pass: 28/28.
  • TypeScript typecheck passes.
  • Full Vitest suite passes.
  • Independent high-risk verification passes.
  • Native review approved and acknowledged.

Contributor checklist

  • Linked an approved issue.
  • Added exactly one type:* label.
  • No shell scripts changed; shellcheck is not applicable.
  • Behavior is covered by focused and full-suite tests.
  • Documentation is included in the final chain slice.
  • Commits use Conventional Commit format.
  • No Co-Authored-By trailers.

Chain Context

Field Value
Chain T11 persisted monthly ranking
Tracker PR Not needed
Position 1 of 3
Base main
Depends on None
Follow-up #19
Review budget 473 / 400 — approved size:exception; schema, implementation, and tests form one cohesive persistence unit
Starts at Persisted tournaments on main
Ends with Audited tie-resolution revisions available through the SQLite repository

Chain Overview

main
 └── 📍 #18 Audited tie-resolution persistence
      └── #19 Persisted monthly ranking
           └── #20 Tie-resolution application flow and docs

Scope

  • Includes: durable audited tie-resolution storage and its repository tests.
  • Excludes: ranking composition and the application command that records a resolution.

Autonomy

  • CI is expected to pass for this PR branch.
  • This PR has one deliverable scope.
  • This PR can be rolled back without unrelated changes.
  • Tests cover this unit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature Nueva funcionalidad

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calcular y resolver la clasificación desde datos persistidos

1 participant