Skip to content

objectql: pins and two prose sentences owed after async after-hooks moved to commit time (atomic batch and cascade, no-transaction driver, afterDelete, read hooks inside a unit) #34192

Closed as not planned

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Follow-up from #33760 / PR #34043. Contract record 6903738456 (PASS) lists these as nits N2, N3 and N4. Review-a's delta PASS is 6903903947.

N2: claims that hold by reading only. No pin fires an async after-hook from:

  • an atomic batch,
  • an atomic cascade,
  • a transaction() on a driver without transactions (the CONTROL for "no unit opened").

Since the wait is keyed on the event name (waitsForUnitCommit in packages/objectql/src/unit-detach.ts), also add a pin for an async afterDelete that is held to the commit and dropped on rollback. Today only afterInsert and afterUpdate are pinned. Each pin needs an ablation that turns it red.

N3: two sentences speak of every async after-hook where the rule covers write events only.

  • The summary clause added to .changeset/33651-async-hook-outside-door-unit.md. Fix it only while that note is still unreleased; otherwise the fix goes in the release notes.
  • The comment in unsettledUnitQueue that reads "the run is already past that unit's commit". A read's run, which starts at dispatch, is not past any commit.

N4: content/docs/automation/hooks.mdx could say what a read hook fired inside a unit is handed: the rows as the unit saw them at that moment. One sentence.

Prior rulings read: contract records 6898698040, 6899793526 and 6903738456 on PR #34043, and review-a 6898709123 / 6903903947.

Dedupe: a new card. #34191 is the skills half (data-hooks.md), not this.


Generated by Claude Code

Activity

  1. added
    finding
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → closed as not planned (p3 standard) · 2026-11-16T00:49Z

    Pins and two prose sentences after PR #34043 (async after-hooks run at commit time): the claims already hold by reading, and review passed (6903738456).

    The maintainer's p3 standard (triage thread, 2026-11-15) closes work with no user or customer effect. Reopen it if that changes.

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

    domain:serverfindingpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions