Cycle: v3/backlog_item_viewer; Mode: one-shot; Record/index: plans index. Follows the backlog view and its follow-ups, tracked in the backlog checklist.

Debug mode: enabled (project marker .railspike_debug_on)

Effort study: railspike-effort / v3/backlog_item_viewer; host ledger backlog_item_viewer.md. Standing P2 enrollment.

Extended estimates: enabled. No alternatives or work units, so no unit estimates.

Cycle estimate: 0.30

Status: implemented and committed; next permitted action: maintainer review (PR).

Feedback item: none matches. A search of docs/feedback/items/ for viewer, source file and GitHub links found nothing about item pages. The closest is PF-20261123-F01, the backlog page itself, which is done. This record does not reopen it, so commits carry no Feedback: trailer.

Original request (maintainer, 2026-11-29): "for the backlog page, we currently link to github for the source file, can we please make a built-in viewer for the files so they can be presented better? example urls: https://zenmemes.com/backlog https://github.com/gulkily/v3/blob/main/docs/feedback/items/PF-20261021-F09.txt"

Authorization: the request asks for the viewer to be made. Claude chose one-shot because the outcome is one page with a clear boundary and no approach needs the maintainer's choice. Exclusions: no change to item files, their format or ./v3 feedback; no editing from the page; no change to claims, prompts or the list's order and filters; no offline web app work. Merging and deploying are the maintainer's.

Outcome and work type: application change.

  1. Each item gets a page at /backlog/<ID>. It shows the title as the heading, the item's values (workflow, kind, ID, created, touched, effort, impact, evidence, aliases), then Request, Done when, Sources and Notes as readable text.

  2. On the page, links work: source URLs, bare URLs, other item IDs (to their own page), and repository paths. A path under docs/ goes to the on-site Platform Docs page; another path goes to the repository on GitHub when the site has a repository address.

  3. An open item has a Start link to /backlog/start?items=<ID>. A closed item has none. On a site with a claims thread, the page shows who holds the item.

  4. /backlog/<ID>.txt returns the file's bytes as plain text, for agents, in the way /backlog.txt goes with /backlog.

  5. The ID on each list row and on the start page links to the item page instead of GitHub. The item page keeps a small link to the file on GitHub when the repository is on GitHub.

  6. Both routes follow FORUM_BACKLOG_ENABLED like the other backlog routes. An unknown or malformed ID gives Not Found.

Approach and reuse decisions:

  • Parsing: FeedbackItemCheck already splits an item into headers and sections, but FeedbackItem keeps only Notes. Add the other sections to FeedbackItem as one optional constructor argument, so there is still one parser. Existing callers and tests keep working.

  • Text: PublicMarkdownRenderer::renderPost() with tag links off already escapes text, renders backticks, lists and line breaks, and links bare URLs safely. Reuse it for each section. A small step after it links item IDs and repository paths in text outside tags, using PlatformDocsCatalog::routeForPath() for docs/ paths and SourceRepository for GitHub.

  • Page: a new template backlog_item.php in BacklogPageController, next to list() and start(). It reuses the list's chip, meta line and card classes and backlog.css; claim lines come from BacklogClaims::lines() as on the list.

  • Text route: served beside the other backlog .txt routes in Application.php, with Cache-Control: no-cache.

  • Not reused: /source/current/ and /source/blob/ serve canonical records from the data repository, not the code checkout, and only as plain text. /docs/feedback/items/<ID>.txt shows the raw file in a <pre>, which is what the request wants improved.

Risks:

  • Repository-path links could match inside generated markup. Impact: a broken attribute. Early validation: the linking step skips text inside tags, and paths preceded by / (inside URLs) are left alone; a test feeds a note with a URL, a path in backticks and an ID. Mitigation: one combined pass, so a link is never relinked.

  • Long notes on a phone. Impact: sideways scrolling. Early validation: browser check at 375 px with the longest real notes and a long unbroken word. Mitigation: wrap long words in the item card.

  • An item file that fails ./v3 feedback check is not loaded. Impact: its page is Not Found while the file exists. Accepted: the list already leaves such files out, and the check reports them.

Completion conditions: with the Backlog flag on, Tools → Backlog, tap an item's ID: the item page opens with its title, values and sections, and its links work. Start on the page opens the start page for that item. /backlog/<ID>.txt gives the file's bytes. A closed item has a page but no Start. Deploy with Deploy now; no schema change, no new flag.

Concepts touched: Backlog view (changed: each item has its own page and text address).

Verification and recovery plan: ./v3 test --smoke BacklogPageTest FeedbackBacklogTest BacklogClaimsTest; extend tests/browser/backlog.mjs to open an item page from the list at 375 and 1280 px in every permitted theme, with JavaScript and without it; ./v3 feedback check; git diff --check. Full suite not run. Recovery: the page is read-only; if it fails, the .txt address and the file in the repository still give the item.

Starting revisions and branch: feat/backlog_item_viewer from origin/main 41e5e9231 (the #478 merge), rebased onto 463b806 (the #477 merge) before pushing; the page and smoke tests were rerun there and passed.

Planning commit: d1613eb (plan and index entry only, before any implementation; first made as 4c1c1b6 on 41e5e9231, then rebased).

Study history:

  • 2026-11-29 UTC, intake and execution entry: 0.30. Recorded after inspecting the backlog controller, templates, the item parser, the source and docs routes and the Markdown renderer, so not a clean intake. Claude, single exposed rater. Scope v1. Reference R1, hashes not re-verified.

Dated execution history:

  • 2026-11-29: FeedbackItem gains sections and section(); FeedbackItemCheck passes every section it already parsed. Existing callers keep the four-argument form. Addition.

  • 2026-11-29: New BacklogItemText: html() runs PublicMarkdownRenderer::renderPost() with tag links off, then links known item IDs and checkout paths in text outside links. docs/ paths and the root documents go through PlatformDocsCatalog::resolveLink(); other files that exist go to GitHub when the repository is there; anything else stays text. sources() links URL lines and keeps Session: lines as text. Addition.

  • 2026-11-29: BacklogPageController::item(), itemText() and itemHref(); new template backlog_item.php (title, chip, ID, text and GitHub links, claim lines with Release, the values in the shared record-fields list, the sections, and a Start form for open items). Start sends ?items=<ID>, the tidy start address, and sets the same claim intent as Start on the list. backlog.css gains the item styles. Addition.

  • 2026-11-29: Routes /backlog/<ID> and /backlog/<ID>.txt in Application.php, behind FORUM_BACKLOG_ENABLED, added to isApplicationRoute(). The list row ID and the start page ID now link to the item page; the list no longer builds GitHub file links. llms.txt names the text address. Change.

  • 2026-11-29: Tests: BacklogItemTextTest (new), two BacklogPageTest methods, and the readable-link check widened for item pages. tests/browser/backlog.mjs opens an item from a row with and without scripts, starts from it, checks a closed item, note links and the text address, and adds two item pages to the theme matrix. Addition.

  • 2026-11-29: Correction during verification: the browser script's first run crashed inside Node's fetch after a 404 whose body was not read. The script now reads each body. Not an application fault: the PHP response was ordinary.

Enhancement requests: none during the cycle.

Outcome: delivered as planned, all six points. Limitations: an item file that fails ./v3 feedback check has no page (it is not on the list either). Paths are linked only when the file exists in the site's checkout. The page reads the deployed checkout, so it is as fresh as the last deploy, like the list.

Verification:

  • Passed: ./v3 test --smoke BacklogPageTest BacklogItemTextTest FeedbackBacklogTest BacklogClaimsTest LlmsTxtRendererTest, 556 run, 556 passed.

  • Passed: CHROMIUM_PATH=/usr/bin/google-chrome node tests/browser/backlog.mjs: the whole existing flow plus the item checks, and 368 theme, width and script cases with no sideways overflow. Screenshots of the item page in Gloss, Word97, Midnight, Bubblegum, Arena and Vapor at 375 and 1280 px were looked at: values, sections and Start read well, and a long unbroken word in the notes wraps.

  • Passed: ./v3 feedback check (392 items, 0 problems); git diff --check.

  • Passed, by hand: the real PF-20261021-F09 rendered from this checkout; its three docs/plans/ paths link to Platform Docs and templates/partials/query_action.php to GitHub.

  • Not run: the full suite (./v3 fulltest), per AGENTS.md.

  • Pending: the maintainer opening an item from Tools → Backlog on zenmemes.com after deploy.

Final review: the diff reuses the post renderer, the docs link resolver, the record field list, the backlog card, chip, meta and Start bar, and the release partial. Only the ID and path linking is new. Files changed are within the recorded scope plus the record, index, checklist line, concept entry and ledger. The concept entry Backlog view describes the item page and the text address.

Commit/merge/publication status: completion commit 20d3054 (implementation and this record); this hash update is a record-only commit. Branch feat/backlog_item_viewer, pushed for a PR; not merged, not deployed.

Study history (closeout): 2026-11-29 UTC, retrospective scope assessment 0.30, scope v1 unchanged. Claude, single exposed rater. Maintainer comfortable-fit judgment pending.

— Claude · 2026-11-29 UTC · Model: claude-opus-5-5

— Closeout by Claude · 2026-11-29 UTC · Model: claude-opus-5-5