gitoria
All repositories: gitoria
#14person approvals: Kunibert review fixes (#52)
mergedw52-person-approval → mainby · head b5435de8
- successKunibert: kunibertKunibert review
Verdicts
- Kunibertapproved
People’s approvals
Reviews
Kunibertappapprovedb5435de8 · current head · 2026-11-15 16:03:31 UTC
Four earlier findings are fixed, and the delta adds no new findings. The status-update blocker, unbounded approval backfill, and L16 placement issues remain unresolved.
Correctness (0 new, 2 still open)
T2 and T4 are fixed. T1’s major Merge-refresh regression and T3’s unbounded backfill remain.
Still open from earlier rounds:
- T1 lib/prpage.hl:89 F15: Refresh Merge availability after status writes
- T3 lib/approvals.hl:13 no rule: Stream the approval backfill
Spec (0 new, 0 still open)
No spec findings; no linked ticket or issue is in scope for this axis.
Standards (0 new, 3 still open)
T5 and T6 are fixed; the L16 formatter-placement issues in T7–T9 remain.
Still open from earlier rounds:
- T7 lib/approvals.hl:32 L16: Move approval formatting into a helper file
- T8 lib/prpage.hl:51 L16: Move approval page formatting into a helper file
- T9 lib/statuses.hl:238 L16: Separate merge-error formatting from status logic
Gates: not run
Kunibertapprequested changes3a8b2fb8 · earlier head · 2026-11-15 15:21:09 UTC
The OR merge check preserves app-only API compatibility, but open pages can retain stale Merge controls. Unbounded history scans and documented Hybriel standards violations also need attention.
Correctness (4 new, 0 still open)
A major live-update regression leaves Merge hidden after required checks succeed. Approval updates miss pull-list tabs, and new history scans have unbounded cost.
Spec (0 new, 0 still open)
No spec findings; no linked ticket or issue is in scope for this axis.
Standards (5 new, 0 still open)
Two modified signatures violate L10, and new formatting helpers violate L16.
Gates: not run
Threads
lib/prpage.hl:89outdatedKunibertlib/prpage.hl:179outdated · resolvedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Correctness: F15: Subscribe the pull list to approval changes
components/pulls.hl has no listener for this event or requirement changes; hl:web delivers broadcasts only to mounted listeners. An open /pulls tab therefore keeps Merge hidden after approval and keeps it enabled after withdrawal. Add a listener that updates the affected list row through the shared merge check.
Kunibert2026-11-15 16:03:31 UTC
Fixed: pull-list tabs now listen for approval and requirement changes and refresh their rows.
lib/approvals.hl:13outdatedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Correctness: no rule: Stream the approval backfill
The first approval read after every process restart materializes every approval across all repositories, including already-indexed rows. Since earlier-head approvals accumulate without retention, an ordinary PR read eventually incurs unbounded memory and startup latency. Stream the migration with iterate() and persist its completion.
Kunibert2026-11-15 16:03:32 UTC
Still open: indexOldApprovals still calls find(null, null) on the first read after every restart.
lib/prpage.hl:188outdated · resolvedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Correctness: no rule: Bound requirement-change broadcasts
Every requirement write loads the repository's entire PR history, then performs approval, status, requirement and user lookups for every open PR, even when nobody has those PRs open. This makes saving one setting grow with repository history. Broadcast the requirement change once and recompute only active views, or index and batch the affected records.
Kunibert2026-11-15 16:03:32 UTC
Fixed: one invalidation replaces the loop over the repository’s entire PR history.
lib/api-helpers.hl:19outdated · resolvedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Standards: L10: Type every apiError parameter
.kunibert/HL-STANDARD.md L10 says “Type every function parameter.” The modified signature leaves status, code, message and details untyped. Declare them as Number, String, String and Hybrid respectively.
Kunibert2026-11-15 16:03:32 UTC
Fixed: every apiError parameter now has a type.
lib/pullsync.hl:284outdated · resolvedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Standards: L10: Type the remaining pullObject parameters
.kunibert/HL-STANDARD.md L10 says “Type every function parameter.” This modified signature types approvalRows but leaves slug and n untyped. Use String slug and Number n.
Kunibert2026-11-15 16:03:32 UTC
Fixed: pullObject now declares String slug and Number n.
lib/approvals.hl:32outdatedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Standards: L16: Move approval formatting into a helper file
.kunibert/HL-STANDARD.md L16 requires moving “formatting/parsing/noise and shared helpers” to lib/util.hl or lib/<topic>-helpers.hl. approvalsJson formats API rows and timestamps inside the approval storage module. Move it to lib/approvals-helpers.hl.
Kunibert2026-11-15 16:03:33 UTC
Still open: approvalsJson remains in lib/approvals.hl instead of a helper file.
lib/prpage.hl:51outdatedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Standards: L16: Move approval page formatting into a helper file
.kunibert/HL-STANDARD.md L16 requires moving “formatting/parsing/noise and shared helpers” to a helper file. approvalPageRows formats names, shortened heads, explanatory text and times. Move this presentation mapping to lib/prpage-helpers.hl.
Kunibert2026-11-15 16:03:33 UTC
Still open: approvalPageRows remains in lib/prpage.hl.
lib/statuses.hl:238outdatedKunibertKunibert2026-11-15 15:21:09 UTC
🔹 Minor · Standards: L16: Separate merge-error formatting from status logic
.kunibert/HL-STANDARD.md L16 requires moving “formatting/parsing/noise and shared helpers” to a helper file. The new missingWords, missingMessage, missingDetails and missingApproval functions format display or API answers. Move them to lib/statuses-helpers.hl while retaining eligibility checks and table writes here.
Kunibert2026-11-15 16:03:33 UTC
Still open: the merge-error formatting and projection helpers remain in lib/statuses.hl.
Conversation
Nobody has written here yet.
Only the owner and the members of this repository can comment here.
Kunibert2026-11-15 15:21:09 UTC
🔶 Major · Correctness: F15: Refresh Merge availability after status writes
Opening a PR while a required app status is pending now hides Merge. Neither putStatus nor appStatus emits an update, so a later success leaves this tab blocked until navigation, reload, or another action refreshes its view. Broadcast the updated merge state after status writes and cover pending-to-success in an already-open tab.
Kunibert2026-11-15 16:03:31 UTC
Still open: status PUTs emit no update, so Merge remains hidden in an open PR tab after a required status becomes successful.