console: a replaced or cleared session's end row survives an uncertain write or a failed check (rootfs plan 6 task 11 fix round 2)
An admission whose replacing write has an unknown outcome, and any end-row check that fails at admission or in the sweep, now leave the dead session's lost row as row-only pending work. The sweep's pending pass writes it through the same deduplicated path, once; an id the hub owns is never taken over.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
internal/console/apiinteractive.go+32 −8internal/console/apiinteractive_test.go+23 −0internal/console/interactivehub.go+31 −3internal/console/runsweep.go+6 −2internal/console/runsweep_test.go+137 −0internal/provision/rootfs_apps_6_census_test.go+5 −1
Intent
<task-notification> <task-id>a32fb75664237bf8f</task-id> <tool-use-id>toolu_01RQwdpBMksjH4evYFz8o2pK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/a32fb75664237bf8f.output</output-file> <status>completed</status> <summary>Agent "Plan 6 Task 11: box door, splice, sweep" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** DONE_WITH_CONCERNS **Commit:** 6bf1161d (fix round 1), on top of 419ba4fa. Not pushed. Git printed the usual `packed-refs.lock` warning, but the commit landed. **Tests:** all pass. The P1 witness passes under `-race -count=50`; before the fix it lost the last Data frame in most runs. The Task 10 and 11 session and sweep tests pass under `-race -count=2`, along with the census, sweep, cutover and route tests, the provision census tests, the root copy gates, and the darwin/arm64, windows/amd64 and linux/arm64 builds. All 12 fix-round mutations were killed. One of them, "the end step skips the duplicate check", survived until I added a test where the end row already exists. The census card is clean (seal f02fd204), so I did not re-propose the overlay; `admitSession`, `endWrites` and `clearDeadMarker` are re-pinned with the same class. **What changed for each finding:** - **P1:** the splice now waits for both socket writers to finish every frame they accepted before it returns, so the End is always written after the last output. - **P2 (in-flight ends):** an end whose writes are still running is held as "ending". Pruning leaves it alone and the sweep skips it, so the sweep never writes a second `lost` row for it. - **P2 (replaced markers):** every end row now goes through one check of the audit table, under one lock. The sweep's conflict path writes the old session's `lost` row once. Task 10's admission now writes the `lost` row for a dead marker it replaces, unless that session is still held, ending or pending, in which case the session's own end step writes the row. - **P2 (orphan scan):** the orphan-grant scan runs once a day per app, whether the record view is on or off. A day of sweep passes for an app with no sessions makes exactly one LIST page. The report budgets the scan as LIST pages (1,000 keys each) plus a DELETE and its change-index GET and PUT per orphan found. The fleet-door limit is in the report as a known limit for the whole-branch review: the record names only the fleet, so the box door accepts any active box of that account-owned fleet. **Concerns:** 1. A CLI that stops reading now holds the session's end, including its End frame and end writes, for up to 45 seconds, until its write deadline expires. Before this fix the End write itself already had that bound. 2. The duplicate check finds an end row by the start of its detail JSON (`{"id":"<id>"`). `interactiveEndDetail` always writes that shape, but a row written in any other shape would be missed. 3. One small gap has no test. If an admission's first write lands but its reply is lost, and that write had replaced a dead marker, the retry only sees the admission's own marker. In that case the replaced session gets no end row. The fix report is appended to `/home/paulca/amadan.net/carlos/platform/.claude/worktrees/rootfs-apps-6/.superpowers/sdd/2026-10-24-rootfs-apps-6-interactive/task-11-report.md`. That directory is excluded from git locally, so the report is on disk but not in the commit. I deleted my scratch files and nothing I started is still running.</result> <usage><subagent_tokens>438282</subagent_tokens><tool_uses>31</tool_uses><duration_ms>2008055</duration_ms></usage> </task-notification>
<task-notification> <task-id>bv3xjw20y</task-id> <tool-use-id>toolu_01QAZSm9e1vcd274nCSwKfNd</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ba9fa944-a429-4788-9b3c-f2b2f42617f3/tasks/bv3xjw20y.output</output-file> <status>completed</status> <summary>Background command "Run Astra re-review of Task 11 fix" completed (exit code 0)</summary> </task-notification>
Attributed to this commit: 29.2 g CO₂e (3,684,922 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on rootfs-apps-6-interactive, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/internal/console/apiinteractive.go b/internal/console/apiinteractive.go| index 8a34616a9..ab5a06d74 100644 |
| --- a/internal/console/apiinteractive.go |
| +++ b/internal/console/apiinteractive.go |
| @@ -360,7 +360,13 @@ func (s *Server) admitSession(ctx context.Context, sess *hubSession, token strin |
| if err != nil { |
| // A failure whose outcome is unknown may have landed the marker; with |
| // the id released it is dead (not live), so the next admission |
| - // replaces it and the sweep clears it. |
| + // replaces it and the sweep clears it. The dead marker this write may |
| + // have replaced is then gone from every later read: its end row is |
| + // owed now (fix round 2), and waits for the sweep, which writes it |
| + // once whether or not this write landed. |
| + if m := replaced; m != nil { |
| + h.pendRow(replacedSession(sess, *m), interactive.End{Reason: interactive.EndLost, Ended: time.Now().UTC()}) |
| + } |
| s.cleanupGrant(ctx, sess) |
| return admissionRefusal(err, sess) |
| } |
| @@ -373,10 +379,12 @@ func (s *Server) admitSession(ctx context.Context, sess *hubSession, token strin |
| } |
| if m := replaced; m != nil && !h.owns(m.ID) { |
| // The replaced session's end row (fix round 1, P2 3): lost, unless |
| - // it has one. A session this hub still owns writes its own. |
| - if err := s.auditInteractiveEnd(sess.account, sess.app, sess.host, m.By, m.ID, |
| - interactive.End{Reason: interactive.EndLost, Ended: time.Now().UTC()}); err != nil { |
| - log.Printf("console: api interactive %s/%s/%s: the replaced session %s: %v", sess.acct, sess.app, sess.host, m.ID, err) |
| + // it has one. A session this hub still owns writes its own. A check |
| + // that fails leaves the row to the sweep (fix round 2). |
| + e := interactive.End{Reason: interactive.EndLost, Ended: time.Now().UTC()} |
| + if err := s.auditInteractiveEnd(sess.account, sess.app, sess.host, m.By, m.ID, e); err != nil { |
| + log.Printf("console: api interactive %s/%s/%s: the replaced session %s waits for the sweep: %v", sess.acct, sess.app, sess.host, m.ID, err) |
| + h.pendRow(replacedSession(sess, *m), e) |
| } |
| } |
| s.auditActivity(sess.account, sess.app, sess.by, Activity{Action: "interactive-start", TargetType: "instance", Target: sess.host, |
| @@ -384,6 +392,12 @@ func (s *Server) admitSession(ctx context.Context, sess *hubSession, token strin |
| return nil |
| } |
| +// replacedSession is the session the dead marker m names, on sess's |
| +// instance: what its end row needs. |
| +func replacedSession(sess *hubSession, m provision.InteractiveState) *hubSession { |
| + return &hubSession{id: m.ID, acct: sess.acct, app: sess.app, host: sess.host, by: m.By, account: sess.account, pickupBy: m.PickupBy} |
| +} |
| + |
| // admissionRefusal is the End for a record CAS that did not admit. |
| func admissionRefusal(err error, sess *hubSession) *interactive.End { |
| var open *provision.InteractiveOpenError |
| @@ -512,7 +526,14 @@ func (s *Server) auditInteractiveEnd(acct *Account, app, host, by, id string, e |
| h := s.interactive |
| h.endRows.Lock() |
| defer h.endRows.Unlock() |
| - done, err := s.store.InteractiveEndRecorded(acct.ID, app, id) |
| + var done bool |
| + var err error |
| + if h.endRowCheck != nil { |
| + err = h.endRowCheck(id) |
| + } |
| + if err == nil { |
| + done, err = s.store.InteractiveEndRecorded(acct.ID, app, id) |
| + } |
| if err != nil { |
| return fmt.Errorf("check the end row of %s: %w", id, err) |
| } |
| @@ -532,9 +553,12 @@ func (s *Server) finishPendingInteractiveEnds(ctx context.Context, now time.Time |
| } |
| for _, w := range s.interactive.pending() { |
| var err error |
| - if w.grantOnly { |
| + switch { |
| + case w.grantOnly: |
| err = s.deleteGrant(ctx, w.sess) |
| - } else { |
| + case w.rowOnly: |
| + err = s.auditInteractiveEnd(w.sess.account, w.sess.app, w.sess.host, w.sess.by, w.sess.id, w.end) |
| + default: |
| err = s.endWrites(ctx, w.sess, w.end) |
| } |
| if err != nil { |
diff --git a/internal/console/apiinteractive_test.go b/internal/console/apiinteractive_test.go| index 08a332fc8..56d37a2b0 100644 |
| --- a/internal/console/apiinteractive_test.go |
| +++ b/internal/console/apiinteractive_test.go |
| @@ -843,6 +843,29 @@ func TestTwoSessionsRaceOneAdmission(t *testing.T) { |
| if g := ixGrants(t, fx); len(g) != 1 { |
| t.Fatalf("grants %v, want the winner's only", g) |
| } |
| + // The loser's CAS read the winner's live marker: it owes the winner |
| + // no row (fix round 2), so a sweep writes none and the winner's own |
| + // end writes its one row. |
| + h := fx.srv.interactive |
| + h.mu.Lock() |
| + pending := len(h.endPending) |
| + h.mu.Unlock() |
| + if pending != 0 { |
| + t.Fatalf("the hub has %d pending ends, want none", pending) |
| + } |
| + fx.srv.runSweepPass(context.Background(), time.Now(), false) |
| + if evs := ixEvents(t, fx, "interactive-end"); len(evs) != 0 { |
| + t.Fatalf("rows %+v while the winner waits", evs) |
| + } |
| + for _, r := range res { |
| + if r.waiting { |
| + r.ws.Close() |
| + } |
| + } |
| + evs := ixWaitEvents(t, fx, "interactive-end", 1) |
| + if d := ixEndRow(t, evs[0]); d.Reason != interactive.EndCancelled { |
| + t.Fatalf("the winner's row %+v, want its own cancelled", d) |
| + } |
| }) |
| } |
diff --git a/internal/console/interactivehub.go b/internal/console/interactivehub.go| index 0ed22177d..08842929c 100644 |
| --- a/internal/console/interactivehub.go |
| +++ b/internal/console/interactivehub.go |
| @@ -57,6 +57,10 @@ type interactiveHub struct { |
| // grantOnly marks an endPending id that never became a session: only |
| // its grant is left to delete, and it writes no row. |
| grantOnly map[string]bool |
| + // rowOnly marks an endPending id whose only work left is its end row: |
| + // a dead session whose marker was cleared or replaced, but whose row |
| + // could not be checked, or was not known to be needed until now. |
| + rowOnly map[string]bool |
| // sessions counts the session goroutines running, so a test (or a |
| // shutdown) can wait for every end's writes. |
| @@ -89,6 +93,9 @@ type interactiveHub struct { |
| beforeHandoff func(id string) |
| // beforeEndWrites runs in a session's end step, before its writes. |
| beforeEndWrites func(id string) |
| + // endRowCheck, when set, runs before each end-row lookup; an error it |
| + // returns fails the lookup there. |
| + endRowCheck func(id string) error |
| // endRows serializes every interactive-end row's check and insert, so |
| // a session gets one terminal row (auditInteractiveEnd). |
| @@ -143,6 +150,7 @@ func newInteractiveHub() *interactiveHub { |
| endPending: map[string]interactive.End{}, |
| pendingSess: map[string]*hubSession{}, |
| grantOnly: map[string]bool{}, |
| + rowOnly: map[string]bool{}, |
| } |
| } |
| @@ -321,11 +329,29 @@ func (h *interactiveHub) pendGrant(sess *hubSession) { |
| h.grantOnly[sess.id] = true |
| } |
| +// pendRow records that a dead session's end row is still owed (fix round |
| +// 2): the sweep writes it through auditInteractiveEnd, once. An id the hub |
| +// already owns is left to its owner. |
| +func (h *interactiveHub) pendRow(sess *hubSession, e interactive.End) { |
| + h.mu.Lock() |
| + defer h.mu.Unlock() |
| + if _, held := h.byID[sess.id]; held || h.ending[sess.id] { |
| + return |
| + } |
| + if _, pending := h.endPending[sess.id]; pending { |
| + return |
| + } |
| + h.endPending[sess.id] = e |
| + h.pendingSess[sess.id] = sess |
| + h.rowOnly[sess.id] = true |
| +} |
| + |
| // pendingWork is one endPending entry for the sweep. |
| type pendingWork struct { |
| sess *hubSession |
| end interactive.End |
| grantOnly bool |
| + rowOnly bool |
| } |
| // pending is a snapshot of the endPending work. |
| @@ -334,20 +360,22 @@ func (h *interactiveHub) pending() []pendingWork { |
| defer h.mu.Unlock() |
| out := make([]pendingWork, 0, len(h.endPending)) |
| for id, e := range h.endPending { |
| - out = append(out, pendingWork{sess: h.pendingSess[id], end: e, grantOnly: h.grantOnly[id]}) |
| + out = append(out, pendingWork{sess: h.pendingSess[id], end: e, grantOnly: h.grantOnly[id], rowOnly: h.rowOnly[id]}) |
| } |
| return out |
| } |
| // finished drops an endPending id once the sweep made its writes. A session |
| -// is then ended until its PickupBy; a grant-only entry is simply gone. |
| +// is then ended until its PickupBy; a grant-only or row-only entry is |
| +// simply gone. |
| func (h *interactiveHub) finished(id string) { |
| h.mu.Lock() |
| defer h.mu.Unlock() |
| - sess, only := h.pendingSess[id], h.grantOnly[id] |
| + sess, only := h.pendingSess[id], h.grantOnly[id] || h.rowOnly[id] |
| delete(h.endPending, id) |
| delete(h.pendingSess, id) |
| delete(h.grantOnly, id) |
| + delete(h.rowOnly, id) |
| if !only && sess != nil { |
| h.ended[id] = sess.pickupBy |
| } |
diff --git a/internal/console/runsweep.go b/internal/console/runsweep.go| index 33ad8705a..5b7085bed 100644 |
| --- a/internal/console/runsweep.go |
| +++ b/internal/console/runsweep.go |
| @@ -566,11 +566,15 @@ func (s *Server) clearDeadMarker(ctx context.Context, rec provision.Record, m pr |
| } |
| // sweepEndRow writes a dead session's lost row, unless it has an end row. |
| +// A check that fails leaves the row in endPending for the next pass (fix |
| +// round 2): the marker it came from is gone by now. |
| func (s *Server) sweepEndRow(ctx context.Context, acct *Account, rec provision.Record, m provision.InteractiveState, now time.Time) { |
| - err := s.auditInteractiveEnd(acct, rec.App, rec.Host, m.By, m.ID, interactive.End{Reason: interactive.EndLost, Ended: now.UTC()}) |
| + e := interactive.End{Reason: interactive.EndLost, Ended: now.UTC()} |
| + err := s.auditInteractiveEnd(acct, rec.App, rec.Host, m.By, m.ID, e) |
| if err != nil { |
| - log.Printf("console: run sweep: %s/%s/%s: interactive %s end row: %v", rec.Account, rec.App, rec.Host, m.ID, err) |
| + log.Printf("console: run sweep: %s/%s/%s: interactive %s end row waits for a later pass: %v", rec.Account, rec.App, rec.Host, m.ID, err) |
| jobFailed(ctx, fmt.Errorf("run sweep: %s/%s/%s: interactive %s end row: %w", rec.Account, rec.App, rec.Host, m.ID, err)) |
| + s.interactive.pendRow(&hubSession{id: m.ID, acct: rec.Account, app: rec.App, host: rec.Host, by: m.By, account: acct, pickupBy: m.PickupBy}, e) |
| } |
| } |
diff --git a/internal/console/runsweep_test.go b/internal/console/runsweep_test.go| index d75c62b2a..eef00c453 100644 |
| --- a/internal/console/runsweep_test.go |
| +++ b/internal/console/runsweep_test.go |
| @@ -12,6 +12,7 @@ import ( |
| "sort" |
| "strings" |
| "sync" |
| + "sync/atomic" |
| "testing" |
| "time" |
| @@ -1276,3 +1277,139 @@ func TestAnEndStepWritesNoSecondRow(t *testing.T) { |
| t.Fatalf("marker %+v, grants %v: the end's other writes did not land", m, ixGrants(t, fx)) |
| } |
| } |
| + |
| +// ---- fix round 2: end rows survive a failed check or an uncertain write --- |
| + |
| +// ixRowsFor is the interactive-end rows of session id: their reasons. |
| +func ixRowsFor(t *testing.T, fx *interactiveFx, id string) []string { |
| + t.Helper() |
| + var out []string |
| + for _, e := range ixEvents(t, fx, "interactive-end") { |
| + if d := ixEndRow(t, e); d.ID == id { |
| + out = append(out, d.Reason) |
| + } |
| + } |
| + return out |
| +} |
| + |
| +// failRowCheckOnce makes the end-row check of id fail once. |
| +func failRowCheckOnce(fx *interactiveFx, id string) *atomic.Bool { |
| + var failed atomic.Bool |
| + fx.srv.interactive.endRowCheck = func(got string) error { |
| + if got == id && failed.CompareAndSwap(false, true) { |
| + return errors.New("injected audit lookup failure") |
| + } |
| + return nil |
| + } |
| + return &failed |
| +} |
| + |
| +// uncertainRecordPut lands the first session-marker write to key and then |
| +// answers it with a transport error: an outcome the console cannot know. |
| +type uncertainRecordPut struct { |
| + release.Store |
| + key string |
| + done atomic.Bool |
| +} |
| + |
| +func (u *uncertainRecordPut) Put(ctx context.Context, key string, body []byte, ifMatch string) (string, error) { |
| + etag, err := u.Store.Put(ctx, key, body, ifMatch) |
| + if err == nil && key == u.key && ifMatch != "" && strings.Contains(string(body), `"interactive"`) && u.done.CompareAndSwap(false, true) { |
| + return "", errors.New("read tcp: connection reset by peer") |
| + } |
| + return etag, err |
| +} |
| + |
| +// An admission whose replacing write has an unknown outcome still owes the |
| +// replaced session its end row: it waits in endPending, and the next sweep |
| +// pass writes it, lost, once. |
| +func TestAnUncertainReplacementKeepsTheOldSessionsRow(t *testing.T) { |
| + fx := newIxFx(t, "code-ixs-uncertain") |
| + const dead = "tty_mmmmmmmmmmmmmmmmmmmmmmmmmm" |
| + ixPutRecord(t, fx, provision.Record{Host: ixHost, Channel: "stable", Region: "uk", |
| + Interactive: &provision.InteractiveState{ID: dead, By: "bob@keymail.dev", Console: "old", PickupBy: time.Now().Add(time.Minute)}}) |
| + fx.srv.cfg.Releases = &uncertainRecordPut{Store: fx.rel, key: provision.RecordKey(fx.acct, "shop", ixHost)} |
| + ws, err := ixDial(t, fx.ts.URL, fx.ixURL(ixHost), fx.alice) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + ixSendOpen(t, ws, ixOpenArgv()) |
| + if e := ixWantEnd(t, ws); e.Reason != interactive.EndRefused { |
| + t.Fatalf("end %+v, want refused", e) |
| + } |
| + fx.srv.interactive.sessions.Wait() |
| + fx.srv.cfg.Releases = fx.rel |
| + if m := ixMarker(t, fx, ixHost); m == nil || m.ID == dead { |
| + t.Fatalf("marker %+v: the uncertain write did not land, the test proves nothing", m) |
| + } |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 0 { |
| + t.Fatalf("rows %v before the sweep", rows) |
| + } |
| + if st := hubState(fx.srv.interactive, dead); st != "pending" { |
| + t.Fatalf("hub: %q, want the old session's row pending", st) |
| + } |
| + for pass := 0; pass < 2; pass++ { |
| + fx.srv.runSweepPass(context.Background(), time.Now(), false) |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 1 || rows[0] != interactive.EndLost { |
| + t.Fatalf("pass %d: rows for %s %v, want one lost", pass, dead, rows) |
| + } |
| + } |
| + evs := ixEvents(t, fx, "interactive-end") |
| + for _, e := range evs { |
| + if ixEndRow(t, e).ID == dead && e.Address != "bob@keymail.dev" { |
| + t.Fatalf("row %+v, want bob's", e) |
| + } |
| + } |
| +} |
| + |
| +// An admission that replaced a dead marker and could not check for its end |
| +// row queues the row: the next sweep pass writes it, once. |
| +func TestAFailedRowCheckAtAdmissionIsRetried(t *testing.T) { |
| + fx := newIxFx(t, "code-ixs-admitcheck") |
| + const dead = "tty_nnnnnnnnnnnnnnnnnnnnnnnnnn" |
| + ixPutRecord(t, fx, provision.Record{Host: ixHost, Channel: "stable", Region: "uk", |
| + Interactive: &provision.InteractiveState{ID: dead, By: "bob@keymail.dev", Console: "old", PickupBy: time.Now().Add(time.Minute)}}) |
| + failed := failRowCheckOnce(fx, dead) |
| + cli := ixStart(t, fx, fx.alice, ixOpenArgv()) |
| + if !failed.Load() { |
| + t.Fatal("the check never ran") |
| + } |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 0 { |
| + t.Fatalf("rows %v after a failed check", rows) |
| + } |
| + for pass := 0; pass < 2; pass++ { |
| + fx.srv.runSweepPass(context.Background(), time.Now(), false) |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 1 || rows[0] != interactive.EndLost { |
| + t.Fatalf("pass %d: rows for %s %v, want one lost", pass, dead, rows) |
| + } |
| + } |
| + cli.Close() |
| + ixWaitEvents(t, fx, "interactive-end", 2) |
| +} |
| + |
| +// The sweep cleared a dead marker and could not check for its end row: the |
| +// row waits in endPending and the next pass writes it, once. |
| +func TestAFailedRowCheckInTheSweepIsRetried(t *testing.T) { |
| + fx := newIxFx(t, "code-ixs-sweepcheck") |
| + const dead = "tty_pppppppppppppppppppppppppp" |
| + ixPutRecord(t, fx, provision.Record{Host: ixHost, Channel: "stable", Region: "uk", |
| + Interactive: &provision.InteractiveState{ID: dead, By: "bob@keymail.dev", Console: "old", PickupBy: time.Now().Add(time.Minute)}}) |
| + grant := ixPutGrant(t, fx, dead) |
| + failed := failRowCheckOnce(fx, dead) |
| + fx.srv.runSweepPass(context.Background(), time.Now(), false) |
| + if !failed.Load() { |
| + t.Fatal("the check never ran") |
| + } |
| + if m := ixMarker(t, fx, ixHost); m != nil || ixHasObject(t, fx, grant) { |
| + t.Fatalf("marker %+v, grant kept %v: the clear did not land", m, ixHasObject(t, fx, grant)) |
| + } |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 0 { |
| + t.Fatalf("rows %v after a failed check", rows) |
| + } |
| + for pass := 0; pass < 2; pass++ { |
| + fx.srv.runSweepPass(context.Background(), time.Now(), false) |
| + if rows := ixRowsFor(t, fx, dead); len(rows) != 1 || rows[0] != interactive.EndLost { |
| + t.Fatalf("pass %d: rows for %s %v, want one lost", pass, dead, rows) |
| + } |
| + } |
| +} |
diff --git a/internal/provision/rootfs_apps_6_census_test.go b/internal/provision/rootfs_apps_6_census_test.go| index d26c91244..bc73b97df 100644 |
| --- a/internal/provision/rootfs_apps_6_census_test.go |
| +++ b/internal/provision/rootfs_apps_6_census_test.go |
| @@ -59,6 +59,10 @@ package provision |
| // per session, checked in the audit table); clearDeadMarker writes a |
| // replaced marker's lost row the same way. Each still has its one |
| // SetRecordInteractive, same class; re-pinned. |
| +// - Task 11 fix round 2: admitSession leaves the replaced session's row |
| +// to the sweep (an endPending row-only entry, in memory) when its |
| +// write's outcome is unknown or the row check fails. The same one |
| +// SetRecordInteractive; re-pinned. |
| func rootfsApps6WriteCensusInventory() []censusEntry { |
| entries := append([]censusEntry(nil), fleetPublicRoutesWriteCensusInventory()...) |
| replacements := []censusEntry{ |
| @@ -85,7 +89,7 @@ func rootfsApps6WriteCensusInventory() []censusEntry { |
| added := []censusEntry{ |
| {"internal/provision/interactive.go", "SetRecordInteractive", "record-writer", "key:SetRecordInteractive,key:updateRecord", "f2f8c0ad8647cc048a0be0fa3edc051ddd8e3157eba038123f9e5bab79f4530e"}, |
| {"internal/appconfig/interactive.go", "claimRawSetInteractive", "nonrecord", "sel:Put", "d4c768601d1b9bdb44c0fd0c2c6f058c18c1434856e357f00628d2f600ce039b"}, |
| - {"internal/console/apiinteractive.go", "Server.admitSession", "record-writer", "key:SetRecordInteractive", "ca082ecf21d2f2a654abc941518f1938d462148ac71693125f02907bac3a91d2"}, |
| + {"internal/console/apiinteractive.go", "Server.admitSession", "record-writer", "key:SetRecordInteractive", "78f735fab523bbc6aae6c15d568fd20bcdf37bfce69bb8d0479830c624e392dd"}, |
| {"internal/console/apiinteractive.go", "Server.endWrites", "record-writer", "key:SetRecordInteractive", "8fb7e6e57049398f1221b4dbb6eb338d6ac414345cd197bcb39188617f0e27e7"}, |
| {"internal/console/apiinteractive.go", "Server.putGrant", "nonrecord", "sel:Put", "22a18ef45051da8cfb8a6a62ad8891afd28e3bf71cc26a541639cd2a1dc0a1ff"}, |
| {"internal/console/server.go", "consolePerfSkip", "key-site", "lit:instances", "d4b65473d3702b49d79a799d46f078e4491b6e86a59a101dd4c1ce4d50f698e7"}, |