Skip to content

chore: feature train 20261101-1657 - #5265

Merged
tale-code-bot merged 14 commits into
release/0.6from
feature-train-20261101-1657
Nov 1, 2026
Merged

tale-code-bot merged 14 commits into
release/0.6from
feature-train-20261101-1657

Conversation

@tale-code-bot

Copy link
Copy Markdown
Collaborator

Cut: 44670b2

The sixth feature train of the 0.6 line: the commits feature-train collected on top of release/0.6 (4e43de2d9…, which holds main at 087c74cf0…), oldest first:

  • feat(platform): let an organization refuse members' personal API keys
  • feat(platform): let an agent's mention hand a task to the agent it names
  • feat(platform): let admins block a member's own API key here
  • fix(platform): fail a run whose sandbox workspace was deleted
  • feat(platform): list members' personal API keys for admins
  • perf(platform): refresh sessions outside an idle window every 5 minutes
  • perf(platform): search members on the server in pickers and filters
  • perf(platform): bound knowledge search work per query
  • perf(platform): charge rest:api from leased slices, not per request
  • perf(docs): serve each docs image in the widths a screen needs
  • perf(platform): read a team's and a key's budget sums through an index
  • refactor(platform): share the walk's limits, progress, ledger and ports

Task keys of their Task: lines: TALE-305, TALE-313, TALE-304, TALE-67, TALE-224, TALE-260, TALE-285, TALE-120, TALE-125, TALE-112, TALE-119, TALE-195.

TALE-67's and TALE-285's commits were taken out of #5248 and have landed on feature-train again. release/0.6 holds neither of them.

Known before departure, from the role's own runs:

  • TALE-305's commit will fail 14 tests in Unit (platform …).
    • The cause: 7d2cd43ad makes the /api/v1 door read the personal_keys policy strictly. personalKeysStandingIn in services/platform/backend/domains/api_keys/personal-keys.ts calls readGovernancePolicy(orgSlug, 'personal_keys', { strict: true }), which throws while TALE_CONFIG_DIR is unset. In .github/workflows/checks.yml only the backend integration job sets it.
    • Where: 14 of the 37 tests in services/platform/backend/rest/v1.not-found.test.ts, services/platform/backend/rest/v1-model-api.door.test.ts and services/platform/backend/app.conditional-get.test.ts.
    • The fix is test-only. It stubs readGovernancePolicy for personal_keys in those three files, as services/platform/backend/rest/v1.test.ts already does. With it, the three files pass 37 of 37 in the role's worker.
    • The role commits the fix on this branch once CI shows that failure.
  • The fast gate on 44670b249 ran with an 8 GiB heap and --concurrency=1.
    • bun install --frozen-lockfile and format:check pass.
    • turbo typecheck build passes 24 of its 26 tasks, and git status stays clean.
    • Two builds fail on the network alone: @tale/cli#build (Failed to download 'bun-darwin-aarch64-v1.4.2': DNSResolveFailed) and @tale/web#build (getaddrinfo ETIMEOUT api.github.com). This pull request's Build is what builds them.
  • TALE-195's tests on b7ca679ab. That is its commit before feature-train moved onto the current release/0.6; the trees differ only in .github/release-notes/v0.5.95.md.
    • The two legacy-flow guards and purity.test.ts pass 20 of 20.
    • The server project's lib/engine, backend/core/automations, backend/domains/{automations,sandbox}, backend/jobs and tests/guards pass 4288 of 4289.
    • The UI project's app/features/automations passes 1727 of 1730.
    • Three of the four failures are the worker's, below. The fourth, version-compare-page "opens what changed in a node picked on the graph", fails only under load and passes alone. It is the flake the test itself describes.
  • Failures of the role's worker, not expected in CI (CI runs Node 22.21.1, the version services/platform/Dockerfile pins):
    • lib/engine/core/validate/golden-errors.test.ts expects /(?i:yes)/: Invalid group. The worker's Node v24.21.0 accepts regex modifier groups.
    • condition-text.test.ts and condition-values.test.ts expect 1’000 for de-CH. The worker's ICU 78.3 / CLDR 48 formats 1'000.

Not run in the role's worker:

  • the full platform unit, UI and integration suites; the role ran only the parts named above;
  • the browser tests;
  • Knip and lint;
  • E2E.

The feature-train role lands this pull request by rebase once every check passed, so each task stays one commit on release/0.6. It ships with 0.6.0.

An organization's Owners and Admins can now turn members' own API keys
off in Settings > API > REST: the governance policy `personal_keys`,
on until it is stored off, so nothing changes for an existing
organization. Off, the `/api/v1` door refuses a person's own key in
that organization (REST, the MCP endpoint and the model endpoints)
with 403 `API_KEY_PERSONAL_REFUSED`, whose `data.organizations` lists
the holder's organizations where it still works; the key keeps working
there, and every key made in the organization (for a member, a team,
a project or the organization) keeps working in it. The read is
strict, so while the policy cannot be read, a person's own key is
kept out with 503 `PERSONAL_KEYS_POLICY_UNAVAILABLE` and
`Retry-After`.

Each change is a governance policy audit entry, and only an Owner or
Admin may make it (the policy write's existing gate). The REST tab
shows the switch to an Owner or Admin and tells any other member,
in en, de and fr, when their own keys are refused there or the
setting cannot be read (`/my/api-keys` answers `personalKeys`). The
MCP settings tools read and change it under `api/rest`, turning it
off as `revokes-access`.

APIKEY-R12 specifies it (APIKEY-R8 points to it), the API keys admin
docs (en, de, fr) and the API reference describe it, the integration
lane checkPersonalKeysPolicy proves it on real HTTP and Postgres, and
the contract moves to 3.53.0 for the two new codes.

Closes #5218

Task: TALE-305
A comment an agent's live run writes through task_comment that names
another agent of the project now hands the task to it, as a person's
mention does: once the writing run has ended (whichever task it works)
and no other run holds the task, the named agent starts through
task_start_agent's own start, on behalf of the writing run and with its
starter, assigned to the task and with the comment as its feedback. On
a task In review whose pending review is routed to the named agent, the
mention starts that agent in place on one of its review contexts: the
review stays pending and the card does not move.

Only a run whose agent holds task_start_agent, that is not confined and
that no other agent started hands a task on; a mention in a quote or
code, of the writer itself or of an agent already working the task
starts nothing, and a working agent is never steered. The one-hop rule,
the hourly start limit and every other refusal of task_start_agent
apply. A pending handoff waits in app.task_mention_handoffs (migration
0230, one per task and named agent), is taken up when the writing run
or the task's run ends and by the task-agent watchdog, and is dropped
when the task is closed, archived or reassigned to a person, the
comment is deleted, the grant or the starter is gone or the review was
decided. Each start, refusal and drop lands on the task's history with
its reason (TASK-R88 to TASK-R92); task_comment and the docs say what a
mention hands on.

Closes #5229

Task: TALE-313
An Owner or Admin can now block a member's personal API key in one
organization only, from the member's row in Settings > Members. The
key's requests there are refused with 403 API_KEY_BLOCKED, on the REST
routes, the MCP server and the model endpoints alike, and the answer
lists the organizations where it still works (neither blocked nor
refusing members' own keys). The block does not reach the holder's
other organizations, and the holder keeps the key. The same roles lift
the block. An Admin cannot block an Owner's key or lift its block, an
Owner can do both on anyone's, nobody blocks their own key
(API_KEY_BLOCK_FORBIDDEN), and a key bound to an organization is ended,
not blocked (API_KEY_NOT_FOUND). The holder's role is read in the
serializable transaction that writes the block.

Blocks live in app.api_key_org_blocks (migration 0231) and go with the
organization. Each block and each lift is one audit row
(api_key.blocked, api_key.unblocked) naming the actor and the key by its
masked ends; repeating either records nothing. The holder hears of each
in the bell, and their own key list marks the key blocked in that
organization. The admins' dialog lists only the member's keys that are
still valid (turned on, not expired) and never their last use, which
would tell of the holder's work in other organizations. With them it
answers this organization's standing on members' own keys (APIKEY-R12):
while they are turned off it marks no unblocked key as working here but
as refused, and while the setting cannot be read only the blocked ones,
with a notice saying which; blocking and lifting stay possible.
GET /api/app/api-keys/members/:userId/personal and
PUT/DELETE /api/app/api-keys/:keyId/block serve it, and the REST
contract goes to 3.54.0.

APIKEY-R8 and the new APIKEY-R11, docs/{en,de,fr}/platform/admin/
api-keys.md, the manual boxes SET-F103 and SET-B48 and the error-code
reference say so.

Closes #5217

Task: TALE-304
After an administrator's Destroy had settled, an automation run's next
agent step went on in a fresh, empty workspace and silently lost the
files its earlier steps left there. The slot reserve now refuses an
automation run a new session once the newest row under its session id
reads destroyed (SANDBOX_WORKSPACE_DESTROYED), and the step fails at
once with that reason, never retried, as a pending Destroy already
makes it. Both reasons now tell the reader to start the automation
again instead of reading like a wait.

This release's lanes read quota refusals and park reasons from the
refusal's own fields alone (its code and reason, or an AppError's
data), so an error whose message merely names QUOTA_EXCEEDED or a
destroy_pending reason, such as a staging error quoting an uploaded
file's name, is no refusal. They read them through start_refusal.ts
and run_workspace_destroy.ts, while capacity_refusal.ts and
session_constants.ts stay byte for byte as the released 0.5 automation
flow reuses them, which the legacy-flow provenance guard pins.

The real-Postgres lane checkAutomationStepDestroySettled covers the
settled case, the pending lane pins that its step was never retried,
and the sandbox spec (SBX-R9), the EN/DE/FR Sandboxes page, the
automation register and the error-codes reference describe it.

Closes #4159

Task: TALE-67
Owners and Admins get an "All keys in this organization" view in
Settings, API, REST. It adds the personal keys of the organization's
members that work here to the keys they manage. Each such row is marked
as a personal key and names its holder by name and e-mail.

The view is read-only. A member's personal key offers no revoke here
and shows no last use, because the key records its last use across
every organization its holder belongs to. Keys of former or disabled
members, disabled keys, expired keys and a member's own key this
organization blocked (APIKEY-R11) are not listed. The viewer's own
blocked key stays listed with its mark. Members, Developers and Editors
keep the list they had. The view reads its keys afresh each time it
opens, since a membership change sends no key hint.

The view follows the members' personal keys setting (APIKEY-R12). While
the organization refuses those keys, or the setting cannot be read, it
lists none of them, the viewer's own included, and says why above the
table. Saving the setting sends an api_key hint, so an open view
refreshes.

The list endpoint takes scope=managed or scope=all, managed by default,
and answers 400 INVALID_QUERY for any other value. For scope=all it
also answers personalKeys. APIKEY-R8, the admin docs in en, de and fr,
and the manual suite (SET-F102) describe it. The keys table's actions
column now carries its "Row actions" label.

Closes #5045

Task: TALE-224
With SESSION_IDLE_TIMEOUT_MINUTES unset, Better Auth's updateAge was a
minute, so every active session was written once a minute, and since the
session indexes of #4707 each such write updates every index of "session".

A session whose user no organization's idle window covers now refreshes
every five minutes, a fifth of the writes. One whose user a window covers
keeps the minute: the session hooks write its expiry four minutes earlier
at sign-in and at each refresh, so one Better Auth config serves both
cadences, and the idle sweep tells the two kinds of row apart by
"expiresAt" - "updatedAt". A user the hooks cannot place refreshes every
minute, as before.

When a window comes into force for a five-minute session (an organization
turns its policy on or shortens it, a user joins or is enabled again), the
sweep stamps the row before it judges it: "updatedAt" becomes
least(now, "updatedAt" + 5 minutes), never earlier than its last request,
and the row refreshes every minute from then on. A five-minute row the
stamp did not reach is judged as if stamped. So a session in use is never
revoked, and one already idle goes at most five minutes late, once.

With the variable set, every session already refreshes every minute and
nothing changes for it. Rows written under an earlier setting, unset or
laxer, are brought under the window with the same stamp, at boot before
the server answers and before every sweep, in batches down the expiry
index; a "don't remember me" row, never refreshed, is left as it is.

The environment reference (en, de, fr) states both cadences, the one-time
bound and the longer first start after the variable is set or lowered.

Closes #5164

Task: TALE-260
The task assignee and reviewer pickers, the @-mention autocomplete, the
board's assignee filter and the conversation assignee picker read every
member of the organization (GET /api/app/members/, no limit) to offer a
few. On the server, the mention directory read every member whenever a
saved text named a plain @handle.

Add GET /api/app/members/search (MEMBER-R12): any member of the
organization searches its members by what their name or email holds, a
keyset page of 50 (at most 100) in the order they joined, with no
sign-in factor. A name also matches with its spaces as dots or without
them, and the spaces typed also match hyphens. access=read leaves
disabled members out and, with a project, keeps those who can read it,
counting only the organization's own teams; access=edit keeps the roles
from Editor up. It replaces GET /api/app/projects/:id/accessible-users.
The member search and the task search escape their patterns with
likeContains of db/sql.ts, as the chat and project searches do.

The pickers, the mention field, the board filter and the conversation
picker search as people type (useMemberSearch), and say when more people
match than a page holds and when the search failed. The pickers and the
board filter keep the person already chosen offered through the member
lookup (MEMBER-R11), and the board filter reads its note out only once
its search settles. The task pickers keep the project narrowing and
leave disabled members out; the conversation picker now leaves them out
too, as the server refuses them as assignees; the board filter still
finds every member. @tale/ui gains MentionTextarea.onQueryChange, a note
under its picker and a searched filter facet.

The mention directory reads only the members a text names, through
lookupMembers, and gives each agent the handle it had (PROJ-R19). A
lookup that fails counts against its members leg.

The other screens that read every member move in #5206.

Closes #5195

Task: TALE-285
A knowledge search did work in proportion to the organization's whole
corpus on every query. Before each dense search it counted every chunk
in scope to choose between an exact scan and the HNSW index, and every
hit summed the length of all earlier chunks of its document to report
its offset.

The dense leg now counts its scope only one row past the exact-scan
bound (5,000), which makes the same choice on both sides of it: a
smaller scope is still counted in full and scanned exactly.

The indexer stores each chunk's offset with the chunk (core_offset,
knowledge-db migration 17), from the chunk written before it, so a
resumed slice continues the chain, and a copied document carries it.
The search reads the stored offset and sums the earlier chunks only
for a chunk stored before the column existed, so offsets stay the same
for documents indexed earlier; they store theirs on the next re-index.

Unit tests cover both sides of the bound and the stored and summed
offsets; a backend integration lane proves them on Postgres. The
per-organization vector partition stays with #5254.

Closes #4711

Task: TALE-120
Every authenticated /api/v1 request charged its key holder's `rest:api`
bucket with an UPSERT of its own, so a busy integration's reads queued
on one row and each read cost a write.

The rule now declares slices. Each process leases a slice of the bucket
in one write and spends it in memory. A slice follows the pace its last
one was spent at (doubling through a burst, at most 10 tokens) and lives
5 seconds. A lease refills the row to at most the capacity less those
5 seconds of refill, so across processes no window admits more than the
capacity plus its refill. A key's first charge in a process, and every
charge once the row runs low, still takes one token directly and is
refused with the same Retry-After. Every other rule keeps its charge per
request.

A burst from a full bucket can now stop up to 10 requests short of 200.
The rate-limit guide (en, de, fr) and the API description say so.

Closes #4716

Task: TALE-125
Every docs screenshot shipped as one file, up to 4480 px wide, and was
rendered as a bare <img> without srcset, sizes or dimensions: a phone
downloaded the retina desktop bitmap, and the layout shifted as each
image arrived.

- @tale/ui/images/responsive writes the policy down once: the width
  ladder (480 to 2880), AVIF and WebP, their qualities and the 200 KiB
  per-variant budget. @tale/ui/images/encode is the encoder the
  marketing site had (sharp is an optional peer), and @tale/ui/picture
  renders an AVIF source and a WebP srcset with the intrinsic size. The
  marketing optimizer and product screenshots use them and emit the
  same bytes as before.
- bun run docs:images encodes every page image's variants up to 1600 px
  (twice the docs column) into public/images/optimized/, records the
  original's sha256 in the manifest and its size in
  app/content/image-dimensions.ts. The capture runs it; it re-encodes
  only what changed and removes orphans.
- ImageZoom takes the variants, and DocsImage passes them with sizes,
  width and height, so the browser picks the file for its screen and
  reserves the box. The lightbox and /images/... keep the original.
  The sizes name the 48rem column, not auto: the client re-renders the
  prerendered page, and with auto Chrome fetched a second, wider file.
- image-manifest.test.ts holds every variant to the ladder, its header,
  the budget and the original's hash, and rejects orphans. The
  prerender suite checks that every built page serves its screenshots
  this way and names only files the build ships.
- The docs SSR build no longer copies public/ into dist-ssr/: nothing
  reads that copy, and with the variants it pushed the build's cached
  output past the 512 MiB a worker may write to one file. A prerender
  test keeps public/ out of the server bundle.

Closes #4686

Task: TALE-112
With a budget policy on, every chat turn's admission sums, under the
organization's admission lock, what each capped scope booked this
period. A team's sum stripped the door prefixes off every ledger row of
the organization's period before comparing one, and a key's sum had no
index on api_key_id, so both read the organization's whole period.

The team's sum now expands its members' ids, and the identities of the
team's own keys, into the forms a person's sum matches, in SQL, and
matches them as values of user_id, so the ledger's bucket index serves
it as it serves a person's. Migration 0232 adds
usage_ledger_api_key_period (org_id, api_key_id, period_key) on both
ledger tables, partial on keyed rows, for a key's sum. Only the
organization's sum still reads its whole period; rollup rows for it are
filed as a part of their own.

The new checkBudgetPeriodSums lane proves on real Postgres that every
scope's cap decides as before, one unit under, at and one over it with
holds; that the plans of a person's, a team's and a key's sum read only
their own rows through those indexes; and reports the rows each sum
reads and one admission's time, before and after. The plan reader moves
to integration-lane-helpers, which the paging lane shares.

Closes #4710

Task: TALE-119
The durable stepper and the in-process executor walk a run by the same
rules, but each kept its own copy of what that walk is made of; the
stepper even carried the executor's limits as constants of its own.
This is the first of three steps towards one walker behind ports
(#4927): the pure types move to light leaf modules under
lib/engine/core/walk/, and both walkers import them from there.

- walk/limits.ts holds the subautomation depth (3), the default cap on
  node executions (100) and maxRepeatsOf (5 when unset, never above
  20); the stepper's copies are gone, and typing, analysis and the
  editor's flow graph read the same ones.
- walk/progress.ts holds the progress a live run resumes from
  (NodeCheckpoint, NodeCursor, AgentCursor, RunCheckpoints and the
  agent turn types). checkpoints.ts keeps the functions that read it
  and re-exports the types for its importers.
- walk/ledger.ts holds the ledger port (RunLedger, BeginAttempt,
  CallAddress, LedgerCall, AttemptKind) and the pass-through ledger;
  the backend's ledger.ts keeps the durable ledger behind it and
  callThroughLedger.
- walk/ports.ts holds the progress sink (RunSink, HandOffNote and the
  in-memory inlineSink) and the approval gate's port, which stepper.ts
  re-exports for the client gates that import it from there.

Nothing a run writes changes: no new field in the record, the ledger or
the queues, and the engine protocol stays 2. The purity guard now walks
the new modules too and holds them, and everything they import, free
of acorn, ajv, yaml and periscopic.

Closes #4927

Task: TALE-195
@tale-code-bot tale-code-bot added the merge-train A merge train's pull request into main label Nov 1, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
@tale-code-bot
tale-code-bot merged commit 18705fe into release/0.6 Nov 1, 2026
109 of 113 checks passed
@tale-code-bot
tale-code-bot deleted the feature-train-20261101-1657 branch November 1, 2026 17:58
tale-code-bot added a commit that referenced this pull request Nov 1, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 2, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 2, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 3, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 4, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 5, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
tale-code-bot added a commit that referenced this pull request Nov 6, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
tale-code-bot added a commit that referenced this pull request Nov 6, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
yannickmonney pushed a commit that referenced this pull request Nov 15, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
yannickmonney pushed a commit that referenced this pull request Nov 15, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
yannickmonney pushed a commit that referenced this pull request Nov 23, 2026
TALE-305 made the /api/v1 door read the organization's personal_keys
policy strictly before it admits a member's own key. The read throws
while TALE_CONFIG_DIR is unset, and the door then answers 503
PERSONAL_KEYS_POLICY_UNAVAILABLE. The unit jobs set no config
directory, so on feature train #5265 (Checks run 41328935862) the 14
tests in three files that reach the door with a person's key got 503
instead of 200, 304, 404 or 405: app.conditional-get (3) and
rest/v1-model-api.door (1) in job 124914728346, rest/v1.not-found (10)
in job 124914728285.

Stub that one policy as stored nowhere in those three files, as
rest/v1.test.ts already does, so members' own keys work as in an
organization that never turned them off. Every other policy keeps its
real read.
yannickmonney pushed a commit that referenced this pull request Nov 23, 2026
Knip failed on feature train #5265 (Checks run 41328935862, job
124914729050) for six exports that no other module imports. Three of
the train's tasks added them:

- memberPersonalApiKeysQuery in use-api-keys.ts, and
  API_KEY_BLOCKED_NOTIFICATION_TYPE and
  API_KEY_UNBLOCKED_NOTIFICATION_TYPE in api_keys/blocks.ts (TALE-304);
- userUnderIdleWindow in auth/session-refresh.ts and
  SESSION_CLAMP_BATCH in governance/session-idle.ts (TALE-260);
- pickReviewContext in tasks/mention-handoff-runner.ts (TALE-313).

Each one is now private to its module. Nothing they do changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-train A merge train's pull request into main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant