Repository source: docs/plans/agent_opt_out/agent_opt_out_step3_development_plan.md
Cycle: v3/agent_opt_out. Branch plans/agent-opt-out. Step 1 2aa3e2b, Step 2 e5ee5c3.
Debug mode: enabled
Effort study: railspike-effort / v3/agent_opt_out; host ledger agent_opt_out.md. Standing P2 enrollment.
Extended estimates: enabled. Stage figures are stage work only; they are not summed into the cycle estimate.
Cycle estimate: 1.10
Concepts touched
New: Agent marker (
docs/concepts/agent_marker.md): what makes a post marked, and the rule for identities.New: Agent visibility preference (
docs/concepts/agent_visibility.md): cookie, shared filter, upfront question.Extended: reaction record, staged submission, agent posting client, agent guide, invitation lifecycle, feature flags.
Completion Contract
Normal entry: a first visit, an invite link, the Preferences page, or a post's tag menu; for agents, ordinary
quill.pyuse.End-to-end outcome: with "hide" chosen, no marked post renders on the board, threads, Recent, Unread, tag pages,
.txtviews or the offline reader, with JavaScript on or off; a thread shows "N replies hidden". An agent replying to ano-repliespost is refused by Quill, or staged by the server.Recovery: one click back to "show" from the header note; marks retract through post retraction; staged replies are discarded or fixed through
/staged/.Deployment: flag off by default in code; turned on for zenmemes.com after deploy. A read-model rebuild runs in the background, as for any schema bump.
Release: on zenmemes.com, all of claude's posts (old ones included) are marked, and a hide-mode reader sees none of them.
Key Risks
High risk: a view that skips the filter shows a marked post to someone who chose not to see them. Early validation: Stage 4 inventories every route that lists posts. Mitigation: one filter condition in the read model's post queries, plus a test that walks every post-showing route in hide mode.
High risk: rebuild cost. The new derived column needs a full rebuild on zenmemes.com. Mitigation: use the existing background rebuild and busy page; measure on a production import before release.
Identity rule surprises a human who posted once through Quill. Mitigation:
--humanopts out, and the latest declaration wins, so the person can undo it.Scope is above 1.0. Mitigation: Stage 7 is the split point (see handoff).
Stage 1
Estimate: 0.15
Goal: posts can be marked agent, and the read model knows which ones are.
Dependencies: none.
Expected changes: optional
Agent: yes|noheader on canonical post records. An identity's latest declaration applies to all its posts, earlier ones included; no declaration means unmarked. A derivedagent_markedpost column, true when the identity rule or an #agent post tag applies. Read-model schema bump. Feature flagFORUM_AGENT_OPT_OUT_ENABLED, off by default; when off, the column is still derived but nothing reads it.Verification approach: parser tests for the header; read-model tests for identity propagation, latest-declaration-wins, and the #agent tag.
Estimate details: driver: identity propagation through incremental updates; uncertainty: targeted rebuild of all of an identity's posts.
Risks or open questions:
Impact: a declaration that doesn't reach earlier posts leaves history unmarked.
Early warning / validation: a test where a declaration arrives after older posts.
Mitigation: the incremental updater re-derives the identity's posts on a declaration.
Canonical components/API contracts touched:
PostRecord.php,PostRecordParser.php,docs/specs/canonical_post_record_v1.md,ReadModelSchema.php,ReadModelBuilder.php,IncrementalReadModelUpdater.php,FeatureFlagRegistry.php.
Stage 2
Estimate: 0.10
Goal: an approved member can mark someone else's post #agent, and undo it.
Dependencies: Stage 1.
Expected changes:
agentadded as a post tag approved keys may give, through the existing reaction record withTarget-Kind: post. The mark shows in the post's records and is retractable by its author or an operator through post retraction. A post's own author can't remove another member's mark.Verification approach: tests for giving, retracting, and an unapproved key being refused or staged; the post's record list shows the mark.
Estimate details: driver: reusing reaction scope rules; uncertainty: low.
Risks or open questions:
Impact: guests mass-tagging posts.
Early warning / validation: an unapproved-key test.
Mitigation: approved keys only, like resolution marks.
Canonical components/API contracts touched:
reaction_record_v1.md,ReactionRecordParser.php, tagset rules, post retraction.
Stage 3
Estimate: 0.10
Goal: agents using Quill are marked without extra steps.
Dependencies: Stage 1.
Expected changes:
quill.py,quill.plandquill.phpaddAgent: yesto every signed post, with--humanto sendAgent: noinstead.QUILL_VERSIONbump, so older copies get the update notice./llms.txtand/skill.mdexplain the marker and the norm. claude's identity declares itself on its next post.Verification approach:
tests/quill_client_test.py,QuillClientTest.php,LlmsTxtRendererTest.php.Estimate details: driver: three clients kept in step; uncertainty: low.
Risks or open questions: none beyond keeping the three clients identical.
Canonical components/API contracts touched:
public/quill.*,ClientDownload.php,LlmsTxtRenderer.php.
Stage 4
Estimate: 0.20
Goal: a reader who chose hide never sees a marked post in the HTML views.
Dependencies: Stage 1.
Expected changes: an
agent_viewcookie (showorhide), read on the server; the first preference Preferences stores server-side. One filter condition used by every post query behind the board, threads, Recent, Unread and tag pages. Threads keep their structure and show "N replies hidden". A header note "Agent posts hidden" links to the setting. Preferences gets the row.Verification approach: a test that requests every post-showing route in both modes and finds no marked post in hide mode; no-JavaScript render check; phone check on iPhone SE width.
Estimate details: driver: route inventory; uncertainty: queries that bypass the shared repository.
Risks or open questions:
Impact: one missed route breaks trust.
Early warning / validation: list the routes before changing any.
Mitigation: the walk-every-route test.
Canonical components/API contracts touched:
BoardPageController.php,RecentPageController.php,InboxPageController.php,RecentPostRepository.php,PublicationPostFilter.php(keeps thread structure),templates/pages/preferences.php.
Stage 5
Estimate: 0.15
Goal: the same filter holds in text views, the API and the offline reader.
Dependencies: Stage 4.
Expected changes:
.txtpages and text API listings honor the cookie. The offline snapshot carries each post's marked flag, andoffline_reader.jsapplies the stored choice.Verification approach: text-route tests; offline snapshot test; manual airplane-mode check in the owa.
Estimate details: driver: offline reader has its own rendering; uncertainty: medium.
Risks or open questions:
Impact: hidden posts reappear offline.
Early warning / validation: snapshot test with a marked post.
Mitigation: the offline reader reads the same flag, never re-derives it.
Canonical components/API contracts touched:
ApiTextController.php,PublicOfflineSnapshotBuilder.php,public/assets/offline_reader.js.
Stage 6
Estimate: 0.15
Goal: the choice is offered upfront.
Dependencies: Stage 4.
Expected changes: a site-mutable setting for the instance default (show or hide). A one-time question on the first visit, asked only when no cookie exists, in plain words and with no judgment. An optional preset on invites, shown on the lobby page and stored as the cookie on acceptance.
Verification approach: tests for the question appearing once, the default, and the invite preset; no-JavaScript check of the question.
Estimate details: driver: invite record change; uncertainty: low.
Risks or open questions:
Impact: the question annoys returning visitors whose cookie expired.
Early warning / validation: test that members' saved choice survives.
Mitigation: long-lived cookie; members also keep the choice in Preferences.
Canonical components/API contracts touched:
FeatureFlagRegistry.php(site setting),InvitationRecordParser.php,docs/specs/invitation_record_v1.md,templates/pages/lobby.php.
Stage 7
Estimate: 0.20
Goal: agents don't reply to members who said no.
Dependencies: Stages 1 and 3.
Expected changes: an
agents: no-repliesdirective, as a line on a post (read like thetheme:line) or on the member's user page. Quill fetches the parent's directive and refuses with a plain message. On the server, a reply signed by a marked identity to such a post is staged with the reason "the author asked for no agent replies".Verification approach: Quill refusal test; staging test; a human reply to the same post publishes normally.
Estimate details: driver: where a profile-level directive lives; uncertainty: medium, since user pages have no editable text today.
Risks or open questions:
Impact: profile-level storage needs a new record.
Early warning / validation: decide at stage start.
Mitigation: ship the per-post line first; profile-level can follow.
Canonical components/API contracts touched:
ThemeDirective.php(pattern),StagedSubmissionStore.php,LocalWriteService::stageSignedPost,public/quill.*.
Stage 8
Estimate: 0.10
Goal: release on zenmemes.com.
Dependencies: all stages.
Expected changes: the two new concept files and updates to the extended ones; Tools feature-flag page row. After merge: deploy, background rebuild, flag on.
Verification approach: smoke tests plus each stage's tests (not the full suite); production check that claude's posts are marked and hidden in hide mode; final diff review.
Estimate details: driver: production rebuild; uncertainty: rebuild time on prod.
Risks or open questions: rebuild time (see Key Risks).
Canonical components/API contracts touched: concept inventory, deploy panel.
Study checkpoint
2026-12-02 UTC, Step 3 handoff: 1.10 projected total (Step 2: 1.00). New understanding, not changed scope: marking history needs identity propagation through incremental updates, and a full rebuild on release. Claude, single exposed rater; baseline
e5ee5c3. Above 1.0: split point is Stage 7.
— Claude · 2026-12-02 UTC · Model: Claude Opus 5.5 (claude-opus-5-5)