Back to the AllSorted website

Changelog

What we shipped, when. Newest first.

Grading lesson counts now follow the right programme

27-07-2026

What's new

Lessons since grading now reset against the programme that was graded

  • Multi-programme members now use the grading date stored against the relevant

programme rather than another programme's legacy date.

  • A lesson on the grading date is no longer described as happening "since"

that grading. The counter starts with later Present or Late attendance.

  • Programme-specific counts include only lessons explicitly linked to that

programme. General classes and historical attendance without a lesson link are not guessed into a programme.

  • If the counter cannot be checked, staff see an honest unavailable message;

the scores API no longer returns believable blank counts after a failed read.

Behind the scenes - erasure no longer trips over unlinked attendance

  • Attendance records without a lesson can now be retained in the deletion audit

during an authorised member erasure or parent teardown.

  • A null lesson is explicitly not treated as proof of a parent cascade, so the

existing refusal of unauthorised direct attendance deletion remains in force.

  • The two database changes were owner-applied in the reviewed order and passed

their 4/4 and 8/8 production postflights before the matching code merge.

Club logos no longer trigger arbitrary server requests

  • PDF and inline-email branding now downloads only the current club's logo from

this project's club-logos storage bucket.

  • Internal, metadata, external-host and cross-club logo URLs are rejected

without making a request.

  • Club Details now uses the validated logo uploader only. A legacy externally

linked logo should be re-uploaded; PDFs deliberately fall back to the club name until that is done.

Large course and video uploads are safer and more reliable

  • Course media now uploads straight to private storage, so large files no

longer have to pass through the application server before progress appears.

  • Course documents are checked as real PDF, image, video or Office files before

their storage path can be saved. Renamed ZIP files and unsafe archives are rejected.

  • Family video submissions are confirmed against the object actually stored;

missing, altered, oversized or replayed uploads are refused instead of saving misleading metadata.

Safer previews and spreadsheet exports

  • Automation email previews now keep template HTML inside an isolated preview

frame, so a template cannot run code in the AllSorted page.

  • Grading and event CSV exports treat formula-looking names and values as text

when opened in Excel, LibreOffice or Google Sheets.

  • The stricter browser script policy is fully tested but remains off by default;

it will move through report-only review before any production enforcement.

Safer diagnostics and more honest cleanup

  • Error reports now remove credentials, contact details, addresses, dates of

birth, safeguarding and medical details, and payment/provider references before any event can leave the browser, server or edge runtime.

  • Stopping staff impersonation now invalidates the server-side credential before

clearing the browser cookie, so a failed cleanup cannot be presented as a safe stop while a copied token remains usable.

  • Push-subscription cleanup and delivery timestamps are checked and retried.

Persistent metadata failures are reported without sending a successful push a second time or claiming that a dead subscription was removed.

Enrolment invitations now preserve uncertain delivery

26-07-2026

What's new

Behind the scenes - uncertain invitations are not sent twice

  • If the email provider may have accepted an enrolment invitation but its

response cannot be confirmed, the invitation now remains visibly unresolved instead of being labelled failed.

  • Staff see a warning to check Communications before sending again. The public

post-trial request remains deliberately opaque and cannot reveal whether an address was delivered, queued, suppressed or unresolved.

  • Queued and unresolved invitations now keep that status after a page reload.

Their Resend action remains unavailable, and the server refuses to create a replacement token, until the existing delivery reaches a known outcome.

  • Provider identity and bookkeeping intent are now stored in the same outbox

settlement that proves an email sent. The email-outbox cron repairs those durable post-send history/token markers without calling Resend again; failed and concurrent clears stay visible until a reread proves the marker is gone.

  • The Phase 5 release checklist now includes the provider receipt, Action Brief

and task-reminder SQL units in one ordered deployment matrix. Nothing was pushed, no remote SQL was applied and no real communication was sent.

  • A hash-pinned two-window owner runner keeps migration-before-code and

code-before-migration SQL in the reviewed order. Phase 5 closure is implemented locally and awaits independent review; it remains undeployed.

Behind the scenes - dependency security gate now decides rather than block

  • Two production advisories were fixed by upgrade, not suppressed. Image

processing moves to sharp 0.35.3, which also clears the advisory Next.js was reported under - Next.js held no advisory of its own there and stays on the current supported release. Nothing was downgraded.

  • The image optimiser was assessed as genuinely exposed, not theoretically:

member-facing pages use Next.js image optimisation over remote sources, so those library flaws were treated as reachable and fixed on that basis.

  • The weekly security audit previously had to pass or fail as a whole, which

meant one advisory with no available upstream fix could only be handled by weakening the check. It now runs against an explicit register that must match an advisory exactly - identifier, package, installed version and dependency path. The audit fails if any of those change, if a new high or critical advisory appears, if a register entry no longer matches anything, or once an entry expires.

  • Anything that reads as an authorisation or access-control flaw can never be

registered. The audit stops and reports instead.

  • One entry is registered today: a denial-of-service flaw in a pattern-matching

library reached only through spreadsheet export and error reporting, neither of which passes member-supplied text to it. The published fix cannot be applied because the affected copies are pinned by their parent packages, which was verified rather than assumed. This entry expires on 9 August 2026, and the security audit fails from that date until it is re-assessed - it cannot be renewed by moving the date alone.

  • Test-suite timeouts no longer report runner speed as a test failure. No

assertion changed; only the time budget for whole-tree source scans.

Behind the scenes - faster, cleaner development checks

  • Everyday checks now reuse TypeScript's incremental cache and select related or

domain-owned tests. The complete cold type-check, full suite, every scanner, lint and production build remain mandatory at phase, PR and release boundaries.

  • Reviewed packs cover Events, Money, Communications, Grading, Portal,

Memberships, Reporting, Automations and Platform work. Shared authority, database, dependency and CI changes automatically escalate to the full gate.

  • A workspace doctor now identifies oversized Next/Turbopack caches, generated

browser evidence and stale worktrees. Next output can be reset safely; evidence cleanup is dry-run by default and protects canonical and operational records.

  • Smoke artifacts no longer persist portal bearer tokens, and smoke run IDs are

constrained to a safe basename before any report or screenshot path is built.

  • This tooling phase changes no member or staff product behaviour and requires no

migration, environment change, feature flag or communication.

  • The test catalogue is now executable and locked: every test file belongs to

one class, each run publishes an execution manifest, and the aggregate rejects missing, duplicate, unclassified or silently skipped database coverage.

  • TypeScript 7 is available as the fast full-project checker while TypeScript

5.9 remains in place for Next.js, ESLint and compiler-based tooling. A parity gate runs both compilers and proves both reject a deliberate type error.

  • Six whole-app scanners now share one fresh in-memory source inventory. Their

rules and baselines are unchanged, and known-bad controls prove each optimized scanner still fails when it should.

  • Seven test classes now run as parallel CI lanes. The database lane creates a

disposable, fingerprinted Supabase catalogue on isolated ports, runs all 29 database files serially and refuses skipped, pending or todo database tests. The data-only fixtures, seed and both local API keys are verified before the class starts. The old optional database waiver is gone; one exact-once aggregate keeps the existing required CI / test check name.

  • The first clean-runner pass found two environment-only defects: the schema

diagnostic tried to replay 12 managed-role default privileges, and a control test inherited the outer GitHub SHA inside its temporary repository. Both are now explicit, controlled transformations rather than CI-only surprises.

  • Disposable database startup checks now identify the exact unhealthy service.

Local service-role verification uses the running PostgREST gateway; the database suites retain the stronger GoTrue admin-user behaviour proof without making a catalogue-listing endpoint a prerequisite for starting the class.

  • PostgREST readiness now uses a zero-row table read instead of generating the

full OpenAPI document for the application schema. Transient schema-cache rebuilds after reset are retried within a fixed limit; persistent failures still stop the lane and include the provider's safe error response.

  • Strict database evidence now preserves and prints every pending or todo test

name instead of throwing before the count was copied into the lane manifest. The raw Vitest report is retained with the class evidence for diagnosis; the zero-pending gate itself remains unchanged.

  • The disposable database now installs the reviewed PostgreSQL function defaults

before replay creates any function. This prevents fresh Supabase bootstrap grants from silently widening functions that are service-only in the captured catalogue. A preflight checks representative money, erasure, grading and invite authorities before any test starts.

  • That default-authority check now creates a real throwaway function inside a

rolled-back transaction before and after the database class. It proves the applying role, owner and inherited PUBLIC/anon/authenticated/service-role permissions instead of inferring them from default-ACL rows.

  • The schema-only database now receives a pinned CI-only attendance cutover

singleton. This supplies the real prerequisite used by class-pack triggers and turns an unexplained missing-row failure into a preflighted fixture contract.

  • Once the central database preflight succeeds, the census and Phase 2D runtime

suites fail loudly if they lose the database or local API keys; they can no longer account for six skipped assertions. Census failures retain the spawn error, signal, stderr and stdout tail with a larger bounded output buffer.

  • Historical exposure tests now create their vulnerable grants inside their own

controlled window and restore the exact state they captured; they no longer depend on an old shared-database posture or test-file order. The database lane also fingerprints functions, grants, RLS, policies, constraints, indexes, triggers and default privileges before and after all 29 files, failing if a green-looking test leaves catalogue residue for the next file.

  • Function-authority fingerprints now compare the complete effective grant set

in a stable order. PostgreSQL may store equivalent ACL entries in a different array order after a revoke and re-grant; that harmless representation change no longer fails CI, while any changed grantee, grantor, privilege or grant option still changes the fingerprint.

  • The exact-once matrix now accounts for 1,087 test files after the reviewed

database-baseline authority contract was added. The 29-file strict database class remains unchanged and still permits no skipped, pending or todo tests.

Provider delivery retries now preserve unknown outcomes

25-07-2026

What's new

Behind the scenes — uncertain messages cannot be sent twice automatically

  • SMS, email and Telegram delivery attempts now distinguish a confirmed failure

from a provider outcome that is still unknown. An unresolved attempt is held for review rather than automatically contacting the recipient again.

  • Delivery completion now checks the database response and the conditional row

update. A provider acceptance without durable local confirmation is reported as indeterminate, never as successfully sent.

  • Replaying a demo-suppressed owner Telegram notification remains suppressed

instead of being counted as delivered.

  • When an owner notification reaches one recipient but another result is

unknown, the automation records the mixed outcome visibly and does not finalize the step as fully sent.

  • No database migration, environment change, feature-flag change or real

communication is required by this correction.

Behind the scenes — automation and reminder delivery closure

  • Immediate automations now stop before contacting a provider when their

required run or recipient claim cannot be recorded. Mixed recipient outcomes remain truthful, and an unresolved recipient can no longer be hidden by a successful one.

  • Built-in event, trial and class fallback emails now inspect the real provider

result and reuse a stable business-occurrence key. A thrown request is held as unresolved rather than reported as sent or automatically retried.

  • Transactional email outbox rows are claimed before provider delivery. Only a

confirmed provider rejection can return to the retry queue; unknown outcomes are held for review and shown in platform health.

  • Task-reminder digests now have a proposed durable four-outcome authority.

Proven failures retry under their original identity, newly due tasks stay in a separate digest, and unresolved Telegram outcomes cannot be reclaimed by the next cron tick.

  • The delivery caller registry is now generated from individual AST call sites

rather than a hand-maintained file list. It distinguishes keyed and unkeyed wrappers and fails when a sender is added, removed, moved or loses its claim evidence.

  • The task-reminder migration was applied and rehearsed against local Docker

only. Nothing was pushed, no remote SQL was applied, no flags changed and no real communication was sent.

  • The final independent review also brought accident-report attachments through

the shared email boundary with a stable report key, and made Telegram text-plus-attachment sends report partial or unknown outcomes instead of claiming the whole bundle was delivered.

  • Long task-reminder digests are now split into stable Telegram-safe chunks, and

failed digest groups cannot be split by the database claim limit.

  • The caller ratchet now freezes 110 call sites, including Telegram documents

and the direct Resend SDK boundary, and its claim evidence is isolated per callback rather than by display label alone.

  • Closed the final scheduled-email delivery ambiguity: attachment and batch

timeouts now remain unresolved instead of becoming retryable failures, every recipient reservation and terminal write is checked, and only confirmed sends create a sent activity entry.

  • Trial lifecycle emails now use one durable occurrence per club, trial cycle

and stage. A provider timeout can no longer cause the next daily run to send the same nudge again, while a pre-provider claim failure remains safely retryable. Trial expiry and suspension writes are conditionally verified, and an unknown delivery or failed state write turns the cron heartbeat red.

  • The weekly video-review digest now pages every source read, reuses one stable

weekly key per recipient, and records sent, suppressed, failed and unresolved outcomes separately. Database errors, capped reads and an unrecorded audit result now turn the cron heartbeat red instead of producing a believable empty report or allowing a duplicate retry.

  • This digest correction needs no database migration, environment change,

feature-flag change or real communication.

  • Scheduled SMS and Telegram jobs now keep a provider-call exception visibly

unresolved and terminal. Only work proved to have stopped before the provider remains eligible for automatic retry.

  • Owner Telegram fan-out now reports post-provider exceptions as indeterminate

for both keyed and legacy unkeyed callers, rather than presenting an unknown delivery as an ordinary failure.

  • Action Brief email and Telegram delivery now use the same four-outcome model:

delivered, deliberately suppressed, proven failed, or indeterminate. Database errors, thrown settlement writes and zero-row updates cannot produce a false delivered result, and the Action Brief health heartbeat turns red while an outcome is unresolved.

  • Action Brief's expanded ledger statuses require the additive

action-brief-four-outcome-01.sql corrective after action-brief-01.sql. It has been rehearsed on local Docker only; no remote SQL was applied, no feature flag changed and no real communication was sent.

  • An independent Phase 5 code review found no P0 or P1 issue. Its final bounded

P2 bookkeeping family is now closed: late email-outbox and immediate enrolment-invite success prove same-club history/token updates and surface returned errors or zero-row writes without resending an accepted email.

  • Staff now see a warning when an enrolment invitation's provider outcome is

known but its local history needs review. Delivered, queued and suppressed outcomes remain distinct; the public trial response stays deliberately opaque. Phase 5 is code-closed locally but remains undeployed.

Register ownership checks, proven end to end

24-07-2026

What's new

Behind the scenes — every register assignment now has one club owner

  • The proposed database protection for register coaches and volunteers now checks the whole

relationship, not only the person. A class assignment must bind a lesson, its declared club and its member or staff user to the same club, including when an older row is edited by changing only the lesson. This closes an edge where individually valid IDs could otherwise be combined across two clubs.

  • The proposed register snapshot routine independently binds every assignment and displayed person

to the club being requested. It remains an unchanged (club, date) → snapshot interface, but is now an all-or-nothing migration with exact body, role and configuration checks.

  • Deployment order is explicit and enforced: the reviewed Phase 2D function-authority correction

must be applied and verified before the snapshot routine is replaced. Applying in the wrong order stops with no partial change.

  • A new rollback-owned local database rehearsal proves the wrong-order refusal, idempotent reapply,

same-club happy path, historical cross-club omission, insert/update refusal, exact authority and zero residue. The repository's privileged-function baseline now includes the reviewed proposed definition. Nothing was pushed or applied to a remote database.

  • The owner-only Phase 2D database-authority rollout now has a guarded one-command helper. It runs

the complete local checks, confirms the production target, securely prompts once for the database password, applies both reviewed units in order and only reports success after an exact nine-out-of-nine production postflight. A check-only mode cannot connect to the database.

  • Phase 2D has now been applied by the owner and independently checked against the frozen

production manifest: all nine postflight rows passed. Future database functions default to the reviewed restricted authority, existing application function callers retain exactly their declared access, and no function body or customer data changed.

  • The remaining register ownership protections now have the same guarded owner workflow: one

command checks the reviewed files, displays the count-only historical diagnostic, applies the write and read protections in order, and accepts completion only after a unified nine-row postflight. It never repairs or exposes historical assignment data automatically.

  • The owner has now applied those register protections. All nine production checks passed and

there were no historical invalid assignments to repair. The deployed register snapshot remains service-only, has its current body fingerprint recorded, and the next access-control phase can begin.

Behind the scenes — staff actions now follow each club's effective permissions

  • API-token controls, automation run controls and scheduled-report test sends now enforce their

declared permissions on the server. Lower-access staff can no longer reach these operations by calling the route directly.

  • Sensitive grading, event, competition and lesson-plan exports now use explicit view/export

permissions and record an access audit. Competition files and rosters are bound to the active club before their data is loaded, with the same not-found response for missing and other-club records.

  • Custom staff permission grants and denials now carry through older route helpers and secondary

page scopes as well as the main route guard. Payment-provider connection remains owner-only and cannot be delegated; the established admin threshold for changing an event grading target is preserved.

  • Automation control denials retain their clear forbidden response instead of being remapped to a

generic server error, and API-token metadata is restricted to the active club as well as the current staff user.

  • Multi-club staff can again vote on a feature request through their real club-access record; a

stale column name had previously denied that legitimate path.

  • These changes are complete on the local branch but have not been pushed or enabled in

production.

Behind the scenes — safer public links and scoped API credentials

  • Public invite, cancellation, calendar, payment and portal links now share one

non-cacheable, no-referrer and no-index response policy. Missing throttles on event validation/cancellation, external-entry cancellation, portal activation, trial cancellation, calendar feeds and email unsubscribe have been filled before their privileged database reads.

  • Email unsubscribe now distinguishes the authoritative preference write from

its activity log: a failed preference write cannot claim success, while a committed opt-out remains successful if only telemetry needs operator attention.

  • Coach API credentials now carry a 180-day expiry and explicit scopes for the

two real voice-note consumers. Scope mismatch and authority-read failure stop closed; removing a staff member's club access invalidates their token immediately, and plaintext is still returned only once when a credential is minted.

  • Newly issued event waitlist claim links now include a signed issue time while

existing links continue to work. No age limit has been switched on in this compatibility stage.

  • A source-derived registry now covers 22 credential families and 54 route

methods. It corrects stale route classifications and fails the build if a public-token route is omitted, loses its limiter or a raw-token family has no compatibility plan.

  • Five proposed database units have been double-applied and behaviorally

rehearsed on local Docker: one for API-token expiry/scopes, plus additive hash stages for examiner, enrolment, calendar and trial-cancellation tokens. They preserve every existing raw link, reject duplicate source credentials before indexing and repair a drifted hash on reapply; no remote SQL was applied and the later hash-first code/UX cutover remains a separate reviewed step.

  • That compatibility cutover is now authored locally. Examiner, enrolment,

calendar and trial public checks prefer the stored hash while old links and a code-before-migration deploy remain supported. Unexpected database errors stop safely rather than being mistaken for a bad link, and revoking any of the four credentials also clears its hash.

  • Raw-link cleanup is deliberately not claimed complete. Existing examiner and

calendar links can still be re-shown to authorised staff, and trial transaction/recovery work still needs the raw value. Those final rotation and recovery changes remain a separately reviewed phase before plaintext columns can be retired.

  • The independent hardening pass closed the compatibility edges before release:

examiner throttles now use a one-way token hash on every public method, multi-method routes are checked handler by handler, and only an error naming the exact not-yet-deployed hash column may use the legacy lookup.

  • Hash-stage migrations now repair direct hash tampering, reject wrong

same-name indexes, and have bounded lock waits. A count-only production preflight reports duplicate groups, rows to backfill and relation size so the owner can choose a quiet apply window; the postflight verifies each exact trigger and index rather than accepting an object by name alone.

  • The Phase 2D source-caller evidence was regenerated after the route edits.

The inventory now contains 200 calls: the new server-only provider receipt and Telegram token authorities introduce no browser RPC caller.

  • The independent review follow-up tightened the compatibility matcher so a

different missing column whose name merely ends in token_hash cannot enable legacy fallback. The final plaintext-cleanup checklist now also requires the staging hash triggers to be replaced or removed before raw values are cleared, preventing those triggers from clearing the authoritative hash.

Behind the scenes — register deletion remains recoverable

  • A follow-up review found that the already-applied register ownership trigger

could block deletion of a member or staff user if an older malformed assignment linked them to a lesson from another club. The intended ON DELETE SET NULL branch ran after the lesson check, so the cascade could fail before reaching it.

  • An additive corrective is now authored and rehearsed locally. It admits the

all-null cascade only when the assignment's club and lesson stay unchanged, while continuing to reject cross-club people, dual-person rows and attempts to repoint an orphan. It changes no customer data and is not applied remotely.

  • That corrective now refuses to replace an unknown deployed trigger function,

enforces the expected owner, and verifies the trigger's exact function binding and update-column set. Its rehearsal deliberately installs unknown drift first and proves the migration stops before replacement.

  • Standing function-authority checks now use the current reviewed function body

after later migrations, while the original Phase 2D postflight remains immutable deployment evidence.

Behind the scenes — reliable inbound SMS and Telegram

  • Inbound SMS is now designed around each club's own signing key and forwarding

destination rather than one deployment-wide identity. The club in the webhook address is only a selector; the matching club key must prove the request before any message or member record is touched.

  • SMS and Telegram now share a durable provider-receipt model. An immutable

provider event is claimed before business work, redelivery cannot duplicate messages or activity, and a real processing failure asks the provider to retry instead of reporting a false success.

  • A provider event ID reused with different payload content is now rejected

before effects, and SMS distinguishes the webhook event ID from the message ID used for delivery-status correlation.

  • Telegram account linking now consumes the one-time link and creates the chat

link in one database transaction. Competing uses cannot both succeed.

  • Creating replacement Telegram link tokens is atomic at the database boundary

across email invites, staff QR links and the member portal. If that database replacement fails, the previous unused token remains valid. Once it commits, a later email, QR or response failure is reported honestly and does not pretend the previous link still works.

  • Provider-triggered replies and staff forwards have their own idempotency

record. A definite provider rejection can retry; an unknown network outcome is held for review rather than risking a duplicate message.

  • Outbound SMS no longer reports success unless both the provider acceptance

and local message row are durable. An unreadable demo-club state now fails retryably instead of being mislabelled as a successful demo suppression.

  • SMS now supplies its own provider request ID, Telegram validates the complete

success envelope, and both providers have bounded request times. Missing or ambiguous acknowledgements remain visible as unknown rather than being recorded as sent.

  • Telegram setup now verifies its database writes, bot commands and registered

webhook, serialises competing connection attempts, cleans up an ambiguously registered provider webhook, reports outbound/inbound/destination health separately, and refuses to overwrite a working bot through a direct API call.

  • Demo owner Telegram copies are now recorded as suppressed rather than sent or

mislabelled as missing configuration. The release postflight also verifies the exact receipt fingerprint and immediate identity constraints required by webhook deduplication.

  • Request bodies are bounded, delayed SMS status events cannot move a delivered

message backwards, and the platform health page distinguishes processed, duplicate, failed, stuck and unknown inbound work.

  • The database authority, preflight, postflight and two-session concurrency

rehearsal are complete locally. Nothing in this section has been pushed, applied remotely or used to send a real message.

Behind the scenes — an unknown send is no longer treated as a known one

  • A message the provider may already have accepted is never sent twice. When

an SMS or Telegram request timed out, the outcome was recorded as an ordinary failure. Failures are retried, so a message the provider had in fact accepted could be delivered a second time to a real member. A timed-out send is now carried through every step, fan-out and queue as its own explicit "unknown" outcome: the delivery is left open for a human to resolve and is never retried automatically.

  • **A household message that reached one parent but not the other is reported

honestly.** Telegram sends to every linked chat for a member. Previously, if one chat delivered and another timed out, the whole step was recorded as sent — which allowed a retry that would have re-sent to the parent who already had it. Any unknown recipient now makes the whole step unknown.

  • A Telegram account can no longer be disconnected because of timeouts. Three

consecutive delivery failures automatically unlink a chat. A timed-out send was counting towards that total, so a perfectly valid account could be unlinked after three slow responses. Only a genuine, provider-confirmed rejection counts now; an unknown outcome leaves the count untouched.

  • A step is only reported as sent once the record of it is safely stored. The

automation runs view could show a message as sent, or a scheduled send as succeeded, when the final write recording it had not completed. Every such place now checks that write and reports "unknown" instead of claiming success.

  • A send is no longer attempted when its safety record cannot be written. If

the database could not record that a send was about to happen, the message was sent anyway with no duplicate protection. With protection enabled, the send now stops instead. When the feature is switched off, the previous non-blocking behaviour is unchanged.

  • Operator note. Nothing was pushed, applied to a remote database, enabled or

used to send a real message. There is no migration and no flag change: this is application logic plus tests, and behaviour with DELIVERY_IDEMPOTENCY off is deliberately unchanged.

Behind the scenes — the same unknown-send rule everywhere

  • Telegram now reports a timed-out send the same way SMS already did. One adapter still

discarded the "we don't know" signal, so a Telegram timeout was recorded as a plain failure — and failures are retried. It is now carried through like every other channel.

  • A club's own Telegram send can no longer disconnect a parent's chat through timeouts. The

staff "send to one member" path counted an unproven send towards the three-strikes rule that automatically unlinks a chat. Only a genuine, confirmed rejection counts now.

  • **Scheduled sends, the older automation queue and the message-flow worker all follow the same

rule.** Each of them previously turned an unknown outcome into an ordinary failure, which meant the message could be sent again. Each now parks the item for review instead: no delivery timestamp, no automatic retry, and a clear reason recorded.

  • A message that reached one channel but not another is no longer reported as fully sent. If an

email went out and the text message outcome was unknown, the operation stopped being reported as a success. The unknown now wins, on every dispatcher.

  • A deliberately suppressed message is no longer counted as a failure. Demo clubs and

non-production sends are a correct outcome, not an error, and all-suppressed jobs now finish cleanly instead of looking like provider problems.

  • Operator note. No migration, no flag change, nothing pushed or applied remotely, and no real

message sent. Where a database column had no honest "unknown" value, an absent record plus a precise reason is used rather than a misleading "failed". One known limit is recorded in the delivery caller census: unknown deliveries are safe (nothing re-sends) but are not yet listed on an operator screen.

A simpler after-apply database check

23-07-2026

What's new

Behind the scenes — a clearer owner verification

  • The Phase 2C after-apply check is now a single read-only file that can be pasted

directly into Supabase's SQL Editor. It returns one overall verdict and six named function checks, each with a plain-English reason if something is not configured as expected. This changes no data or permissions; it makes the owner-run verification harder to misread before the next phase begins.

  • The owner completed that check successfully, closing the remaining Phase 2C

database permissions work in production.

  • Phase 2D has opened with a read-only production function inventory and a

mechanically generated application caller index. No permissions have changed in this opening step; the evidence is collected first so legitimate features are not accidentally blocked.

  • That production inventory has now been fully classified. The next database

permissions package is prepared and locally rehearsed: it makes future app-owned functions private by default and removes unnecessary direct access from 22 existing internal functions while retaining every reviewed staff workflow. It remains unapplied and has no live effect until the owner runs the two SQL units and receives an all-PASS after-check.

  • A permanent source check now also stops any newly added privileged database

function until its callers and exact role access have been reviewed, so the same broad-access pattern cannot quietly return in a later migration.