Repository navigation
feat(harbor): add a read-only browser dashboard for the backlog - #60
Merged
Merged
Conversation
The captain wants to see tasks-axi's live backlog in a browser without any new record-keeping surface to maintain. bin/fm-harbor.sh (start/stop/status) and bin/fm-harbor.py (render/serve) read the backlog fresh through tasks-axi's own list command on every request and group it the way the captain thinks about it: waiting on him, in flight, queued/blocked, and a short done tail. Loopback-only, no auth, no cache, no scheduler - the page's own meta-refresh tag drives auto-refresh.
The gate runs each tests/*.test.sh directly rather than via bash, so the file needs its own execute bit like every other test script.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Intent
tasks-axibacklog, grouped the way he thinks about it: waiting on him, in flight, queued/blocked, and a short recent-done tail - no new record-keeping surface, since a related "logbook" ledger idea was explicitly scrapped for adding maintenance workload.tasks-axi list(never a second hand-rolled backlog parser) and renders directly, so there is no cache, no database, and nothing that can drift stale between reads.<meta http-equiv="refresh">tag, so the captain's browser reloads on its own and each reload re-runs the read. Rejected a static file regenerated on a timer - that needs a background regeneration loop for no benefit, since the backlog is small (tens of tasks) and a per-request read is already cheap.127.0.0.1, no bind flag, no env override) - the captain reaches it through his own SSH tunnel. The only configurable knob is--port.bin/fm-harbor.shownsstart/stop/status/render(a home-scoped singleton lock, mirroring the existing ClickStack receiver's lock pattern);bin/fm-harbor.pyowns the render (parsingtasks-axi's brace-headed pseudo-CSV list output, which needscsv.reader(doublequote=False, escapechar="\\")since its quoting is backslash-escaped rather than RFC4180) and the loopback HTTP server, so the render is defined exactly once and reused by bothrenderandserve.AGENTS.mdgets one pointer line in the backlog-contract section; the script's own header and--helpown the rest.What Changed
bin/fm-harbor.py(new): render + serve, stdlib-only.bin/fm-harbor.sh(new):start/stop/status/render/serveCLI wrapper, shellcheck-clean.tests/fm-harbor.test.sh(new): render-path grouping (captain-hold prominence, non-captain-hold exclusion from that group, blocked-by id resolved to the blocker's title, full bare PR URL, HTML-escaping), read-only guarantee, an absent-backlog render, the loopback/no-extra-knobs constraint, a live-server test proving atasks-axi donemid-session moves the task to "Recently done" on the next request with no restart, and the start/status/stop/singleton lifecycle.AGENTS.md: one-line pointer in the backlog contract section.Risk Assessment
Low. New, isolated files with no callers wired up elsewhere; nothing else reads or depends on them. Strictly read-only over the backlog and fleet state (no writes, confirmed by a checksum-based test). No watcher/supervision integration - it is a passive page the captain starts and stops himself.
Testing
bin/fm-lint.sh(shellcheck) - clean.tests/fm-harbor.test.sh- 6/6 pass, including a live loopback server exercised with realcurl/tasks-axi.bin/fm-test-run.sh --check-coverage- the new test lands in the portable-serial remainder automatically; partition still complete.bin/fm-doc-audience-check.sh- clean.chrome-devtools-axi), and screenshotted the "Waiting on you" section's visual prominence; completed a task viatasks-axi donemid-session and confirmed the page reflected it on the next load with no restart; confirmed double-start reports "already running" rather than opening a second port; confirmedstopleaves no process behind andstartworks again afterward.Full narrative / original brief
Epic E11.3: build the Harbor dashboard, a persistent, auto-refreshing front door the captain opens in a browser to see his tasks - the live tasks-axi backlog of this firstmate home. Captain's explicit scope ruling: he wants to see the tasks from tasks-axi; no new record-keeping surface. Harbor reads existing state only. One page on 127.0.0.1, grouped into in-flight, waiting-on-him, queued/blocked, and a short recent-done tail. Data source is tasks-axi's own read commands, never a second parser. Auto-refresh via the simplest honest mechanism, justified. No database, no build pipeline, no background daemon beyond one small long-running process with a clear start command. A tracked helper owns start/stop/status/render with its header/help owning the mechanics; AGENTS.md gets at most a one-line pointer. Captain-facing rendering rules: plain-English language, full bare PR URLs, no internal jargon in headings, hold reasons shown as recorded. Colocated tests covering the render path. Delivered fork-only, never upstreamed.