gitoria

kunibert-proof

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#2HL-STANDARD check: counter component

openhl-standard-check → mainby Kunibert · head a2fa4dee

  • failureKunibert: kunibertKunibert review

Verdicts

  • Kunibertrequested changes

People’s approvals

Reviews

  1. Kunibertapprequested changesa2fa4dee · current head · 2026-11-13 11:35:12 UTC

    All six open threads remain unresolved in the current head. No new findings were identified; the outstanding correctness and standards issues still require changes.

    Correctness (0 new, 2 still open)

    T1 and T2 remain valid: saved starts as null and is read without a guard, and both click-only spans lack keyboard access.

    Still open from earlier rounds:

    • T1 components/counter.hl:18 Guard saved before rendering the average
    • T2 components/counter.hl:17 Use keyboard-accessible controls

    Spec (0 new, 0 still open)

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

    Standards (0 new, 4 still open)

    T4–T7 still violate L2, L5, L1 and F6 respectively. The controls covered by T2 also violate F1–F3.

    Still open from earlier rounds:

    • T4 components/counter.hl:4 L2: Remove let from the unchanged label
    • T5 components/counter.hl:8 L5: Handle parsing failures with a value form
    • T6 components/counter.hl:9 L1: Remove the statement-ending semicolon
    • T7 components/counter.hl:19 F6: Use framework navigation for Home

    Gates: not run

  2. Kunibertapprequested changesa2fa4dee · current head · 2026-11-09 19:53:24 UTC

    All six open threads remain unresolved on the current head. No new findings were identified, but the existing correctness issues still require changes.

    Correctness (0 new, 2 still open)

    The unguarded read of initially null saved and the keyboard-inaccessible controls remain unresolved.

    Still open from earlier rounds:

    • T1 components/counter.hl:18 Guard saved before rendering the average
    • T2 components/counter.hl:17 Use keyboard-accessible controls

    Spec (0 new, 0 still open)

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

    Standards (0 new, 4 still open)

    L1, L2, L5 and F6 violations remain unresolved; F1–F3 also apply to the controls already covered by T2.

    Still open from earlier rounds:

    • T4 components/counter.hl:4 L2: Remove let from the unchanged label
    • T5 components/counter.hl:8 L5: Handle parsing failures with a value form
    • T6 components/counter.hl:9 L1: Remove the statement-ending semicolon
    • T7 components/counter.hl:19 F6: Use framework navigation for Home

    Gates: not run

  3. Kunibertapprequested changesa2fa4dee · current head · 2026-11-09 05:19:06 UTC

    Changes are still required for the null access, inaccessible controls and documented standards violations. Six threads remain open; T3 is withdrawn because L10 explicitly permits these inferred member types.

    Correctness (0 new, 2 still open)

    The initial render dereferences null, and both clickable spans lack keyboard access. T1 and T2 remain open.

    Still open from earlier rounds:

    • T1 components/counter.hl:18 Guard saved before rendering the average
    • T2 components/counter.hl:17 Use keyboard-accessible controls

    Spec (0 new, 0 still open)

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

    Standards (0 new, 4 still open)

    L1, L2, L5, F1, F2, F3 and F6 remain violated, as covered in the existing threads. The declarations comply with L10.

    Still open from earlier rounds:

    • T4 components/counter.hl:4 L2: Remove let from the unchanged label
    • T5 components/counter.hl:8 L5: Handle parsing failures with a value form
    • T6 components/counter.hl:9 L1: Remove the statement-ending semicolon
    • T7 components/counter.hl:19 F6: Use framework navigation for Home

    Gates: not run

  4. Kunibertapprequested changesa2fa4dee · current head · 2026-11-09 05:01:23 UTC

    The average still reads saved.total while saved is null, and the controls remain inaccessible by keyboard. Five additional HL-standard violations need correction.

    Correctness (0 new, 2 still open)

    Both existing correctness issues remain unresolved, including the unsafe initial rendering of the average.

    Still open from earlier rounds:

    • T1 components/counter.hl:18 Guard saved before rendering the average
    • T2 components/counter.hl:17 Use keyboard-accessible controls

    Spec (0 new, 0 still open)

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

    Standards (5 new, 0 still open)

    Found L1, L2, L5, L10 and F6 violations. The F1–F3 control violations remain covered by T2.

    Gates: not run

  5. Kunibertapprequested changesa2fa4dee · current head · 2026-11-09 04:54:27 UTC

    The average uses null state during initial rendering, and both controls lack keyboard access. No spec or documented standards findings apply.

    Correctness (2 new, 0 still open)

    Found an unguarded read of null state and inaccessible interactive controls.

    Spec (0 new, 0 still open)

    No ticket or issue is linked for the component’s behavior, so there are no spec findings.

    Standards (0 new, 0 still open)

    No applicable standards documents were found at the repository root or in components, so no documented-rule violations were established.

    Gates: not run

Threads

  1. components/counter.hl:18Kunibert

    1. Kunibert2026-11-09 04:54:27 UTC

      🔶 Major · Correctness: Guard saved before rendering the average

      saved starts as null, and the parse-error handler also assigns null, but this expression unconditionally reads saved.total. Rendering before a successful load therefore fails. Render a fallback until saved contains a validated total.

    2. Kunibert2026-11-09 05:01:23 UTC

      Still valid: saved starts as null, and line 18 reads saved.total before any load call. Guard the initial and failed-load states before rendering the average.

    3. Kunibert2026-11-09 05:19:06 UTC

      Still present at components/counter.hl:18: saved starts null, so the first render dereferences saved.total before load runs. Guard the average until saved contains validated data.

    4. Kunibert2026-11-09 19:53:24 UTC

      Still unresolved: saved starts as null and is reset to null after parsing fails, but line 18 reads saved.total unconditionally. Guard saved before rendering the average.

    5. Kunibert2026-11-13 11:35:12 UTC

      Still present at components/counter.hl:18: saved starts as null on line 5, and the View reads saved.total unconditionally. Guard saved and render a fallback until valid data is available.

  2. components/counter.hl:17Kunibert

    1. Kunibert2026-11-09 04:54:27 UTC

      🔹 Minor · Correctness: Use keyboard-accessible controls

      Add and Home (line 19) are spans with only click handlers, so they cannot receive keyboard focus or activation. Use a button for Add and an anchor with href for Home.

    2. Kunibert2026-11-09 05:01:23 UTC

      Still valid: Add and Home remain click-only spans. Use a button with type="button" for Add and a link with href="/" for Home, as required by .kunibert/HL-STANDARD.md F1–F3.

    3. Kunibert2026-11-09 05:19:06 UTC

      Still present at components/counter.hl:17 and :19. Use a button with type = 'button' for Add and an anchor with href = '/' for Home. This also violates .kunibert/HL-STANDARD.md F1 ('Going somewhere is a link with a real address'), F2 ('Doing something is a button') and F3 ('No on click on ... span').

    4. Kunibert2026-11-09 19:53:24 UTC

      Still unresolved: Add and Home remain click-only spans. Use a button with type = "button" for Add and a link with href = '/' for Home. .kunibert/HL-STANDARD.md F1 requires a “link with a real address,” F2 requires a button for actions, and F3 prohibits on click on span.

    5. Kunibert2026-11-13 11:35:12 UTC

      Still present at components/counter.hl:17 and :19. .kunibert/HL-STANDARD.md requires navigation to be “a link with a real address” (F1), actions to use a “button with type = "button"” (F2), and forbids on click on span (F3). Use a button for Add and a link with href="/" for Home.

  3. components/counter.hl:3resolvedKunibert

    1. Kunibert2026-11-09 05:01:23 UTC

      🔹 Minor · Standards: L10: Declare the known member types

      .kunibert/HL-STANDARD.md L10 says “Declare known types.” Both count and label omit their known types; declare them as Number and String respectively.

    2. Kunibert2026-11-09 05:19:06 UTC

      Withdrawn: .kunibert/HL-STANDARD.md L10 explicitly says, 'An untyped member with a literal or null initializer is not a finding.' These declarations require no explicit types.

  4. components/counter.hl:4Kunibert

    1. Kunibert2026-11-09 05:01:23 UTC

      🔹 Minor · Standards: L2: Remove let from the unchanged label

      .kunibert/HL-STANDARD.md L2 says “Use let only for a name reassigned later.” label is never reassigned; use a plain declaration.

    2. Kunibert2026-11-09 05:19:06 UTC

      Still present at components/counter.hl:4. .kunibert/HL-STANDARD.md L2 says, 'Use let only for a name reassigned later'; label is never reassigned. Remove let.

    3. Kunibert2026-11-09 19:53:24 UTC

      Still unresolved: label is never reassigned. .kunibert/HL-STANDARD.md L2 says “Use let only for a name reassigned later”; remove let.

    4. Kunibert2026-11-13 11:35:12 UTC

      Still present at components/counter.hl:4. .kunibert/HL-STANDARD.md L2 says “Use let only for a name reassigned later”; label is never reassigned. Remove let.

  5. components/counter.hl:8Kunibert

    1. Kunibert2026-11-09 05:01:23 UTC

      🔹 Minor · Standards: L5: Handle parsing failures with a value form

      .kunibert/HL-STANDARD.md L5 requires expected failures to use value forms, “never try/catch/throw.” Replace this parsing try/catch with JSON.tryParse and handle its failure value.

    2. Kunibert2026-11-09 05:19:06 UTC

      Still present at components/counter.hl:8. .kunibert/HL-STANDARD.md L5 requires value forms or on Error(e), 'never try/catch/throw'. Replace this parsing block with JSON.tryParse and handle its result.

    3. Kunibert2026-11-09 19:53:24 UTC

      Still unresolved: load uses try/catch. .kunibert/HL-STANDARD.md L5 requires expected failures to use “value forms” or “on Error(e)”; use JSON.tryParse and handle its failure result.

    4. Kunibert2026-11-13 11:35:12 UTC

      Still present at components/counter.hl:8–12. .kunibert/HL-STANDARD.md L5 requires expected failures to use value forms, “never try/catch/throw”. Replace this parsing try/catch with JSON.tryParse and handle its result.

  6. components/counter.hl:9Kunibert

    1. Kunibert2026-11-09 05:01:23 UTC

      🔹 Minor · Standards: L1: Remove the statement-ending semicolon

      .kunibert/HL-STANDARD.md L1 says “Do not end a statement with ;”. Remove the semicolon after JSON.parse(text).

    2. Kunibert2026-11-09 05:19:07 UTC

      Still present at components/counter.hl:9. .kunibert/HL-STANDARD.md L1 says, 'Do not end a statement with ;'. Remove the trailing semicolon.

    3. Kunibert2026-11-09 19:53:24 UTC

      Still unresolved: line 9 retains its trailing semicolon. .kunibert/HL-STANDARD.md L1 says “Do not end a statement with ;”; remove it.

    4. Kunibert2026-11-13 11:35:13 UTC

      Still present at components/counter.hl:9. .kunibert/HL-STANDARD.md L1 says “Do not end a statement with ;”. Remove the trailing semicolon.

  7. components/counter.hl:19Kunibert

    1. Kunibert2026-11-09 05:01:23 UTC

      🔹 Minor · Standards: F6: Use framework navigation for Home

      .kunibert/HL-STANDARD.md F6 requires internal navigation through navigate, “never location.assign”. This call forces a full document reload; use hl:web navigation, which is already imported.

    2. Kunibert2026-11-09 05:19:07 UTC

      Still present at components/counter.hl:19. .kunibert/HL-STANDARD.md F6 requires navigate for internal pages, 'never location.assign'. Replace the direct location call with the framework-handled Home link described in T2.

    3. Kunibert2026-11-09 19:53:25 UTC

      Still unresolved: Home calls window.location.assign('/'). .kunibert/HL-STANDARD.md F6 requires internal navigation “with navigate, never location.assign”; use navigate('/') if retaining imperative navigation.

    4. Kunibert2026-11-13 11:35:13 UTC

      Still present at components/counter.hl:19. .kunibert/HL-STANDARD.md F6 requires “navigate, never location.assign”. Use a real Home link so hl:web handles navigation.

Conversation

Nobody has written here yet.

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