Skip to content

fix(awol): drop ambiguous LOA count from summary line#164

Merged
SyniRon merged 2 commits into
developfrom
fix/awol-summary-drop-loa-count
Jun 4, 2026
Merged

fix(awol): drop ambiguous LOA count from summary line#164
SyniRon merged 2 commits into
developfrom
fix/awol-summary-drop-loa-count

Conversation

@SyniRon

@SyniRon SyniRon commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What & why

Smoke-test of the merged #159 /awol surfaced an ambiguous summary line. The header read N total · M LOA, where M is the count of flagged troopers currently on an active LOA (the ⚪ rows). In practice 56 total · 0 LOA misreads as "no LOA accounting happened" — when LOA subtraction had in fact run across all users' history.

Fix: drop the count. Summary is now just N flagged on both the healthy and degraded paths. The ⚪ rows and the footer (AWOL days subtracts valid LOA days.) already convey LOA involvement, and the loud degraded footer (⚠️ … accountable-day adjustment SKIPPED …) still differentiates degraded mode — so LOA unknown in the summary was redundant too.

Changes

  • awolSummaryLine simplified to take only the flagged count (dropped loaCount + cacheHealthy params).
  • Removed the now-dead loaCount aggregation and its threading through runAwol/sendAwolFile/embed builder.
  • u.OnLOA()/loaWindow retained — they still drive the ⚪ glyph and [[LOA]] link; only the aggregate count is gone.
  • Degraded footer still fires on all three terminal paths (embed, file, empty-result) — verified by tests.
  • Embed-4096 regression guard re-sized for the shorter prefix and re-proven (revert→FAIL 4107 > 4096, fixed→PASS).

Verified live

Smoke build on develop connected to xenforo-db (5/5 nodes, 1458 windows / 774 users); this is the header copy from that exercise.

Gate

lint 0 · tidy clean · -race pass · floors OK (utils 90.6%, commands 83.3%) · build OK. Independently re-verified.

🤖 Generated with Claude Code

SyniRon and others added 2 commits June 4, 2026 16:28
Smoke-test feedback: "N total · M LOA" misreads as "M LOAs accounted"
when M is actually the count of flagged troopers currently on an active
LOA — "0 LOA" looked like LOA subtraction hadn't run. Drop the count
entirely; the ⚪ rows and the footer ("AWOL days subtracts valid LOA
days.") already convey LOA involvement. Summary is now "N flagged" on
both healthy and degraded paths; the loud degraded footer still
differentiates degraded mode, so "LOA unknown" in the summary was
redundant. Simplify awolSummaryLine to take only the flagged count.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The prior commit pushed the test changes but not the awol.go change — a
stray `git checkout` during local verification reverted awol.go before
commit, so the built binary still rendered "N total · M LOA". This
re-applies the source change: awolSummaryLine now takes only the flagged
count and renders "N flagged"; loaCount aggregation and its threading
through runAwol/sendAwolFile/the embed builder are removed. Gate green
(re-run as the final step pre-commit).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@SyniRon SyniRon merged commit cfc508c into develop Jun 4, 2026
2 checks passed
@SyniRon SyniRon deleted the fix/awol-summary-drop-loa-count branch June 4, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant