gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#13person approvals: Approve button for people; merge needs the required checks or a listed person's approval (#52)

mergedw52-person-approval → mainby Gitoria · head b5435de8

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertapproved

People’s approvals

Reviews

  1. Kunibertappapprovedb5435de8 · current head · 2026-11-15 15:57:47 UTC

    All four open findings are addressed. No new issues were found in the scoped delta.

    Correctness (0 new, 0 still open)

    The recorded owner decision and single-invalidation notification flow address the remaining correctness concerns.

    Spec (0 new, 0 still open)

    No ticket or issue is linked in the PR description, so there are no spec findings.

    Standards (0 new, 0 still open)

    Live pull-list updates and parameter typing now satisfy the outstanding F15 and L10 findings; no new violations found.

    Gates: not run

  2. Kunibertappcommented3a8b2fb8 · earlier head · 2026-11-15 15:08:51 UTC

    Five earlier findings are fixed; owner authorization and live pull-list updates remain unresolved. The new notification path also introduces unbounded work, and two extended signatures leave parameters untyped.

    Correctness (1 new, 1 still open)

    API compatibility, approval indexing, member enumeration, and withdrawal handling are fixed. T2 remains blocking, and requirement notifications now perform work proportional to repository history.

    Still open from earlier rounds:

    • T2 lib/statuses.hl:204 no rule: removes a documented design; needs his recorded yes

    Spec (0 new, 0 still open)

    No ticket or issue is linked in the PR description, so there are no spec findings.

    Standards (1 new, 1 still open)

    F21 keyboard coverage is fixed, but F15 updates remain incomplete on /pulls. The modified helper signatures also violate L10.

    Still open from earlier rounds:

    • T6 lib/prpage.hl:168 F15: Publish approval changes to other tabs

    Gates: not run

  3. Kunibertapprequested changes2a89d8d0 · earlier head · 2026-11-15 14:16:09 UTC

    Person approvals are bound to a PR head, but API compatibility and the required-check override need resolution before merge. Database reads, withdrawal handling, live updates, and keyboard coverage also need fixes.

    Correctness (5 new, 0 still open)

    The PR breaks published API shapes and bypasses a documented required-check mechanism without recorded owner approval. It also introduces unbounded reads and ignores withdrawal failures.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (2 new, 0 still open)

    The new flow lacks the audience updates required by F15 and the keyboard coverage required by F21.

    Gates: not run

Threads

  1. lib/statuses.hl:109outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔶 Major · Correctness: no rule: Preserve compatibility with the published API shapes

      This adds app-less {user} entries to pull.required, while docs/apps-api.md §4 fixes every entry as {app:{id,name},context}. missingOf similarly adds app-less entries to the documented checks_failed.details array. Existing readers following those contracts cannot consume these entries unchanged, and the PR provides no reader-first deployment order. Use separate person fields or coordinate compatible reader updates and document the contract version and deployment order.

    2. Kunibert2026-11-15 15:08:51 UTC

      Fixed: required and error details remain app-only, with person data exposed through separate additive fields documented in the contract.

  2. lib/statuses.hl:204outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔶 Major · Correctness: no rule: removes a documented design; needs his recorded yes

      Returning an empty missing list for a person's approval bypasses failing required app checks. docs/pr-deploy-plan.md:9 explicitly says, “When the repo marks Kunibert required, Merge stays off until approve + success”; docs/apps-api.md §7 also requires successful checks. The PR description links no ticket containing caramboleyo's recorded yes to replacing this mechanism. Obtain and link that approval or preserve the documented gate.

    2. Kunibert2026-11-15 15:08:51 UTC

      The new docs cite #52, but DECISIONS.md has no referenced “PR approvals” section, and the PR description still does not link the owner's recorded yes for bypassing required app checks. Please supply that decision link; this remains open.

    3. Kunibert2026-11-15 15:57:47 UTC

      Fixed: DECISIONS.md now records the owner's “his or my approval” decision and links #52.

  3. lib/approvals.hl:12outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔹 Minor · Correctness: no rule: Index approvals by repository and PR

      Every lookup loads the repository's entire approval history before filtering by PR. missingOf repeats this for each required person, so a 50-row pull list with 20 required people can scan that history 1,000 times. Old-head approvals accumulate indefinitely. Add an indexed repository/PR key and reuse the PR's approvals when evaluating its requirements.

    2. Kunibert2026-11-15 15:08:51 UTC

      Fixed: approval reads use the repository/PR index, and requirement checks reuse those rows.

  4. lib/statuses.hl:145outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔹 Minor · Correctness: no rule: Build approver choices from the membership lists

      Opening Settings now materializes every registered user and calls mayPush for each, adding user and membership lookups across the whole installation. Enumerate the repository owner, repository members, and organization owner/members through the existing membership helpers, then deduplicate and fetch only those users.

    2. Kunibert2026-11-15 15:08:52 UTC

      Fixed: choices come from repository and organization membership, with duplicate IDs removed.

  5. lib/approvals.hl:33outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔹 Minor · Correctness: no rule: Propagate approval withdrawal failures

      MPackDB.delete returns null on failure, but withdrawal ignores its result and always reports success. A storage failure can therefore leave an approval eligible for merge without displaying an error to the person withdrawing it. Check deletion results and verify the approval is absent before returning success.

    2. Kunibert2026-11-15 15:08:52 UTC

      Fixed: withdrawal checks deletion results, verifies absence, and propagates failures.

  6. lib/prpage.hl:168outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔹 Minor · Standards: F15: Publish approval changes to other tabs

      .kunibert/HL-STANDARD.md F15 requires “later changes are emit client … (with an audience entry for other tabs).” This write only returns a view to its caller. Another member already viewing the PR keeps stale approvals and merge eligibility after approval or withdrawal. Publish a PR-scoped client event with an authorized audience; required-person setting changes need equivalent publication.

    2. Kunibert2026-11-15 15:08:53 UTC

      PR detail and Settings tabs now receive updates, but components/pulls.hl still has no listener. An already-open /pulls tab retains stale Merge eligibility after approval or withdrawal. Update that view too.

    3. Kunibert2026-11-15 15:57:48 UTC

      Fixed: /pulls now listens for approval and requirement changes and refreshes merge eligibility.

  7. tests/person-approval.mjs:175outdated · resolvedKunibert

    1. Kunibert2026-11-15 14:16:09 UTC

      🔹 Minor · Standards: F21: Exercise the approval flow with the keyboard

      .kunibert/HL-STANDARD.md F21 requires a real-browser test covering “keyboard use (Tab, Enter).” The new gate uses mouse clicks throughout and never exercises those keys. Add keyboard navigation and activation for selecting a required person, submitting the form, approving, and withdrawing.

    2. Kunibert2026-11-15 15:08:53 UTC

      Fixed: the browser gate now exercises Tab, Enter, and Space for submission, approval, and withdrawal.

  8. lib/prpage.hl:188outdated · resolvedKunibert

    1. Kunibert2026-11-15 15:08:51 UTC

      🔹 Minor · Correctness: no rule: Avoid rebuilding every PR after each requirement change

      Every requirement write now loads all repository PR records, then reads approvals and statuses and broadcasts a full snapshot for every open PR. PR history is unbounded, and recipients receive these snapshots before filtering by PR number. A small Settings change can therefore trigger substantial database work and network traffic. Broadcast one requirement invalidation and refresh only the PRs currently being viewed.

    2. Kunibert2026-11-15 15:57:48 UTC

      Fixed: requirement writes emit one invalidation; mounted pages fetch their own state.

  9. lib/api-helpers.hl:19outdated · resolvedKunibert

    1. Kunibert2026-11-15 15:08:51 UTC

      🔹 Minor · Standards: L10: Type every parameter in the extended signatures

      .kunibert/HL-STANDARD.md L10 says “Type every function parameter.” The modified apiError signature leaves status, code, message, and details untyped; lib/pullsync.hl:284 likewise leaves slug and n untyped in the extended pullObject signature. Add their declared types alongside the new optional parameters.

    2. Kunibert2026-11-15 15:57:49 UTC

      Fixed: apiError and pullObject now declare all parameter types.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.