Cycle: v3/post_location; Mode: one-shot; Record: this file; Index: plans index; Request thread: Location on any post, not only photos and events Debug mode: enabled (project marker .railspike_debug_on) Effort study: railspike-effort / v3/post_location; host ledger post_location.md; standing P2 enrollment Extended estimates: enabled (no real alternatives or work units; no unit estimates) Cycle estimate: 0.3 Status: implemented; PR pending (merge and deploy: see Commit status)

Storage changes: none. The location is a line in the signed post body; no read-model table, column or index.

Original request

2026-12-04, by voice while driving. Ilya asked Claude to post his precise location to the drive-log thread. Without an image the site has nowhere to put a location, so the post said "mile marker 69.8 on I-84 east". Claude filed the idea as a thread; Ilya asked whether it could be built now, as a one-shot "with a few questions". Asked whether a post's location should be coordinates or a place name and whether it should link to a map, he answered: "start with the same thing that the image feature does."

Authorization

"Yes, please" to starting the cycle, and the one-shot mode. The image feature's photo location is the model: a readable signed line holding latitude and longitude, shown under the content as text, no map link.

Excluded: a map link, place names, reverse geocoding, a route map of a thread, an "Add my location" control in the browser composer (follow-up), merging and deploying (the maintainer reviews by merging and trying it in production).

Outcome and work type

Application change. Normal entry: an agent posts with quill.py thread|reply --location "LAT LON", or anyone writes the line by hand.

  • A post body may hold one Post-Location: LAT LON line on its own line, in the format of Photo-Location (decimal degrees, latitude then longitude, space-separated).

  • Thread, reply and item pages show it where the line was, as Location 41.8030° N, 72.5460° W, formatted the way photo details format their location.

  • Titles and excerpts leave it out.

  • A malformed or out-of-range line, or a second one, stays ordinary text.

  • Behind a new flag, FORUM_POST_LOCATION_ENABLED ("Post location", Rendering, default on: it only changes how an existing line is shown). With it off the line shows as text, as today.

Approach and risks

  • Rendering hooks into MediaEmbedRenderer::render, which already splits the body around Audio-v1 and Image-v1 lines and renders each side. The location line is split the same way.

  • Risk: a post that mentions the line as an example (this cycle's own thread did) gets rendered as a location. Mitigation: only a whole line in the exact format counts; prose around it does not.

  • Risk: the line leaks into titles. Mitigation: ThreadTitle strips it, with a test.

Reuse decisions

  • Format and display: ImageReference::photoDisplay's Location formatting is moved into a public helper both use, so the two never drift.

  • Rendering: the existing split-and-render pattern in MediaEmbedRenderer::render and the post-photo-details styles' meta label; no new card component.

  • Client: quill.py's existing body handling; the option appends one line before signing.

  • Flag: FeatureFlagRegistry, as every rendering flag.

Completion conditions

  • End to end: quill.py reply --location "41.80296 -72.54595" posts a reply whose page shows Location 41.8030° N, 72.5460° W, not the raw line.

  • Recovery: a bad --location value is refused by quill.py before anything is signed, with the expected format in the message.

  • Release: PR merged and deployed by the maintainer.

Concepts touched

New concept page docs/concepts/post_location.md; Photo details gains a link.

Verification and recovery plan

New PostLocationTest (parsing, rendering, flag off, titles); quill.py --location check; smoke set plus MediaEmbedRendererTest, ImageReferenceTest if present, FeatureFlagEvaluatorTest. Full suite not run (maintainer runs it).

Starting revision and branch: feat/post-location from 5ec6f61. Planning commit: 9b7236c.

— Claude · 2026-12-04 UTC · Model: claude-opus-5-5

Dated execution history

  • 2026-12-04: ImageReference::coordinatesDisplay() now holds the LAT LON → 41.8030° N, 72.5460° W formatting; photoDisplay calls it, so photo and post locations read the same.

  • 2026-12-04: New ForumRewrite\Support\PostLocation (fromBody, withoutLine, line). Correction to the plan: the location shows under the post's content rather than where the line was. Rendering in place would split the body in two, and a second valid line in either half would then render too; one line under the content is simpler and is how a single photo detail reads.

  • 2026-12-04: MediaEmbedRenderer::render handles the line first, before audio and images, and renders the rest of the body once; TemplateRenderer sets MediaEmbedRenderer::$postLocationEnabled from the flag, as it does for audio. ThreadTitle strips the line.

  • 2026-12-04: FORUM_POST_LOCATION_ENABLED ("Post location", Rendering, default on). quill.py --location "LAT LON" (comma also accepted) appends the line before signing, refuses a body that already has one and refuses a bad value before anything is signed; --resume refuses it like other content options. llms.txt mentions it. quill.php has no matching option yet (follow-up).

  • 2026-12-04: Styles: .post-location, one quiet line like a single photo detail.

  • Follow-ups (not built): an "Add my location" control in the browser composer (geolocation, opt-in per post); quill.php --location; the offline reader shows the raw line until it learns the format.

Outcome

Delivered as planned, with the placement correction above. Limitations: browser composer and quill.php have no control for it yet; the offline reader shows the line as text.

Verification

  • ./v3 test --smoke PostLocationTest MediaEmbedRendererTest ThreadTitleTest FeatureFlagEvaluatorTest LlmsTxtRendererTest QuillClientTest: 588 run, 587 passed; the one failure was FeatureFlagEvaluatorTest::testRegistryListsCurrentPublicFlags, which lists every flag in order and needed the new one. Fixed; that test and PostLocationTest then passed (28 of 28).

  • PostLocationTest covers parsing (whole line only, first only, range, place names refused), rendering with the flag on and off, Markdown posts, titles, and quill.py's location_line.

  • Not run: the full suite; a browser check of the rendered line; the end-to-end post on a live site, pending deploy.

Final review

Diff checked: one shared coordinate formatter, no second copy; no read-model change; files limited to the plan's scope plus the concept page and the flag-list test.

Commit/merge/publication status

Completion commit: pending at time of writing. PR, merge and deploy follow.

— Claude · 2026-12-04 UTC · Model: claude-opus-5-5