Cycle: v3/title_only_activity; Mode: one-shot; Record: this file; Index: plans index Debug mode: enabled (project marker .railspike_debug_on) Effort study: railspike-effort / v3/title_only_activity; cycle ledger; standing enrollment under protocol P2 Extended estimates: enabled (no real alternatives or work units; no unit estimates) Cycle estimate: 0.08 Status: implemented and verified locally; next permitted action: push and PR (merging and deploying are the maintainer's)

Predecessor: v3/thread_activity_drawer (merged #246) and v3/thread_activity_record_links.

Original request

2026-11-18: "can title: posts also go in the drawer please, one-shot pr"

Authorization

An explicit one-shot through to a pushed branch and an open PR. Merging and deploying are the maintainer's.

Outcome and work type

Application change. Normal entry: /threads/<id> with FORUM_THREAD_ACTIVITY_DRAWER_ENABLED on.

Outcome: a reply whose only content is a title: line (source unavailable), alone or with label hashtags, leaves the conversation for the Activity drawer under the same rules as a tag-only reply (unanswered leaves only, chains repeat). The drawer lists it as "e posted title: New name · date", or "e posted title: New name and tagged #meta · date".

Unchanged:

  • Only when FORUM_TITLE_DIRECTIVE_ENABLED is on; with it off, title: is ordinary text and the reply stays.

  • A reply with any other text, a second title: line (only the first takes effect), or a quoted > title: stays.

  • The write side, the reply's own page and the thread subject records.

Wording is "posted title:", not "retitled", because the page does not know whether the replier had authority; an unauthorized line still moves (it is still a reply that only says title: …).

Approach and risks

ThreadLabels::isTagOnly gains a sibling isTagOrTitleOnly sharing one private check, which also accepts exactly one unquoted line that TitleDirective::lineValue (split out of extract) reads as a title. TagOnlyLeafFilter::split and ThreadActivity::partition take a titleLines flag; the controller passes the title-directive flag through the thread template. Entries carry title; the partial prints it before any labels.

Risks:

  • Wrong replies hidden. Mitigation: same field guards as tag-only; unit cases for text, two titles and quoted lines.

  • Tag-only behaviour changes. Mitigation: isTagOnly keeps the old path (title lines not allowed); existing ThreadLabelsTest and drawer tests.

Reuse decisions

  • Rule: Support/ThreadLabels.php (one shared check) and Support/TitleDirective.php (line rule split out, no second regex).

  • Filter, entries, markup: ReadModel/TagOnlyLeafFilter.php, View/ThreadActivity.php, templates/partials/thread_activity_drawer.php; the existing "tagged" entry kind gets a title field rather than a new kind.

Completion conditions

  • With both flags on, a title-only leaf reply is in the drawer, not the conversation.

  • With the title directive flag off, it stays.

  • No schema change, rebuild or new dependency. Handoff: pushed branch and an open PR.

Concepts touched

Thread activity (changed: title-only replies join tag-only ones).

Verification and recovery plan

  • TagOnlyLeafFilterTest: title, title with tag, title with text, two titles, quoted; off by default.

  • ThreadActivityTest: entry carries title and labels; flag off keeps the reply.

  • Render the partial with title entries.

  • Smoke set plus changed tests; full suite not run, per AGENTS.md.

  • Recovery: the existing partition() fallback still shows every reply if building fails.

Starting revisions and branch

Host main at f5d53fa (merge of #338); branch feat/title-only-activity-drawer.

Planning commit

737edbd (plan and index entry only).

Dated execution history

  • 2026-11-18, order disclosure: I drafted and tested the implementation before writing this plan, which breaks the one-shot planning gate. To recover, I stashed the uncommitted implementation, committed the plan alone as 737edbd, then restored the stash. Nothing was backdated; the implementation lands in the completion commit after the plan.

  • No discoveries changed the approach. No enhancement requests.

Changes

  • Support/TitleDirective.php: lineValue() split out of extract(), same rule.

  • Support/ThreadLabels.php: isTagOrTitleOnly(); isTagOnly() and it share isBookkeepingOnly().

  • ReadModel/TagOnlyLeafFilter.php, View/ThreadActivity.php: titleLines parameter; entries carry title.

  • Http/ThreadAndPostPageController.php, templates/pages/thread.php: pass titleDirectiveEnabled.

  • templates/partials/thread_activity_drawer.php: "posted title: X", then "and tagged …" when there are labels.

  • Tests: TagOnlyLeafFilterTest::testTitleOnlyRepliesMoveOnlyWhenAsked, ThreadActivityTest::testTitleOnlyReplyBecomesTaggedEntryWithTitle.

  • Concept: thread activity.

Outcome

Delivered as scoped. Limitation: the drawer cannot tell whether the title: line took effect, so it says "posted title:" rather than "retitled".

Verification

  • Smoke set plus TagOnlyLeafFilterTest, ThreadActivityTest, ThreadLabelsTest, LocalWriteServiceTitleDirectiveTest, PostSignalsTemplateTest: 496 of 496 passed. The full suite was not run, per AGENTS.md.

  • Rendered the partial with a title-plus-label entry and a title-only entry (escaped title, profile and plain-name actors); output as expected.

  • No browser or theme check: the change adds text inside the existing list item, with no new markup, CSS or script.

  • No production check: that is the maintainer's after merge.

Final review

Reviewed 737edbd.. for scope and duplication: all files within the plan; the title regex lives only in TitleDirective. No feedback item matches, so no Feedback: trailer.

Commit/merge/publication status

Planning 737edbd; completion commit follows on feat/title-only-activity-drawer; push and PR in the handoff.

Study history

  • 2026-11-18T22:40Z, intake: 0.08. Not pristine and recorded late: I rated it after reading the drawer code and after a first implementation draft (see the execution history). Scope v1 as above. R1, P2, single exposed Claude rater.

  • 2026-11-18T22:55Z, closeout: retrospective 0.08 (not a measured actual). Scope v1 delivered unchanged. Full suite and maintainer judgment pending; no accepted-count increment.

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