diff --git a/docs/m7_c5_published_outcome_correction_procedure_2026-08-27.md b/docs/m7_c5_published_outcome_correction_procedure_2026-08-27.md new file mode 100644 index 0000000..602c57d --- /dev/null +++ b/docs/m7_c5_published_outcome_correction_procedure_2026-08-27.md @@ -0,0 +1,210 @@ +# M7 — C5: Published-Outcome Correction and Withdrawal Procedure + +**Status: DRAFT — pending operator review and sign-off.** This is the artifact required by +`docs/m7_operator_go_checklist.md` §C item **C5** ("Published-Outcome Correction and Withdrawal +Procedure finalized"). It follows the C1/C3/C4 precedent — a standalone dated record rather than a +row-embedded decision. Once reviewed, C5's row cites this document; this document is not itself +the attestation. + +This document amends no numbered section of +`docs/m7_moltbook_transport_boundary_and_deployment_spec.md`, of +`docs/m7_first_live_post_governed_envelope.md`, of `docs/m7_operator_go_checklist.md`, of +`docs/moltbook_api_spec.md`, or of any ruling in `docs/`. It defines a procedure that operates on +outcomes those documents already produce; it does not redefine any status enum, envelope field, or +transport behaviour. + +**Nothing here authorizes transmission.** This document governs what happens *after* a governed +post or reply has already resolved to `PUBLISHED`. It does not touch GO-2, the runbook (C4), or +the send path itself. + +## 1. Scope and trigger condition + +This procedure applies only when a governed action's `publication_status` +(`moltbook.transport.PublicationStatus`) has resolved to `PUBLISHED`, and the operator determines +the published content is incorrect and needs to come down or be corrected. This is checklist §E's +"If `PUBLISHED` but incorrect" row, and it is the specific case named at envelope doc §5(3)(c): + +> (c) completion of the Published-Outcome Correction and Withdrawal +> Procedure (`docs/m7_operator_go_checklist.md` §C5) for a `PUBLISHED` outcome that required +> correction or takedown. + +This procedure does **not** apply to `OUTCOME_UNKNOWN` / `AMBIGUOUS_WRITE`. That condition is +already governed by boundary spec §7–§9 (operational freeze, Reconciliation Authority, and §9's +"Never retry while OUTCOME_UNKNOWN exists.") and by C1 §6 (AMBIGUOUS final as a classification, +disposition after `verify()` unresolved and carried as its own open item). This document does not +re-derive or restate that logic — see §4 for how the two connect without merging into one path. + +## 2. Capability finding (grounds §3's dispositions) + +Before dispositions can be defined, what is actually available has to be checked rather than +assumed. **Two independent bars stand between this procedure and a platform-level delete or edit. +Either alone is sufficient; the second is dispositive.** + +**Bar 1 — the documented platform surface.** `docs/moltbook_api_spec.md` §4 ("Core Endpoints +Relevant to Phase One") lists, for posts and comments, five rows only: `POST /api/v1/posts`, +`GET /api/v1/posts`, `GET /api/v1/posts/{POST_ID}`, `POST /api/v1/posts/{POST_ID}/comments`, +`GET /api/v1/posts/{POST_ID}/comments`. No delete or edit endpoint appears. §5's rate-limit table +lists "Write requests (POST/PUT/PATCH/DELETE) | 30 / 60s" — that is a **method-class category, not +evidence that a per-resource delete or edit endpoint exists** for posts or comments. §4 adds that +the "Full endpoint surface (submolts, follows, voting, moderation, notifications, labels) exists +but is out of scope for the Phase One slice **per the boundary spec §12**." + +**Bar 2 — the governing ruling, which is dispositive.** Deletions and edits are not merely +undocumented here; they are **explicitly deferred out of Phase One by boundary spec §12**, which +lists under "Deferred to later slices": DMs; mentions; notifications; **deletions**; **edits**; +account mutation; and registration automation. `moltbook/transport.py`'s `MoltbookHTTPTransport` +docstring restates the same ruling as an implementation invariant: deletions and edits "are +explicitly deferred (§12) and have **NO methods here at all, not even unused stubs** — there is no +'escape hatch' endpoint surface (§6)." + +This finding is load-bearing, and its direction matters. **§3.1 and §3.2 are unavailable by +ruling, not by absence of evidence.** The distinction is operational, not academic: it means +confirming that a live delete endpoint exists would **not** make them available. Wiring one would +change transport responsibilities and execution boundaries, both of which §16's Lock Condition +places behind a formal amendment, and §6 independently prohibits the transport from "select[ing] +alternative endpoints" or "expos[ing] unrestricted request methods." Accordingly this procedure +does not treat platform-capability discovery as its open question, and does not recommend probing +for one — see §5. + +Corrective follow-up (§3.3) is therefore the only operative correction-shaped disposition under +Phase One **by design of the slice**, not by accident of documentation. + +## 3. The five dispositions + +Per the checklist row's binding wording, this procedure distinguishes five dispositions rather than +treating correction as a single atomic action. This is explicitly **not** a "rollback" in the +atomic-reversal sense — most external APIs, including this one as documented, offer no such thing, +and no wording below may be read to imply one. + +### 3.1 Delete (when supported) + +**Not available under Phase One.** Deletions are deferred by boundary spec §12 and the transport +carries no method for one, by design. This branch is defined structurally so that the procedure is +complete, and so that the conditions for its availability are stated rather than left to +improvisation at the moment it is wanted. + +Two conditions must both be met before this branch becomes exercisable, in this order: + +1. **Governance:** a formal amendment moving deletions into scope, following §16's discipline + (this touches transport responsibilities and execution boundaries). +2. **Capability:** a delete endpoint for the affected resource confirmed against the live platform + by direct observation under the discipline C3 used — documented and observed, never inferred + from §5's method-class line. + +The governance condition is first because satisfying the capability condition alone establishes +nothing this procedure may act on. If and when both are met, the branch becomes: issue the delete +as a governed write, capture the resulting HTTP status and body, and record the outcome in the +RESOLUTION TRACE for the original action, cross-referenced by `action_id`. + +### 3.2 Edit / correction (when supported) + +**Not available under Phase One**, on identical grounds — edits are named alongside deletions in +§12's deferral list and have no transport method. The same two conditions in the same order apply. + +If and when both are met: an edit is itself a governed write. It requires its own +`ActionEnvelope`, its own approval, and passes `validate_envelope()` like any other write. An edit +is not exempt from governance because its purpose is corrective. + +### 3.3 Corrective follow-up (when neither is available) + +**This is the currently-operative disposition**, per §2. When neither §3.1 nor §3.2 is available, +correction takes the form of a new, separately governed post or reply that: + +* is issued through the standard envelope flow — its own `action_id`, its own approval, its own + `payload_hash`. It is a new governed action, not a continuation of the original one; +* explicitly and unambiguously states that it corrects or retracts a specific prior post, named or + linked by its platform-assigned identifier; +* does not characterize the original error beyond what is factually necessary to issue the + correction. This procedure does not govern the content-generation judgment involved in drafting + the correction text — that remains an operator/content decision, not a transport or governance + one; and +* is subject to every constraint already governing any other post — `LinkRestriction`, + `CitationClusterIntegrity`, `CadenceIntegrity` and the rest of the active constraint set. + Correction carries no exemption. Note that `CadenceIntegrity` and the API spec §5 post-creation + limit (1 / 30 min; 1 / 2 hours for a new agent in its first 24 hours) both apply to the + corrective post: **a correction cannot necessarily be issued immediately**, and the delay is not + a defect in this procedure but a property of the platform and the cadence constraint. + +**The original, incorrect post is not removed under this branch.** It remains live, uncorrected at +the platform level, with the correction visible as separate content. This is a materially weaker +remedy than deletion or edit, and the gap between what this branch can do and what "correction" +might be expected to mean is a **known and deliberate limitation of the Phase One slice**, recorded +here rather than smoothed over. + +### 3.4 Freeze-and-escalation + +This is **not** the same freeze as §9's `OUTCOME_UNKNOWN` reconciliation freeze, though it is +modelled on it and the term is used deliberately to signal the same posture: stop, attempt no +automated remedy, put a human in the loop. + +This branch applies when none of §3.1–§3.3 is an adequate response to what happened — for example, +content that should not remain visible even briefly, where §3.3 alone is insufficient because it +leaves the original live and §3.1 is unavailable to remove it. In that case: + +* no further governed write is issued automatically; +* the condition is escalated to the operator for a manual decision, which may include out-of-band + action not mediated by this stack at all. This procedure does not assume such a channel exists; + determining whether one does is left to the operator at the time; and +* the RESOLUTION TRACE for the original action is annotated with the escalation and its outcome + once the operator resolves it, so the record does not go silent at the point of escalation. + +**This is the expected branch for a serious incorrect publication under Phase One.** Because §3.1 +and §3.2 are closed by ruling and §3.3 leaves the original live, escalation is not an exotic +fallback here — it is where the genuinely urgent case lands. That should be understood before +GO-2, not discovered during it. + +### 3.5 Audit preservation + +Regardless of which of §3.1–§3.4 is invoked, the RESOLUTION TRACE and — if verification was +required — the `CaptchaAttemptRecord` for the original action are never deleted, edited, or +superseded by this procedure. A platform-level delete or edit (§3.1/§3.2, should they ever open) +removes or changes what is visible on Moltbook; it does not remove or change Continuum's own record +that the action was taken, what it said, and what was subsequently done about it. This applies +symmetrically to any new governed action issued under §3.1–§3.4 — each gets its own trace, and none +retroactively edits the original. + +## 4. Relationship to §9 (Reconciliation Authority) + +Boundary spec §9 and this document govern two different moments and must not be collapsed: + +| | Boundary spec §9 | This document (C5) | +|---|---|---| +| Trigger | Execution outcome is uncertain (`OUTCOME_UNKNOWN` / `AMBIGUOUS_WRITE`) | Execution outcome is certain (`PUBLISHED`) and the content is wrong | +| Question | "Did this write happen?" | "This write happened and is visible — what now?" | +| Governed by | Reconciliation Layer; deterministic confirmation; freeze if unresolved | §3 above | + +A single action can pass through §9 and then this document *in sequence*: an ambiguous write that +reconciliation later confirms as `PUBLISHED`, and is subsequently found incorrect, moves from §9's +freeze into §3 once reconciliation closes it out as `PUBLISHED`. It cannot be in both states at +once, and this document's dispositions never apply while `OUTCOME_UNKNOWN` is still open — §9's own +rule, "Never retry while OUTCOME_UNKNOWN exists.", governs until it resolves. + +## 5. What this document does not attest + +It does not attest that a delete or edit endpoint exists on the platform — §2 found none +documented, and this document does not manufacture one. **Nor does it treat that question as its +open item:** per §2, deletions and edits are closed by §12's ruling, so discovering such an +endpoint would not make §3.1/§3.2 available, and this document does not recommend probing for one. +The open item, if the operator wishes to open it, is a **governance** question — whether to amend +§12 — not an evidentiary one. + +It does not attest that §3.3's corrective-follow-up branch is a satisfying remedy for every +incorrect-publication scenario; it attests only that it is the currently-available one, and §3.4 +records where the inadequate cases go. It does not attest that the out-of-band possibility named in +§3.4 is realized by any actual channel to the platform. It does not resolve C4 §8's forward +dependency beyond supplying the procedure that dependency was waiting on; C4's own text and +attestation limits are unchanged by this document's existence. + +## 6. Version binding + +Bound to `docs/moltbook_api_spec.md` §4/§5 as quoted at §2; to +`docs/m7_moltbook_transport_boundary_and_deployment_spec.md` §6 (Prohibited Behaviors), §7–§9 +(freezes and Reconciliation Authority), §12 (Minimum Viable Deployment Slice) and §16 (Lock +Condition) as quoted at §2 and §4; to `docs/m7_first_live_post_governed_envelope.md` §5(3)(c) as +quoted at §1; and to `moltbook/transport.py` at commit `b559882` (no delete or update method +present, per the `MoltbookHTTPTransport` docstring quoted at §2). + +Does not inherit forward across a material change to any of them. In particular, **if §12 is ever +amended to bring deletions or edits into scope, §3.1 and §3.2 must be revisited against that +amendment and against a live capability confirmation before either is treated as available** — this +version binding is what triggers that review rather than letting it happen implicitly. diff --git a/docs/m7_operator_go_checklist.md b/docs/m7_operator_go_checklist.md index 1e4a41a..4cfb11c 100644 --- a/docs/m7_operator_go_checklist.md +++ b/docs/m7_operator_go_checklist.md @@ -141,7 +141,7 @@ as an unrecorded verbal/mental decision. | **C2.** `submit_captcha_fn` wired live against real `POST /api/v1/verify`; `captcha_verifier`/`submit_captcha_fn` both-or-neither invariant confirmed at construction (Note E item 7); reviewed | Complete | `moltbook/transport.py` (+245) and `tests/test_moltbook_transport.py` (+428) at `ce84d22`, tree clean. `submit_captcha_fn` wired against real `POST /api/v1/verify`; `captcha_verifier`/`submit_captcha_fn` both-or-neither invariant confirmed at construction (Note E item 7). Classification precedence implemented per C1 §3.2 as read by **Erratum 1** (`docs/m7_c1_wiring_plan_erratum_1_2026-08-17.md`, LOCKED, signed 2026-08-17 00:43 EDT), whose ratified reading is that §3.2 rule 1's parenthetical **should read** "§3.3 rows 3–9" rather than "rows 3–7", so that the enumerated rows C1-8 (400) and C1-9 (500) are matched by rule 1 rather than by no rule at all. The erratum is filed instead of an edit; C1's locked text is unchanged and no row's outcome differs under either reading. Suite green: **647 passed, 7 xfailed**, verified by run at `ce84d22` with a clean tree, not recalled. **This row attests that the required artifacts exist at the cited commit and that the suite is green; it does not attest to a reading of the implementation itself.** | Kevin Brown | 2026-08-20 00:19 EDT | | **C3.** Endpoint connectivity validated — see wording below; **no governed post/reply and no synthetic CAPTCHA submission** issued solely as a connectivity probe | Complete | Validation recorded as its own dated artifact, `docs/m7_c3_endpoint_connectivity_validation_2026-08-21.md`, following the C1 precedent of a dated record rather than a row-embedded decision — the shape chosen by the operator on 2026-08-21 in preference to C2's row-only form. It amends no numbered section of this checklist, of `docs/m7_moltbook_transport_boundary_and_deployment_spec.md` or its Implementation Notes, of `docs/moltbook_api_spec.md`, or of any ruling in `docs/`. **Executed once at 2026-08-21 19:10 UTC against the live platform, transport at `c1eb9ba`, three requests total, no retries and no second run.** The artifact's §2 derives the permitted operation set from §C3's binding wording — the two documented non-publishing reads, and nothing else. Observed: an unauthenticated redirect check on `GET /api/v1/agents/status` returned HTTP 401 with no `Location` and no redirect, confirming the path does not redirect before the credential is attached to it; the authenticated `GET /api/v1/agents/status` returned HTTP 200 with body `status: "claimed"`, yielding `EligibilityState.CLAIMED`; and `GET /api/v1/posts` returned HTTP 200 with a cursor-paginated body of 20 items. All four steps matched the prediction recorded at §4.7 of the artifact **before** the run, and the method was drafted and shown to the operator before any request was issued. **No governed post or reply was issued, no synthetic CAPTCHA submission was made, and `POST /api/v1/verify` was not called** — the probe was constructed with `captcha_verifier` and `submit_captcha_fn` both absent, which Implementation Note E's fail-closed invariant expressly permits, so it had no CAPTCHA submission capability wired into it at all rather than merely declining to use one. **This row attests that the two endpoints in the permitted set answered and that this credential authenticated as a claimed agent at that moment. It does not attest that a governed post will publish, that the CAPTCHA path works, that any endpoint outside that set is reachable, or that the credential will still be valid at §E.** Six items are recorded at §6 of the artifact for their own rulings rather than settled here; two are material. First: `check_eligibility()` returns `PENDING_CLAIM` for any response whose body lacks `status: "claimed"`, a 401 error envelope included, while `health_check()` reports `TransportOutcome.SUCCESS` unconditionally and discards the `HTTPResponse` — so a dead credential and a live unclaimed one are the same value on the transport's own return, and `EligibilityBlocked` would report an authentication failure as a claim problem. C3 recorded the raw HTTP status through a pass-through recorder to see past this; the underlying behaviour is unchanged by this row. Second: the live rate-limit surface is not the one `docs/moltbook_api_spec.md` §5 describes — twelve headers were returned, including a tiered short-medium-long family the transport does not parse and whose tightest window (30) is therefore invisible to `RateLimitInfo`; the generic `x-ratelimit-limit` was 60 on `/agents/status` and 200 on `/posts` in two calls 200ms apart, so it is per-endpoint rather than the flat 60 per 60s §5 documents; and `x-ratelimit-reset` is an epoch timestamp while the tiered resets are deltas, one header family carrying two value formats. Recorded, not corrected: two endpoints on one credential at one moment is not a sufficient basis for rewriting a documented limit table. **This attestation is version-bound to the transport at `c1eb9ba` and to the 2026-07-21 `skill.md` capture, describes one moment rather than a standing property of the platform, and confers no authority over the artifact's future contents.** | Kevin Brown | 2026-08-21 15:56 EDT | | **C4.** First-post runbook finalized (step-by-step execution script for §E below) | Complete | Runbook recorded as its own dated artifact, `docs/m7_c4_first_post_runbook_2026-08-21.md`, following the C1/C3 precedent of a dated record rather than a row-embedded decision. It amends no numbered section of this checklist, of `docs/m7_moltbook_transport_boundary_and_deployment_spec.md`, of `docs/m7_first_live_post_governed_envelope.md`, or of any ruling in `docs/`. Merged to `main` at `c36161b` via PR #74 (squashed from `5ea17a1`, `a993f9e`), tree clean. The runbook sequences existing obligations rather than authorizing transmission: (§2) fixes step order around the envelope's 300-second approval window, since expiry is checked first; (§3) states the execution model the kill switch requires — an interactive operator session, not a background process; (§4) names one unenforced manual control point — `validate_envelope()` never checks `action_id` against GO-2's `authorized_action_id` — and requires the operator close it by hand; (§5) states the AMBIGUOUS-verification branch as a terminal STOP-and-escalate condition grounded in C1 §6 and the existing TODO.md ruling, without relabeling `TransportOutcome.SUCCESS` as failure; (§6) documents what dry-run rehearsal does and does not cover; (§7) the nine-step execution sequence, revised prior to merge to correct a recheck-window justification that had contradicted §3; (§8) records, without resolving, the forward dependency on C5; (§9) states the document's own attestation limits; (§10) binds three things — the transport implementation at `52a8c9c`, envelope doc §5 as quoted at its §5.3/§5.4, and checklist §D/§E as quoted — none of which inherit forward across a material change to any of them. The artifact's header remains `Status: DRAFT`; the flip to FINALIZED is pending as a follow-on commit citing this row, kept separate from the merge itself and dated to this signature. **This row attests that the runbook exists, sequences the obligations checklist §E already imposes, and identifies one unenforced control point (§4) and one terminal stop condition (§5) grounded in prior rulings. It does not attest that C5 exists, that the §4 gap is closed, or that a send executed under this sequence will succeed.** **Version-bound per §10 as stated above.** | Kevin Brown | 2026-08-24 10:58 EDT | -| **C5.** Published-Outcome Correction and Withdrawal Procedure finalized — must explicitly distinguish: delete (when supported), edit/correction (when supported), corrective follow-up (when neither is available), freeze-and-escalation (§9), and audit preservation. This is not a "rollback" in the atomic-reversal sense — most external APIs offer no such thing, and the procedure must not imply otherwise | | | | | +| **C5.** Published-Outcome Correction and Withdrawal Procedure finalized — must explicitly distinguish: delete (when supported), edit/correction (when supported), corrective follow-up (when neither is available), freeze-and-escalation (§9), and audit preservation. This is not a "rollback" in the atomic-reversal sense — most external APIs offer no such thing, and the procedure must not imply otherwise | Complete | Procedure recorded as its own dated artifact, `docs/m7_c5_published_outcome_correction_procedure_2026-08-27.md`, following the C1/C3/C4 precedent of a dated record rather than a row-embedded decision. It amends no numbered section of this checklist, of `docs/m7_moltbook_transport_boundary_and_deployment_spec.md`, of `docs/m7_first_live_post_governed_envelope.md`, of `docs/moltbook_api_spec.md`, or of any ruling in `docs/`. The procedure distinguishes the five dispositions this row's binding wording requires and states plainly that it is not an atomic rollback: (§3.1) delete and (§3.2) edit/correction, both defined structurally but **not available under Phase One**; (§3.3) corrective follow-up, a new separately governed post carrying its own `action_id`, approval and `payload_hash`, subject to every constraint governing any other post, which leaves the original live and is therefore a materially weaker remedy; (§3.4) freeze-and-escalation, distinguished at §4 from the transport spec's §9 `OUTCOME_UNKNOWN` reconciliation freeze by trigger rather than posture; and (§3.5) audit preservation, under which a platform-level delete or edit never touches the original RESOLUTION TRACE or `CaptchaAttemptRecord`. **The controlling finding is at §2:** post deletion and editing are not merely undocumented in `docs/moltbook_api_spec.md` §4 — they are **explicitly deferred out of Phase One by boundary spec §12** ("Deferred to later slices: ... deletions; edits ..."), which `moltbook/transport.py`'s `MoltbookHTTPTransport` docstring restates as an implementation invariant ("NO methods here at all, not even unused stubs — there is no 'escape hatch' endpoint surface (§6)"). §3.1 and §3.2 are therefore closed **by ruling, not by absence of evidence**: confirming a live delete endpoint would not open them, and only a formal §12 amendment under §16's Lock Condition would — which this document does not seek and which remains unopened scope. Corrective follow-up is consequently the sole operative disposition under Phase One by design of the slice. **This row attests that the procedure required before GO-2 exists, is recorded, and has been read. It does not attest that a delete or edit capability exists, that §3.3 is an adequate remedy in every case, or that any out-of-band channel to the platform is available.** Version-bound per §6 of the artifact to the sections quoted there and to `moltbook/transport.py` at `b559882`; confers no authority over the document's future contents. | Kevin Brown | 2026-08-27 20:50 EDT | C1 must be satisfied before C2 begins. C2–C5 may proceed in parallel once C1 is done, but all five must be complete before §D can be sought.