transcripts: one for each start of a session, with its own term #69

Merged
mikluko merged 2 commits from starts-page into main 2026-11-16 09:42:16 +00:00
Owner

The transcript is of a start, as decided on spec-bb1.16 (the first of the owner's two amendments), on the registry's starts of #64.

  • Registry.Transcript(ctx, name, n) reads the events of the start's FirstSeq..LastSeq (n = 0 is the latest); its Card has the start (number, how it ended, room, gc's id) and all the starts the registry still holds. A start that was never made or was removed gives ErrNotFound.
  • The page: /-/<session>/<n> and /-/<session>/<n>/raw for a start, /-/<session> and /-/<session>/raw for the latest. The card says "start N of M" with links to the others, how it ended (stop, reset, failed, lost; "not yet" while open), the room and gc's session id ("none recorded" for none). A link to a closed start keeps showing that start.
  • The 90 days run per start: Purge removes a start that is not the session's latest, with its events, once it ended before the cutoff, and the session whole, as before, once it has ended and its last event is that old. It returns the number of starts removed (the server's log line says starts). The latest start's events stay as long as the session does, so the numbering of events goes on past what was removed (tested).
  • The chat side records the room of each start with SetRoom (when it finds the room, and at each Started/StartedAfresh it sees), and the journal's "began anew" notice links the transcript of the start that just closed (/-/<session>/<n>, the start before the one whose first event this is).
  • session.Service gains Starts and SetRoom, which the registry already had; the chattest fake has both.

Not here: !reset (next); and, rebased onto #68 when it is in, the service reads the room from the same place.

The transcript is of a start, as decided on spec-bb1.16 (the first of the owner's two amendments), on the registry's starts of #64. - `Registry.Transcript(ctx, name, n)` reads the events of the start's `FirstSeq..LastSeq` (n = 0 is the latest); its `Card` has the start (number, how it ended, room, gc's id) and all the starts the registry still holds. A start that was never made or was removed gives `ErrNotFound`. - The page: `/-/<session>/<n>` and `/-/<session>/<n>/raw` for a start, `/-/<session>` and `/-/<session>/raw` for the latest. The card says "start N of M" with links to the others, how it ended (`stop`, `reset`, `failed`, `lost`; "not yet" while open), the room and gc's session id ("none recorded" for none). A link to a closed start keeps showing that start. - The 90 days run per start: `Purge` removes a start that is not the session's latest, with its events, once it ended before the cutoff, and the session whole, as before, once it has ended and its last event is that old. It returns the number of starts removed (the server's log line says `starts`). The latest start's events stay as long as the session does, so the numbering of events goes on past what was removed (tested). - The chat side records the room of each start with `SetRoom` (when it finds the room, and at each Started/StartedAfresh it sees), and the journal's "began anew" notice links the transcript of the start that just closed (`/-/<session>/<n>`, the start before the one whose first event this is). - `session.Service` gains `Starts` and `SetRoom`, which the registry already had; the chattest fake has both. Not here: `!reset` (next); and, rebased onto #68 when it is in, the service reads the room from the same place.
transcripts: one for each start of a session, with its own term
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 1m0s
cd80b14e62
Assisted-By: Claude <noreply@anthropic.com>
Author
Owner

Read at cd80b14. The suite is green here under -race, internal/session and internal/transcripts ten times with GOMAXPROCS=1. A start's transcript is its own numbers, a link by number stays what it was through later starts and through the removal of an older one, and the journal's link is to the start before the one the event opened; the 90 days run by each start's own end and the latest start is never taken alone, so the numbering goes on.

One change: the card says "start N of M" with M the count of the starts the registry still holds. Once an older one has been removed that reads "start 97 of 3". Make M the number of the latest start. The row lists every start as a link, which for guest in the city today is ninety-seven of them; say if you mean that, or show the neighbours and the ends.

To say in the description, not to change: until #68 is in, a task's start has no room recorded, since its subscription begins after its Started event and noteStart never sees it; the always-on agents' are recorded at attach.

It conflicts with main since #70 (CHANGELOG); rebase with the change.

Read at cd80b14. The suite is green here under `-race`, `internal/session` and `internal/transcripts` ten times with `GOMAXPROCS=1`. A start's transcript is its own numbers, a link by number stays what it was through later starts and through the removal of an older one, and the journal's link is to the start before the one the event opened; the 90 days run by each start's own end and the latest start is never taken alone, so the numbering goes on. One change: the card says "start N of M" with M the count of the starts the registry still holds. Once an older one has been removed that reads "start 97 of 3". Make M the number of the latest start. The row lists every start as a link, which for `guest` in the city today is ninety-seven of them; say if you mean that, or show the neighbours and the ends. To say in the description, not to change: until #68 is in, a task's start has no room recorded, since its subscription begins after its Started event and `noteStart` never sees it; the always-on agents' are recorded at attach. It conflicts with main since #70 (CHANGELOG); rebase with the change.
mikluko force-pushed starts-page from cd80b14e62
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 1m0s
to f8fb7e2710
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 43s
2026-11-16 09:38:30 +00:00
Compare
mikluko force-pushed starts-page from f8fb7e2710
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 17s
test / go (pull_request) Successful in 43s
to b918a6c3e7
All checks were successful
test / changelog (pull_request) Successful in 5s
image / image (pull_request) Successful in 16s
test / go (pull_request) Successful in 48s
2026-11-16 09:40:13 +00:00
Compare
mikluko deleted branch starts-page 2026-11-16 09:42:16 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/roomcity!69
No description provided.