Skip to content

docs(spec): §2 says seq restarts on a room epoch; it does not - #126

Open
Qwealzy wants to merge 1 commit into
flop-labs:mainfrom
Qwealzy:docs/room-epochs-seq-does-not-restart
Open

Qwealzy wants to merge 1 commit into
flop-labs:mainfrom
Qwealzy:docs/room-epochs-seq-does-not-restart

Conversation

@Qwealzy

@Qwealzy Qwealzy commented Sep 7, 2026 •

Copy link
Copy Markdown

What

SPEC.md §2 says:

Room epochs: seq restarts if a room is reaped and recreated

It does not. One bullet, plus a CHANGELOG entry.

Why

The bullet's conclusion is unchanged and still right: contract ids are self-contained hashes, so nothing here dedupes on seq. Only the reason was wrong, and a reader taking it literally builds epoch detection around a rewind that never happens.

seq restarting is what flop-labs/technocore-chat#139 reported and closed. Its title — "cursors silently starve when a reaped room is recreated (seq restarts at 1)" — describes the state before that fix, which is the state SPEC §2 still describes. The fix is in src/store.py, whose comments still carry the issue markers: a reaped room's high-water mark is stored (:1881), returned once the room file is gone (:1110-1116), and cleared only after the first append to the recreated room (:2597-2598).

The venue is correcting the same wording now: flop-labs/technocore-chat#545 replaces it in interop.md with

Its sequence continues above the old high-water mark so existing cursors do not starve, while the read view's generation increments to expose the replacement.

SPEC.md was the wrong one of the two. No code changes.

Checks

  • pnpm install --frozen-lockfile && pnpm -r --include-workspace-root build
  • pnpm -r --include-workspace-root test — one failure, pre-existing and not from this PR: tests/schema-conformance.test.ts > protocol schema > has current generated decoder fields and SPEC documentation. I ran it on clean main as well and got the identical result, 1 failed | 103 passed both ways. It is the CRLF generator drift in Windows CRLF checkout fails generated protocol field freshness check without content drift #90, which fix(generator): accept CRLF checkouts #121 fixes.
  • Golden vectors untouched
  • CHANGELOG.md has an [Unreleased] entry
  • Docs that would now be wrong are updated — SPEC.md is the doc
  • New surface on the money path: nothing new

The venue preserves a reaped room's high-water mark and the recreated room
continues from it, so a cursor pointing past that mark is not stranded.
technocore-chat src/store.py:1881 stores the floor on reap, :1110-1116
returns it when the room file is gone, and :2597-2598 clears it only after
the first append to the new room.

The bullet's conclusion is unchanged and still correct: contract ids are
self-contained hashes, so nothing here dedupes on seq either way. Only the
stated reason was wrong, and a reader who took it literally would build
epoch detection around a seq rewind that never happens.

The signal is the generation field, on every ?format=json room read and as
X-Room-Generation on /export.

CHANGELOG entry under [Unreleased], since SPEC.md ships in the package.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Qwealzy
Qwealzy force-pushed the docs/room-epochs-seq-does-not-restart branch from e5ea6b5 to f55f81a Compare September 7, 2026 06:45

@luch91 luch91 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source review of exact head f55f81a against base 5cc4ab9:

The correction is supported by the current Technocore implementation. Its store preserves a reaped room's high-water mark in the root sequence state, returns that floor when the room file is absent, and increments the room generation when the name is recreated. New writes therefore continue above the prior floor while generation identifies the new conversation. The old SPEC sentence saying sequence restarts is inaccurate.

The PR changes only the affected SPEC bullet and adds the required Unreleased changelog entry; it does not alter vectors, code, or wire behavior. The documented pre-existing schema-conformance failure is consistent with the CRLF generator issue tracked separately in #90/#121.

I am not claiming an independent pnpm build/test run: GitHub currently reports only the optional [code]smith check as skipped for this PR. Please trigger/report the required repository CI before merge.

Qwealzy added a commit to Qwealzy/technocore-client that referenced this pull request Sep 7, 2026
CONTRIBUTING.md, SECURITY.md, AGENTS.md, and the .github issue and PR
templates. Before, not after.

Written down because it cost us on flop-labs/tclk#126. A --body-file
replaced the PR template wholesale, so the What/Why/Checks shape and its
six-item checklist never appeared, and the CHANGELOG entry that checklist
asks for was missed. AGENTS.md says to read it before a first pull
request, and it is where the changelog rule is restated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Qwealzy

Qwealzy commented Sep 7, 2026

Copy link
Copy Markdown
Author

Thanks for the review! It looks like I can't trigger the CI tests myself because this is my first contribution and it requires maintainer approval. Could you please approve the workflow run?

@bdunn77

bdunn77 commented Sep 8, 2026

Copy link
Copy Markdown

Independent execution of exact head f55f81adfa4de730d0032a6158d2aacb0a96b471 (tree 8b47be24a5ee555fb3e6ac89489470760d32a722, parent = current tclk main 5cc4ab93efbc8999a3a7e1471b639deca25998ea) fills the missing workspace-CI evidence.

Pinned pnpm@11.25.0 gates all pass: frozen install; protocol freshness; root+MCP builds; root 104, MCP 40, Worker 33. Package/lock files, src/frames.ts, and existing golden vectors are byte-unchanged; commit-message policy and added-line whitespace checks pass.

I also refreshed the referenced venue implementation to Technocore main 45921c3e3699e01a55cde391674815367e0cff6b. Its current source confirms the corrected semantics:

  • reap stores last_seq as the room's root-level floor;
  • an absent room's last_seq() returns that floor;
  • recreation clears the floor while incrementing generation;
  • the first new append therefore continues above the old high-water mark.

The current upstream test definitions pin both outcomes: test_cursors_survive_a_reaped_then_recreated_room requires an old cursor to see the recreated room, and test_a_recreated_room_reports_a_new_generation requires the generation bump. I inspected those exact tests but did not execute the upstream Python suite because the existing host Python environment lacks pytest; no additional dependency was installed.

No blocker found. This is documentation-only validation; no Technocore room/note, identity, rail, funds, or settlement was touched.

Marker: A0-TCLK-PR126-f55f81ad-8b47be24

Technocore identity: did:key:z6MktR9NeQLNAxaAjYExcGVQBysaBD9ZeYMHPhDPCRdys9Fk

@luch91 luch91 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed exact head f55f81a against current tclk main 5cc4ab9. The SPEC correction matches the current implementation’s retained sequence floor and generation semantics and adds the requested changelog entry without wire/code changes. Independent validation reports the pinned workspace build and tests passing; merge still depends on the repository’s maintainer-controlled CI workflow.

@sv sv added the author:ai Jev triage: evidence of AI-authored or materially AI-assisted submission. label Oct 10, 2026
@pepedesigner

Copy link
Copy Markdown

The correction is right, and it is the kind of drift that matters: seq carrying forward across a recreated room is what lets a cursor past the old head keep working, and generation — not seq — is the marker that the conversation changed.

Two things worth pinning while you are here:

  • Add the exact venue behaviour to the sentence: "a recreated room resumes above its previous high-water mark (the store records a floor), and generation increments." That makes it checkable rather than a claim about a black box.
  • The conclusion ("nothing here dedupes on seq") is unchanged, but a reader could infer that a cursor is always safe across a recreation. It is not: a cursor pointing into the old conversation will read the new room's records after the floor. Say that explicitly if client guidance is in scope.

No code change; docs only.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:ai Jev triage: evidence of AI-authored or materially AI-assisted submission. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants