Skip to content

Behaviours the Postgres port dropped: audit ledger #3142

Closed as not planned
Closed as not planned

Description

@Israeltheminer

The Convex-to-Postgres port (#3107) and the tree retirement (#3125) dropped behaviours that 0.4 had. A six-way audit found 30-odd; this is the ledger for the ones with no PR yet.

Method, because it decides what counts: services/platform/convex/ survived #3107 as dead-or-shimmed code and was deleted by #3125, so an identifier existing in the tree never proved it ran. Every item below was verified by reading the live 0.5 path, and each names the file that should own the fix. backend/MIGRATION.md's PENDING: notes are the authority on what was deferred on purpose; nothing labelled REGRESSION here has one.

Refreshed against main @ 513db8b. Each remaining item below was re-read on that commit, not carried over from the first audit.

Landed

Finding Fixed by
Sandbox sessions never revoke their LLM gateway key #3213
A read-only member could write to conversations #3187
2FA and passkey lifecycle events no longer audit #3187
An agent-authored task comment could start the task's owning automation #3195
Comment edits never re-resolve mentions #3195
Audit-log reads were open to every role #3159
Legal holds checked once, then not again for the cascade #3178
The erasure receipt could not distinguish "found nothing" from "never looked" #3178
Two retention categories never swept #3143
The three daily governance crons were packed into one window #3145
Two chat search legs stubbed empty under false comments #3147
Retrieval gate served unbound refs #3141 → #3192
Erasure cascade missed 5 subject-data categories #3122
Chat entity legs compared a whole question as one substring #3123
A message advertised an attachment whose blob was gone #3193 (closes #3017)
Docs still describing a tale-convex service #3154, #3188

In flight

Finding PR
Corpus scope stamps drift with nothing to notice #3216
Both Stop paths that doubled a round's text are untested #3215
Emailed attachments are never indexed or retrievable #3121 (no PR)

Still open — re-verified on 513db8b

Retention destruction still emits almost no audit rows. Two createAuditLog calls in domains/retention/service.ts where 0.4 had sixteen action names. Same class as the 2FA gap #3187 closed, different file.

setTaskReviewer is still a bare column write — no subscribe, no re-target of a pending request, no notify (domains/tasks/service.ts). Distinct from #3130, which gates the respond door rather than the designation door.

updateTask still never clears startNotifiedAt/slaLevel, so moving a due date never re-fires the ladder. Neither identifier appears anywhere in the function.

Bulk task edits and moveTask still emit no notifications, open no review gate and fire no automation triggers — no notifyTask or maybeTrigger in either body.

The expiry sweep can still expire a sandbox session under a live turn — domains/sandbox/watchdogs.ts has no reference to sandbox_session_ops, so it guards on the admin pin, not on a running op.

Sandbox drift reconcile still only heals phantoms — no re-assert or rebuild path in domains/sandbox/service.ts, so a dropped pin is never re-asserted and a missing pinned container is never rebuilt.

Agent transcript merge is still "keep the longer array," so a disjoint later ring segment overwrites history at parity (domains/tasks/agent-turn-shim.ts).

A replacement upload still strands its corpus row. domains/documents/replacement.ts moves file_ref on and never releases the superseded ref — no releaseRefs call. #3192 closed the read half; the indexer-side orphan remains. The daily reconcile in #3216 releases dead refs lazily, which bounds it but does not fix the write path.

The admission-ticket reap runs last, behind up to 375s of spawner probes against a 300s job expiry, so it never runs when tickets are piling up (domains/sandbox/watchdogs.ts).

Corrected since the first audit

Two entries in the original list were wrong about 0.5, and are struck rather than silently dropped:

  • The audit-log doors were listed as needing a route-by-route isAdminRole gate. They already call authorizeRls(role, 'auditLogs', 'read'), and fix(platform): close account and credential authorization holes #3159 fixed the matrix so that denies developer, editor and member. Restating the rule at each door would be a divergent second copy.
  • The 2FA lifecycle harness check was listed as needing isolation onto a throwaway user. The runner now asserts sharedSessionAlive after every lane and names the fix in its failure message (signUpOrgMember), so the general guard supersedes the one-off.

Activity

  1. Israeltheminer commented on Sep 2, 2026

    @Israeltheminer
    ContributorAuthor

    Eleven PRs now cover most of this ledger. Updated state:

    Shipped, awaiting review

    Finding PR
    Retrieval gate served unbound, superseded, orphaned and mid-index refs to any member #3141
    Sandbox sessions never revoked their LLM gateway key #3148
    Audit-log reads open to every role; read-only members could write to conversations; 2FA events audited only on failure #3149
    An agent-authored comment could start the owning automation; comment edits never re-resolved mentions #3146
    Erasure cascade missed 10 subject-data categories #3122
    Legal hold checked once per cascade; receipt claimed done; breakdown panel rendered blank #3144
    externalConversations never swept; 2FA rows never aged; counter window tripled #3143
    Three chat search legs stubbed empty; work legs lost the zero-hit fallback; no shim exhaustiveness gate #3147
    Chat entity legs compared a whole question as one substring #3123
    The three daily governance crons packed into one window #3145
    Docs described a tale-convex container that no longer exists, in all three locales #3150

    Still open here

    Blocked on a PR in the same file, land these after:

    Not started:

    New, found while fixing the above:

    • services/docs/app/content/frontmatter.json is a committed generated manifest whose key order is not deterministic. A clean regeneration churns 2,196 lines with zero net change, and a structural test requires the file to match the pages — so every docs branch either carries that churn or hand-patches around it. docs: describe the Postgres backend instead of Convex #3150 hand-patched; the generator should sort its keys.
  2. yannickmonney commented on Sep 27, 2026

    @yannickmonney
    Contributor

    Closing: the nine items of this ledger that are still open are now tracked as separate tasks T40–T48 in Tale's own platform project TALE: retention destruction writing audit rows, re-targeting a pending review when the reviewer changes, expiry sparing a live turn, drift reconcile re-asserting pins, merging the live transcript, @mention fan-out from task descriptions, the conversation-search privacy tests, a chat_filter_events sweep and an expired-session reaper. The other entries are fixed or obsolete: #3242, #3180, #3140 (with #3439), #3215, #3216 and #3121 landed, the admission-ticket reap is obsolete since #3226, and the table drop is tracked in #3241.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions