-
Notifications
You must be signed in to change notification settings - Fork 0
fix(review_manager): preserve DB due-date order in review queue (F170) #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ImmortalDemonGod
wants to merge
55
commits into
main
Choose a base branch
from
fix/flashcore-f170
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
8468ece
chore(pipeline): launch-brief artifacts
claude babfafd
Add bug catalog for ReviewManager scheduling bug
b15bcde
Add test for ordering bug B1
8de67de
test(flashcore-f170-tests): tests/test_review_manager_integration.py
claude 4171957
docs(aiv): verification packet for change 'flashcore-f170-tests'
claude a7fbe84
docs(aiv): complete design-tests packet evidence classes [A,C,D,E,F] …
claude 3699ca9
Add bug catalog for ReviewManager sorting bug
c503023
Add unit test for ReviewManager ordering bug
e6d9768
docs(aiv): verification packet for change 'flashcore-f170-tests'
897cbeb
test(flashcore-f170-tests): .github/aiv-claims/
claude 32fce97
docs(aiv): verification packet for change 'flashcore-f170-tests'
claude 8d22086
docs(aiv): complete design-tests packet evidence classes [A,C,D,E,F] …
claude da38330
feat(flashcore-f170-impl): flashcore/review_manager.py
claude 4efc7b2
docs(aiv): verification packet for change 'flashcore-f170-impl'
claude ae6a8ee
fix(pipeline): restore public symbols dropped by a whole-file rewrite…
claude 8fe2260
fix: preserve scheduler ordering in review queue
09d5e61
fix: add ReviewManager alias for backwards compatibility
569a462
docs(aiv): verification packet for change 'flashcore-f170-impl'
claude b20e899
fix(pipeline): restore public symbols dropped by a whole-file rewrite…
claude 1d25c22
fix: correct ordering of due cards in ReviewSessionManager
2a59bec
fix: add legacy ReviewManager shim and correct ordering
0633de7
docs(aiv): verification packet for change 'flashcore-f170-impl'
12242d8
fix(pipeline): restore public symbols dropped by a whole-file rewrite…
claude 0aa4621
fix: restore ReviewManager alias and correct queue ordering
26cb6b7
docs(aiv): verification packet for change 'flashcore-f170-impl'
a233a9d
fix(pipeline): restore public symbols dropped by a whole-file rewrite…
claude 0cc7abe
fix: correct review queue ordering
4287777
fix: preserve DB ordering of due cards in review queue
b2f8ba5
docs: add bug catalog for review manager ordering fix
cbefb02
test: add unit test for due date ordering in review queue
5942a36
test: add integration test for review queue ordering by due date
46274bd
test: fix integration test for due date ordering
09e9d0e
docs(aiv): verification packet for change 'flashcore-f170-fix-order'
a449006
docs(aiv): complete write-code packet evidence classes [A,C,D,E,F] (o…
claude 2452a3d
docs(aiv): complete verification packet for flashcore-f170-impl
ee0f057
chore(pipeline): prove-it artifacts
claude a54bbc4
fix(aiv-packets): reformat adopt packets to AIV Verification Packet v…
claude e1bb80c
docs(aiv): adoption packet for operator commit a233a9d (flashcore-f170)
claude 5518e15
docs(aiv): adoption packet for operator commit 0aa4621 (flashcore-f170)
claude 5100059
docs(aiv): adoption packet for operator commit 12242d8 (flashcore-f170)
claude a73ca01
docs(aiv): adoption packet for operator commit 2a59bec (flashcore-f170)
claude 746414c
docs(aiv): adoption packet for operator commit 1d25c22 (flashcore-f170)
claude a6dcac2
docs(aiv): adoption packet for operator commit b20e899 (flashcore-f170)
claude 4962254
docs(aiv): adoption packet for operator commit 09d5e61 (flashcore-f170)
claude 7e437e5
docs(aiv): adoption packet for operator commit ae6a8ee (flashcore-f170)
claude 0646306
docs(aiv): adoption packet for operator commit c503023 (flashcore-f170)
claude 438931c
docs(aiv): adoption packet for operator commit 3699ca9 (flashcore-f170)
claude fc7811a
docs(aiv): adoption packet for operator commit 8de67de (flashcore-f170)
claude fc4e6c4
docs(aiv): adoption packet for operator commit b15bcde (flashcore-f170)
claude eff3d27
docs(aiv): adoption packet for operator commit babfafd (flashcore-f170)
claude b8d962d
docs(aiv): adoption packet for operator commit 8468ece (flashcore-f170)
claude b2449c7
docs(aiv): repair broken provenance SHA refs in 3 evidence files
claude 2e2f5df
test(review-manager): set conflicting modified_at so oracle catches s…
claude b397ec9
docs(aiv): verification packet for change 'flashcore-f170-crv1-test-o…
claude 87512d9
docs(aiv): repair packet flashcore-f170-crv1-test-oracle — add Class …
claude File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # AIV Claim | ||
|
|
||
| ## Claim | ||
|
|
||
| The test `test_review_manager_ordering_by_due_date` will fail when the buggy sorting by `modified_at` is present, confirming the bug. | ||
|
|
||
| ## Evidence Classes | ||
|
|
||
| ### Class A | ||
| N/A — test not yet executed. | ||
|
|
||
| ### Class B | ||
| N/A — no external references. | ||
|
|
||
| ### Class C | ||
| The bug is present in current code: `self.review_queue = sorted(due_cards, key=lambda c: c.modified_at)` sorts incorrectly, which will cause the test to fail. | ||
|
|
||
| ### Class D | ||
| N/A — static analysis not performed yet. | ||
|
|
||
| ### Class E | ||
| https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180 | ||
|
|
||
| ### Class F | ||
| N/A — provenance claim not required. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # AIV Evidence File (v1.0) | ||
|
|
||
| **File:** `.github/aiv-claims` | ||
| **Commit:** `e6d9768` | ||
| **Generated:** 2026-06-25T21:43:14Z | ||
| **Protocol:** AIV v2.0 + Addendum 2.7 (Zero-Touch Mandate) | ||
|
|
||
| --- | ||
|
|
||
| ## Classification (required) | ||
|
|
||
| ```yaml | ||
| classification: | ||
| risk_tier: R1 | ||
| sod_mode: S0 | ||
| critical_surfaces: [] | ||
| blast_radius: ".github/aiv-claims" | ||
| classification_rationale: "R1" | ||
| classified_by: "Claude" | ||
| classified_at: "2026-06-25T21:43:14Z" | ||
| ``` | ||
|
|
||
| ## Claim(s) | ||
|
|
||
| 1. RED test pins the finding's defect against the cited baseline | ||
| 2. No existing tests were modified or deleted during this change. | ||
|
|
||
| --- | ||
|
|
||
| ## Evidence | ||
|
|
||
| ### Class E (Intent Alignment) | ||
|
|
||
| - **Link:** [https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180](https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180) | ||
| - **Requirements Verified:** design-tests: a failing test that names the finding's defect | ||
|
|
||
| ### Class B (Referential Evidence) | ||
|
|
||
| **Scope Inventory** (SHA: [`e6d9768`](https://github.com/ImmortalDemonGod/flashcore/tree/e6d9768025b3362bf7ad4bc24f7dbefb8c81942b)) | ||
|
|
||
| - [`.github/aiv-claims`](https://github.com/ImmortalDemonGod/flashcore/blob/e6d9768025b3362bf7ad4bc24f7dbefb8c81942b/.github/aiv-claims) | ||
|
|
||
| ### Class A (Execution Evidence) | ||
|
|
||
| **WARNING:** No tests found that directly import or reference the changed file. | ||
| This file has no claim-specific execution evidence. | ||
|
|
||
| ### Code Quality (Linting & Types) | ||
|
|
||
| - **ruff:** All checks passed | ||
| - **mypy:** | ||
|
|
||
| ## Claim Verification Matrix | ||
|
|
||
| | # | Claim | Type | Evidence | Verdict | | ||
| |---|-------|------|----------|---------| | ||
| | 1 | RED test pins the finding's defect against the cited baselin... | unresolved | No automatic binding available | REVIEW MANUAL REVIEW | | ||
| | 2 | No existing tests were modified or deleted during this chang... | structural | Class C not collected | REVIEW MANUAL REVIEW | | ||
|
|
||
| **Verdict summary:** 0 verified, 0 unverified, 2 manual review. | ||
| --- | ||
|
|
||
| ## Verification Methodology | ||
|
|
||
| **Zero-Touch Mandate:** Verifier inspects artifacts only. | ||
| Evidence collected by `aiv commit` running: git diff (scope inventory), pytest (no claim-specific tests found). | ||
| Ruff/mypy results are in Code Quality (not Class A) because they prove syntax/types, not behavior. | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| for the finding |
73 changes: 73 additions & 0 deletions
73
.github/aiv-evidence/EVIDENCE_FLASHCORE_REVIEW_MANAGER.PY.BUG_CATALOG.MD.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # AIV Evidence File (v1.0) | ||
|
|
||
| **File:** `flashcore/review_manager.py.bug-catalog.md` | ||
| **Commit:** `b2f8ba5` | ||
| **Generated:** 2026-06-26T00:15:29Z | ||
| **Protocol:** AIV v2.0 + Addendum 2.7 (Zero-Touch Mandate) | ||
|
|
||
| --- | ||
|
|
||
| ## Classification (required) | ||
|
|
||
| ```yaml | ||
| classification: | ||
| risk_tier: R1 | ||
| sod_mode: S0 | ||
| critical_surfaces: [] | ||
| blast_radius: "flashcore/review_manager.py.bug-catalog.md" | ||
| classification_rationale: "R2: documentation for bug fix" | ||
| classified_by: "Claude" | ||
| classified_at: "2026-06-26T00:15:29Z" | ||
| ``` | ||
|
|
||
| ## Claim(s) | ||
|
|
||
| 1. Bug catalog documents the B1 and B2 bugs related to review queue ordering and their fix | ||
| 2. No existing tests were modified or deleted during this change. | ||
|
|
||
| --- | ||
|
|
||
| ## Evidence | ||
|
|
||
| ### Class E (Intent Alignment) | ||
|
|
||
| - **Link:** [https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180](https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180) | ||
| - **Requirements Verified:** F170: document the bug and fix | ||
|
|
||
| ### Class B (Referential Evidence) | ||
|
|
||
| **Scope Inventory** (SHA: [`b2f8ba5`](https://github.com/ImmortalDemonGod/flashcore/tree/b2f8ba5f10b7b80cabcabb9fc39f3df8a906e584)) | ||
|
|
||
| - [`flashcore/review_manager.py.bug-catalog.md#L1-L24`](https://github.com/ImmortalDemonGod/flashcore/blob/b2f8ba5f10b7b80cabcabb9fc39f3df8a906e584/flashcore/review_manager.py.bug-catalog.md#L1-L24) | ||
|
|
||
| ### Class A (Execution Evidence) | ||
|
|
||
| **WARNING:** No tests found that directly import or reference the changed file. | ||
| This file has no claim-specific execution evidence. | ||
|
|
||
| ### Code Quality (Linting & Types) | ||
|
|
||
| - **ruff:** All checks passed | ||
| - **mypy:** Found 1 error in 1 file (errors prevented further checking) | ||
|
|
||
| ## Claim Verification Matrix | ||
|
|
||
| | # | Claim | Type | Evidence | Verdict | | ||
| |---|-------|------|----------|---------| | ||
| | 1 | Bug catalog documents the B1 and B2 bugs related to review q... | unresolved | No automatic binding available | REVIEW MANUAL REVIEW | | ||
| | 2 | No existing tests were modified or deleted during this chang... | structural | Class C not collected | REVIEW MANUAL REVIEW | | ||
|
|
||
| **Verdict summary:** 0 verified, 0 unverified, 2 manual review. | ||
| --- | ||
|
|
||
| ## Verification Methodology | ||
|
|
||
| **Zero-Touch Mandate:** Verifier inspects artifacts only. | ||
| Evidence collected by `aiv commit` running: git diff (scope inventory), pytest (no claim-specific tests found). | ||
| Ruff/mypy results are in Code Quality (not Class A) because they prove syntax/types, not behavior. | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Bug catalog for review queue ordering issue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
.github/aiv-evidence/EVIDENCE_TESTS_TEST_REVIEW_MANAGER.BUG_CATALOG.MD.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # AIV Evidence File (v1.0) | ||
|
|
||
| **File:** `tests/test_review_manager.bug-catalog.md` | ||
| **Commit:** `babfafdf` | ||
| **Generated:** 2026-06-25T21:35:42Z | ||
| **Protocol:** AIV v2.0 + Addendum 2.7 (Zero-Touch Mandate) | ||
|
|
||
| --- | ||
|
|
||
| ## Classification (required) | ||
|
|
||
| ```yaml | ||
| classification: | ||
| risk_tier: R1 | ||
| sod_mode: S0 | ||
| critical_surfaces: [] | ||
| blast_radius: "tests/test_review_manager.bug-catalog.md" | ||
| classification_rationale: "high" | ||
| classified_by: "Claude" | ||
| classified_at: "2026-06-25T21:35:42Z" | ||
| ``` | ||
|
|
||
| ## Claim(s) | ||
|
|
||
| 1. Bug catalog enumerates ordering bugs | ||
| 2. No existing tests were modified or deleted during this change. | ||
|
|
||
| --- | ||
|
|
||
| ## Evidence | ||
|
|
||
| ### Class E (Intent Alignment) | ||
|
|
||
| - **Link:** [https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180](https://github.com/ImmortalDemonGod/flashcore/blob/fb1ae5a1c1893939f4ff4f82cbd09d4e90f8e965/audit/02-static-audit.md#L180) | ||
| - **Requirements Verified:** testing | ||
|
|
||
| ### Class B (Referential Evidence) | ||
|
|
||
| **Scope Inventory** (SHA: [`babfafdf`](https://github.com/ImmortalDemonGod/flashcore/tree/babfafdf04489082df074958cae9c065c8a8dcc5)) | ||
|
|
||
| - [`tests/test_review_manager.bug-catalog.md#L1-L24`](https://github.com/ImmortalDemonGod/flashcore/blob/babfafdf04489082df074958cae9c065c8a8dcc5/tests/test_review_manager.bug-catalog.md#L1-L24) | ||
|
|
||
| ### Class A (Execution Evidence) | ||
|
|
||
| **WARNING:** No tests found that directly import or reference the changed file. | ||
| This file has no claim-specific execution evidence. | ||
|
|
||
| ### Code Quality (Linting & Types) | ||
|
|
||
| - **ruff:** All checks passed | ||
| - **mypy:** Found 1 error in 1 file (errors prevented further checking) | ||
|
|
||
| ## Claim Verification Matrix | ||
|
|
||
| | # | Claim | Type | Evidence | Verdict | | ||
| |---|-------|------|----------|---------| | ||
| | 1 | Bug catalog enumerates ordering bugs | unresolved | No automatic binding available | REVIEW MANUAL REVIEW | | ||
| | 2 | No existing tests were modified or deleted during this chang... | structural | Class C not collected | REVIEW MANUAL REVIEW | | ||
|
|
||
| **Verdict summary:** 0 verified, 0 unverified, 2 manual review. | ||
| --- | ||
|
|
||
| ## Verification Methodology | ||
|
|
||
| **Zero-Touch Mandate:** Verifier inspects artifacts only. | ||
| Evidence collected by `aiv commit` running: git diff (scope inventory), pytest (no claim-specific tests found). | ||
| Ruff/mypy results are in Code Quality (not Class A) because they prove syntax/types, not behavior. | ||
|
|
||
| --- | ||
|
|
||
| ## Summary | ||
|
|
||
| Bug catalog for ordering bug |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.