Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
ac4333f
refactor(manual): give each suite its own automation coverage file (#…
yannickmonney Oct 9, 2026
efefaf4
ci: land main through the merge queue instead of up-to-date branches …
yannickmonney Oct 9, 2026
fc06dbf
ci: run the heavy suites only in the merge queue (#4607)
yannickmonney Oct 9, 2026
0ee5fd9
fix: complete safe managed release upgrades
yannickmonney Oct 9, 2026
26f3693
feat(platform): let agents add, edit and search knowledge entries (#4…
yannickmonney Oct 9, 2026
3226473
feat(platform): read task discussions like a chat thread (#4559)
yannickmonney Oct 9, 2026
da845ae
feat(platform): fold a board's Done and Cancelled lanes to a rail (#4…
yannickmonney Oct 9, 2026
139494e
feat(platform): draw a chat's own turns as the thread's bubble (#4570)
yannickmonney Oct 9, 2026
26d6765
refactor(platform): draw assignees and contacts with the shared Avata…
yannickmonney Oct 9, 2026
b459569
fix(sandbox): keep a session's transparent egress up on its own (#4552)
yannickmonney Oct 9, 2026
be9fc22
perf(sandbox): drop checkpoint fsyncs and resident harness wrappers (…
yannickmonney Oct 9, 2026
56e8ff3
fix(platform): end sandbox turns sooner and ride out spawner blips (#…
yannickmonney Oct 9, 2026
c9700d4
fix(sandbox): keep the spawner healthy through restarts and stuck sta…
yannickmonney Oct 9, 2026
b1528b0
perf(platform): let staged skills survive a sandbox restart unsent (#…
yannickmonney Oct 9, 2026
6300f97
fix(sandbox): fail a Kubernetes create fast when its Pod cannot start…
yannickmonney Oct 9, 2026
7e2829f
fix(sandbox): keep agent workspaces through lost sandboxes (#4560)
yannickmonney Oct 9, 2026
a0a2854
fix(sandbox): supervise egress DNS and clear deleted orgs' gateway ke…
yannickmonney Oct 9, 2026
18e18be
perf(sandbox): skip docker inspect when runnerd names its incarnation…
yannickmonney Oct 9, 2026
ef8f7c1
perf(sandbox): stop re-shipping the runtime image on every release (#…
yannickmonney Oct 9, 2026
a6bff19
feat(platform): read a task's discussion in the dialog as its convers…
yannickmonney Oct 9, 2026
f1bf7de
fix(sandbox): remove package caches an organization stopped using (#4…
yannickmonney Oct 9, 2026
e3490c2
fix(sandbox): bound and place Kubernetes session Pods, pre-pull the i…
yannickmonney Oct 9, 2026
8bf6bd7
feat(platform): hold chat titles, Improve with AI and later tool roun…
yannickmonney Oct 9, 2026
686f817
feat(platform): mention agents and people by name, stored by id (#4598)
yannickmonney Oct 9, 2026
0c975a7
fix(platform): size the gateway's provider worker pools by record kin…
yannickmonney Oct 9, 2026
4b3664b
feat(platform): run each agent task in a worker of its own (#4603)
yannickmonney Oct 9, 2026
89b7cb5
feat(platform): hold transcriptions and video links to usage limits (…
yannickmonney Oct 9, 2026
c787c59
test(sandbox): pass the runtime image where the cache test makes volu…
yannickmonney Oct 9, 2026
c317d2e
perf(sandbox): cut DinD session start and idle costs (#4599)
yannickmonney Oct 9, 2026
f930273
feat(platform): count embeddings and let indexing wait for a limit (#…
yannickmonney Oct 9, 2026
2782456
feat(platform): count connector calls apart from model requests (#4550)
yannickmonney Oct 9, 2026
2da2453
fix(sandbox): stop busy sessions gracefully and add a critical disk t…
yannickmonney Oct 9, 2026
6c7422d
perf(sandbox): cut BuildKit stack upkeep, idle time and disk (#4604)
yannickmonney Oct 9, 2026
e5e080b
fix(cli): retire canceled CI tails safely (#4580)
yannickmonney Oct 9, 2026
1abf7b8
feat(platform): count a subscription turn as a request at no cost (#4…
yannickmonney Oct 9, 2026
19aa15b
fix(platform): let agent turns ride out a sandbox spawner restart (#4…
yannickmonney Oct 9, 2026
05ab784
feat(platform): count an agent's run toward the key that started it (…
yannickmonney Oct 9, 2026
a49ce7e
feat(platform): warn in a project's chats and keep its caps apart (#4…
yannickmonney Oct 9, 2026
d0f43bd
fix(platform): name every category on an erasure receipt (#4568)
yannickmonney Oct 9, 2026
239424a
fix(platform): name a model comparison once (#4571)
yannickmonney Oct 9, 2026
c193cec
fix(platform): satisfy the type-aware lint on the board lane hooks (#…
yannickmonney Oct 9, 2026
12eb189
fix(platform): repair the tests and rule ids the agent worker merge b…
yannickmonney Oct 9, 2026
8c1da44
feat(platform): author automations over MCP at the editor's parity (#…
yannickmonney Oct 9, 2026
c1084f0
fix(platform): keep a send gliding when an earlier row redraws (#4618)
yannickmonney Oct 9, 2026
0d9f3b6
docs(docs): retake the task, chat, agent and sandbox screenshots (#4612)
yannickmonney Oct 9, 2026
34f556c
feat(platform): wake standing roles when workers finish (#4608)
yannickmonney Oct 9, 2026
f9ee880
fix(cli): retire deleted merge-group validation runs (#4613)
yannickmonney Oct 9, 2026
79a8c0f
fix(sandbox): keep the gateway log 3 days and give deploys 90 s to dr…
yannickmonney Oct 9, 2026
da07e49
perf(sandbox): expire organization mirror caches after two days (#4623)
yannickmonney Oct 9, 2026
8ca39cd
perf(platform): serve realtime streams from one shared reader per pro…
yannickmonney Oct 9, 2026
b94c7b6
perf(platform): cut auth reads and write contention found under load …
yannickmonney Oct 9, 2026
b29a781
fix(platform): keep appended task ranks short (#4594)
yannickmonney Oct 9, 2026
885aa07
perf(platform): read an organization's default credentials once per r…
yannickmonney Oct 9, 2026
3c3605f
perf(platform): space a long reply's progress writes by its length (#…
yannickmonney Oct 9, 2026
15a6007
feat(cli): smoke-test a running deployment through its public URL (#4…
yannickmonney Oct 9, 2026
0f55167
feat(load): add the smoke, stress and performance harness (#4589)
yannickmonney Oct 9, 2026
ed35d47
fix(platform): attest review batches and manage agent models (#4616)
yannickmonney Oct 9, 2026
33c3ab4
fix(cli): verify private origins through captured gateways (#4617)
yannickmonney Oct 9, 2026
f259686
docs: prepare v0.5.80 release notes (#4620)
yannickmonney Oct 9, 2026
143488a
perf(sandbox): size capacity by CPU, pace starts under CPU pressure, …
yannickmonney Oct 9, 2026
0fb9e5b
fix(sandbox): end stalled execs and refuse new ones in a session out …
yannickmonney Oct 9, 2026
4a41d01
fix(platform): clear stale task inputs and turn instructions from age…
yannickmonney Oct 9, 2026
c36cdcd
perf(sandbox): zstd image layers, 60-day transcripts and a Docker Eng…
yannickmonney Oct 9, 2026
6588cbd
fix(sandbox): recycle sessions whose egress proxy moved, cap egress c…
yannickmonney Oct 9, 2026
c19e0cb
perf(sandbox): keep staged inputs across idle stops, one-shot egress …
yannickmonney Oct 9, 2026
839807d
feat(sandbox): attribute OOM kills and retry out-of-memory runs after…
yannickmonney Oct 9, 2026
54d9e83
perf(platform): persist live agent transcripts at the readers' cadenc…
yannickmonney Oct 9, 2026
63c7499
fix(cli): provision pristine review contexts atomically (#4632)
yannickmonney Oct 9, 2026
1cb0a96
fix(sandbox): keep runnerd's token out of every exec's environment (#…
yannickmonney Oct 9, 2026
c8bbb1d
test(sandbox): read the staged manifest in tests without unsafe casts…
yannickmonney Oct 9, 2026
f58eed2
test(platform): repair the budget, arena and llm-step probes (#4637)
yannickmonney Oct 9, 2026
e31702b
docs(manual): count the task, settings and knowledge boxes again (#4640)
yannickmonney Oct 9, 2026
b3976a0
fix(sandbox): post-merge review fixes for the sandbox wave (#4642)
yannickmonney Oct 9, 2026
961b117
fix(cli): finish cancelled validation workflow graphs (#4638)
yannickmonney Oct 9, 2026
50eecbf
fix(platform): bound transform analysis separately from expressions (…
yannickmonney Oct 9, 2026
e5d8b81
fix(platform): preserve newer default credential reads (#4641)
yannickmonney Oct 9, 2026
6a62854
docs: prepare v0.5.81 release notes (#4645)
yannickmonney Oct 9, 2026
aba0341
fix(platform): recover malformed saved board preferences (#4646)
yannickmonney Oct 9, 2026
f87e5f6
fix: restore shared CI contract checks (#4625)
yannickmonney Oct 9, 2026
d1373d8
feat(cli): observe retained deployments without applying changes (#4648)
yannickmonney Oct 9, 2026
b18587a
fix(cli): keep observation schemas internal (#4649)
yannickmonney Oct 9, 2026
7d178ca
fix(platform): identify the current task execution (#4650)
yannickmonney Oct 9, 2026
fd277c4
fix(cli): preserve safe deployment observation phases (#4655)
yannickmonney Oct 9, 2026
29a9005
fix(platform): align screenshot readiness with saved comments (#4656)
yannickmonney Oct 9, 2026
50f90fd
fix(cli): preserve literal knowledge observation queries (#4657)
yannickmonney Oct 9, 2026
948ec23
fix(platform): attribute key-made audits to the key maker (#4659)
yannickmonney Oct 9, 2026
81d9934
fix(cli): identify retained observation refusal boundaries (#4660)
yannickmonney Oct 9, 2026
cb4e84f
fix(platform): cool subscription-disabled broker accounts (#4661)
yannickmonney Oct 9, 2026
277a17f
fix(cli): observe retained native lock metadata safely (#4662)
yannickmonney Oct 9, 2026
40fe29a
fix(ai-gateway): recover rejected access tokens
yannickmonney Oct 9, 2026
736d281
fix(ai-gateway): preserve terminal refresh refusals
yannickmonney Oct 9, 2026
13a4155
fix(cli): harden release workflow cross-platform gates
yannickmonney Oct 9, 2026
71b5ec6
docs(release): prepare v0.5.82 notes (#4669)
yannickmonney Oct 9, 2026
14921c9
fix(ci): retry transient release image registry failures (#4670)
yannickmonney Oct 9, 2026
81ef78d
fix(ci): fail fast on release smoke startup (#4673)
yannickmonney Oct 9, 2026
8333dbb
fix(platform): protect IME composition in commit fields (#4242)
yannickmonney Oct 9, 2026
e836391
fix(ci): publish release before triggering cli (#4674)
yannickmonney Oct 9, 2026
8792b47
fix(platform): surface recent feedback read failures (#4372)
yannickmonney Oct 9, 2026
b9a53ca
fix(platform): report guardrails recent-events read failures (#4373)
yannickmonney Oct 9, 2026
31ea6bf
fix(platform): surface sandbox allocation read failures (#4376)
yannickmonney Oct 9, 2026
0e2c593
fix(platform): refresh API key views across organizations (#4382)
yannickmonney Oct 9, 2026
a323303
fix(platform): preserve project breadcrumb on list failure (#4383)
yannickmonney Oct 9, 2026
610c1b1
fix(platform): expose pending-question read failures (#4388)
yannickmonney Oct 9, 2026
474e6e9
fix(platform): preserve bulk Inbox plaintext in HTML sends (#4389)
yannickmonney Oct 9, 2026
1225171
fix(platform): show older unread notifications instead of caught up (…
yannickmonney Oct 9, 2026
1fca1dc
fix(platform): isolate Microsoft import source paths (#4398)
yannickmonney Oct 9, 2026
0a5486b
fix(platform): name a failed import status read on the OAuth apps car…
yannickmonney Oct 9, 2026
efcf391
fix(platform): expose all contact source filters (#4406)
yannickmonney Oct 9, 2026
5172e4d
fix(platform): refresh project capability catalogs after changes (#4407)
yannickmonney Oct 9, 2026
f31bc40
fix(platform): replace org switch history entry (#4410)
yannickmonney Oct 9, 2026
10c6e0e
fix(platform): render any stored contact address in the details dialo…
yannickmonney Oct 9, 2026
78b7abd
fix(platform): rank task field and comment search hits together (#4248)
yannickmonney Oct 9, 2026
86dfcb9
fix(platform): send product stock as the number the form accepted (#4…
yannickmonney Oct 9, 2026
080f87a
fix(platform): validate mailbox ports before saving credentials (#4260)
yannickmonney Oct 9, 2026
1991376
fix(platform): recover legal-hold matters reads without losing focus …
yannickmonney Oct 9, 2026
96b8f16
fix(sandbox): pin cache helpers to local runtime image IDs (#4609)
yannickmonney Oct 9, 2026
1f57687
feat(platform): draw automations on a canvas that lays itself out (#4…
yannickmonney Oct 9, 2026
decea00
fix(platform): bound retry and worker cleanup (#4643)
yannickmonney Oct 9, 2026
e6fb962
fix(cli): keep release inputs in sync
yannickmonney Oct 9, 2026
0381bc4
fix(cli): accept Windows observation guard (#4680)
yannickmonney Oct 9, 2026
b5678e7
fix(cli): unblock merge queue checks
yannickmonney Oct 9, 2026
8ca529f
feat(platform): schedule automations with the repeat picker (#4619)
yannickmonney Oct 10, 2026
a45214a
feat(platform): keep, read and replay a step-by-step record of every …
yannickmonney Oct 10, 2026
fdbe070
fix(platform): hand a live agent step its node's input (#4684)
yannickmonney Oct 10, 2026
debac57
feat(platform): read and change organization settings over MCP (#4685)
yannickmonney Oct 10, 2026
740959a
fix(platform): keep trusted-headers session fields server-side (#4689)
yannickmonney Oct 10, 2026
4930780
fix(platform): name policy changes in the audit log (#4690)
yannickmonney Oct 10, 2026
b9b9238
perf(platform): evaluate automations faster — template fast path, sco…
yannickmonney Oct 10, 2026
84081dd
feat(platform): make a new blank automation run when its trigger fire…
yannickmonney Oct 10, 2026
f1192e8
perf(platform): queue an API request's automation code as its organiz…
yannickmonney Oct 10, 2026
f32d0cb
fix(platform): hide unavailable guardrail metrics
github-actions[bot] Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 14 additions & 10 deletions .agents/repo.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ Tale is a monorepo on Bun workspaces; every workspace script runs through
`<PREFIX><kind><n>` (`NAV-F3`, `CHAT-B1`, `A11Y-A2`) — the prefix is the suite, the letter is
what kind of check it is (F functional, B boundary, A accessibility, P performance). **Append,
never renumber.** Ship new behaviour with its box, or with a row in `reference/automation.md`
when a spec owns it end to end. The platform's `tests/manual/scripts/check-guide.ts` is the
when a spec owns it end to end — a box a spec takes over moves to
`reference/automation/<suite>.md`, one file per suite so parallel PRs do not append to the same
lines. The platform's `tests/manual/scripts/check-guide.ts` is the
content half of the gate: it resolves the i18n keys, routes and spec names a suite cites, and is
an authoring aid rather than a CI job — run it on every suite you touch.
- **Judge the platform against its user docs** — the pages under `docs/en/platform/` are the
Expand All @@ -156,7 +158,14 @@ Tale is a monorepo on Bun workspaces; every workspace script runs through
- **Pencil**: `design/docs/comments.md` is strictly designer↔developer UI communication. Put
code-level bug analysis in a GitHub issue, never there.
- **Git**: branch off `main`, never commit to it; PRs squash-merge (linear history), so the PR
title must itself be commitlint-shaped.
title must itself be commitlint-shaped. **Land through the merge queue**: `gh pr merge --auto`
(the queue sets squash) queues a PR once its checks and review pass, and the queue re-runs CI on the PR stacked
on `main` plus the PRs ahead of it. A branch does not have to be up to date with `main` — never
rebase, merge `main` in or `gh pr update-branch` just because a PR reads *behind*; rebase only for
a real conflict (`git merge-tree --write-tree --name-only origin/main HEAD`), and never bypass
the queue with an admin merge. A PR's own CI is the fast tier (format, lint, types, knip, unit,
commitlint, SAST); E2E, Build, CLI, UI, Browser and backend integration run only in the queue —
run the ones your change touches locally before queueing ([CI guide](../.github/CI.md#merge-queue)).
- **A release tags one validated candidate** — a version tag goes only on the full `main` SHA
whose `build.yml` candidate run and release gate
(`tools/cli/scripts/release-candidate-gate.ts`) passed, and merging never freezes for it:
Expand Down Expand Up @@ -535,14 +544,6 @@ default means deleting the override and fixing what surfaces:
project, then `assertTaskWorkable` — an archived task stays deletable) so its
`TASK_FORBIDDEN` never leaks, `deleteTask`'s owner/admin rule surfaced as 403
`ROLE_FORBIDDEN`, and a contract bump.
- **A webhook bind does not say whether the deployed `inputs` schema admits a delivery** — a
`PUT …/triggers` of kind `webhook` answers `deployed`, and every delivery then dies on 400
`AUTOMATION_INPUT_INVALID` when the version's `inputs` schema does not take
`{trigger: "webhook", payload}` at the top level (2026-09, round g). Paying it down means an
additive `inputsAcceptDelivery` on the bind: compile the deployed version's `inputs` with the
stepper's own `compileSchemaCached` key, check `{trigger: 'webhook', payload: {}}`, and
judge only issues at `trigger`/`payload` or a top-level `is required` (requirements inside
`payload.*` are not judged); absent without a schema or a deployment.
- **An exhausted `repeatUntil` is only a trace note** — a `repeat` node that spends its
`maxRepeats` budget without its condition becoming true finishes the run `success` with the
last pass's output and a free-text `trace[].note`; nothing structured says the loop gave up
Expand Down Expand Up @@ -760,6 +761,9 @@ xlsx,odt}.ts`) still reach the catch-all as `failed` + `indexer_error` and are r
that the old execution is retired, an authorized decision about unknown external effects, and
a guarded release contract. Never clear the hold or manufacture node-attempt evidence merely
because a stop was requested, a lease expired, or the old containers disappeared.
Erasure deletes other eligible subject runs and records the held runs separately on a partial
receipt; organization deletion returns an explicit conflict. These are containment, not a
retirement contract or a release of the holds.
- **A run lease compares the clocks of the hosts it spans** — the stepper stamps and checks the
30 s lease with its own host's clock (`claimRun`, `heartbeatRun`, `sweepOverdueRuns`), and the
read model's `stalled` compares it with the database's. Workers on hosts whose clocks differ by
Expand Down
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"designs",
"docs",
"e2e",
"load",
"manual",
"marketing-ui",
"opengrep",
Expand Down
141 changes: 137 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ DB_PASSWORD=tale_password_change_me
# against a managed Postgres's max_connections.
# DATABASE_POOL_MAX=10
#
# Connections ONE backend-api process opens for sign-in session lookups —
# every authenticated request reads through this pool. Raise it for replicas
# serving thousands of requests a second; it counts per replica against
# max_connections beside DATABASE_POOL_MAX.
# AUTH_DATABASE_POOL_MAX=5
#
# Jobs ONE backend-worker process runs at once per job queue — indexing,
# crawls, automations and agent turns each get this many (1-64); agent turn
# starts get at least 8 and the drive windows of live agent turns at least 16
Expand All @@ -138,6 +144,11 @@ DB_PASSWORD=tale_password_change_me
# worker at the default WORKER_CONCURRENCY never reaches it; a deployment
# serving one organization with more step slots than this raises it or sets 0.
# AUTOMATION_ORG_CONCURRENCY=8
# How many processes a backend process evaluates automation code in (1-16).
# Unset: 2 for backend-api; for backend-worker one per CPU core but one, at
# most 4. One starts at first; another only while all are busy; one beyond
# the first stops after five idle minutes. About 75 MB each while running.
# AUTOMATION_RUNNER_PROCESSES=
# How long a stopping backend process waits for its jobs, in milliseconds
# (1000-600000). Unset: 15000 for backend-api, 90000 for backend-worker. A
# stopping worker hands its automation runs to another one first; a step still
Expand Down Expand Up @@ -299,7 +310,9 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# Codex) may sit with nobody draining its output before the sandbox daemon
# reaps it. A SLIDING window, re-armed on every drain attach — not an absolute
# cap on the turn. Raise it when long agent turns on a slow host are reaped as
# orphans; defaults to 30 minutes.
# orphans; defaults to 30 minutes. A running agent turn also waits out an
# unreachable sandbox service for a third of this, at most 10 minutes (exactly
# 10 minutes at the default), before it fails; lowering it shortens that wait.
# TALE_EXTERNAL_TURN_DEADLINE_MS=1800000

# Optional inner Docker address pool on Docker or Kubernetes (DinD agents only).
Expand Down Expand Up @@ -365,6 +378,53 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# Recreate the backend services after changing it.
# SANDBOX_LLM_GATEWAY_STREAM_IDLE_TIMEOUT_SECONDS=600

# ============================================================================
# OPTIONAL: Sandbox LLM gateway request workers per provider
# ============================================================================
# How many requests the LLM gateway sends at once to one provider. The gateway
# keeps that many request workers for every provider it holds, from the moment
# it loads the provider and whether or not anything calls it, so the gateway's
# memory grows with these values. A request that finds every worker busy waits
# in a queue 16 times as long. A whole number from 1 to 5000: a larger one is
# held to 5000 and any other value falls back to the default, each with a
# warning in the backend log.
#
# PROVIDER_CONCURRENCY sizes a built-in provider (OpenAI, Anthropic,
# OpenRouter, ...), one shared by every organization. CUSTOM_PROVIDER_CONCURRENCY
# sizes a custom provider, which the backend sets up once per organization and
# model, so their number grows with organizations times custom models. A
# built-in provider's Anthropic lane for agent runtimes (Claude Code through
# OpenRouter's Anthropic endpoint) gets an organization-and-model provider of
# its own and is sized by CUSTOM_PROVIDER_CONCURRENCY too. Raise
# the custom value when an organization's API keys send more simultaneous
# requests to one custom model. The backend reads both and configures the
# gateway; a changed value reaches each provider at the next sandbox session
# or model-endpoint request of an organization that uses it, and a lowered one
# reaches every other provider the gateway holds two to five minutes after the
# backend's first sandbox session or model-endpoint request, except one whose
# upstream host no longer resolves (a removed connector's, say): the gateway
# refuses to rewrite it and the backend logs a warning naming it. Delete such
# a provider from the gateway (DELETE /api/providers/<name>, see the
# environment reference); one still in use is set up again at its next
# session or request. Recreate the backend services after changing them.
# SANDBOX_LLM_GATEWAY_PROVIDER_CONCURRENCY=512
# SANDBOX_LLM_GATEWAY_CUSTOM_PROVIDER_CONCURRENCY=64

# ============================================================================
# OPTIONAL: Sandbox LLM gateway request log retention
# ============================================================================
# How many days the LLM gateway keeps its request log; defaults to 3. The log
# holds one row per model call (model, tokens, cost, timing) and never a
# prompt or an answer. Tale does not read it: budgets, spend and usage come
# from the gateway's per-key budget counters, so a shorter log changes none of
# them. The backend pushes the value to the gateway, which applies it at its
# first restart after that push: it then deletes older rows, and again about
# once a day. A `tale deploy` restarts the gateway before the new backend
# pushes the value, so a change takes effect from the following deploy, or
# sooner when the sandbox-llm-gateway service is restarted once. A whole
# number of days, at least 1; any other value is ignored with a warning.
# SANDBOX_LLM_GATEWAY_LOG_RETENTION_DAYS=3

# ============================================================================
# OPTIONAL: Sandbox spawner URL
# ============================================================================
Expand Down Expand Up @@ -408,9 +468,10 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# service's environment and recreate it to apply. Counts include running idle
# containers; the cap does not reserve CPU/RAM. An organization's three workload
# limits add up automatically and cannot be saved above this capacity.
# Unset on a Docker host, the spawner sizes it from the host's memory (8 to 256:
# 19 on 16 GiB, 9 where agent sessions run Docker inside) and starts a new
# session only while the host keeps SANDBOX_MIN_FREE_MEMORY free. Set it on
# Unset on a Docker host, the spawner sizes it from the host's memory and CPUs
# (8 to 256, at most two per CPU: 16 on 16 GiB with 8 CPUs, 9 where agent
# sessions run Docker inside) and starts a new session only while the host
# keeps SANDBOX_MIN_FREE_MEMORY free. Set it on
# Kubernetes, with a remote Docker daemon or beside other heavy workloads,
# starting from measured task peaks and leaving CPU/RAM for platform services
# and the host. See docs/en/self-hosted/configuration/environment-reference.md
Expand All @@ -419,14 +480,27 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# Memory a new session must leave free on the Docker host (default: a tenth of
# it, at least 1g).
# SANDBOX_MIN_FREE_MEMORY=2g
# CPU pressure on the Docker host (the kernel's PSI "some avg10", in percent)
# from which new sessions start one at a time, one every ten seconds in the
# order they asked (0 turns the check off; a kernel without PSI ignores it).
# SANDBOX_CPU_PRESSURE_PERCENT=60
# Free space a new session must leave on the disk the session workspaces live
# on (default: a twentieth of it, at least 2g, at most 20g; 0 turns the check
# off). Below it, new sessions wait and the build caches of organizations that
# are not building go first.
# SANDBOX_MIN_FREE_DISK=10g
# Free space below which that disk is critical: running sessions' writes are
# about to fail, so released idle sessions with Docker inside are stopped at
# once (their inner image stores go with them) and the largest workspaces are
# logged (default: a quarter of the floor, at least 1g; never above the floor,
# and 0 or a floor of 0 turns it off).
# SANDBOX_CRITICAL_FREE_DISK=2g
# How long a session that no turn or run holds stays up once idle, in ms (agent
# sessions with Docker inside keep the full idle window).
# SANDBOX_SESSION_RELEASED_IDLE_MS=300000
# Minutes a session command may print nothing while using under 1% of one CPU
# before the sandbox ends it as stalled (a hung agent); 0 turns the check off.
# SANDBOX_EXEC_STALL_MINUTES=45
# Workloads allowed to start inner Docker when DinD is enabled. Unset keeps
# project,workflow; project allows Docker only for project agents; none disables
# it for both. Applies to newly created sessions; existing compute is retained.
Expand All @@ -435,6 +509,10 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# Leave memory unset for 4g per session without inner Docker, or 8g with it.
# SANDBOX_AGENT_CPUS=2
# SANDBOX_AGENT_MEMORY=4g
# CPU weight of agent sessions and their build-cache helpers when the host is
# saturated (Docker's default, which the platform services keep, is 1024;
# default-profile sessions use 128). An idle host still grants the full quota.
# SANDBOX_AGENT_CPU_SHARES=256
# Backend API + worker: profile for NEW agent/workflow workspaces. agent-light
# keeps coding tools and persistent files without Docker/BuildKit. Existing
# workspace rows retain their profile. Recreate backend services after changing.
Expand Down Expand Up @@ -465,13 +543,43 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
# keeps when it stops for want of agent sessions: pruned to this size, least
# recently used first, right before the stop.
# SANDBOX_BUILDKITD_IDLE_CACHE=5g
# How long an organization's build-cache helpers keep running once no agent
# session that builds may use them (ms, at least 60000). A helper launched with
# the current image and settings starts again by id on the next build.
# SANDBOX_BUILDKITD_IDLE_MS=600000
# The most build cache each organization's build-cache helper keeps (at least
# 1g). Unset: a tenth of the session disk, from 1g up to 20g.
# SANDBOX_BUILDKITD_MAX_CACHE=20g
# How long an organization's stopped build-cache helpers keep their caches
# before the spawner removes them (whole days or hours; off keeps them).
# SANDBOX_BUILDKITD_CACHE_RETENTION=14d
# How long an organization's pip, npm and bun package caches outlive their
# last use before the spawner removes them (whole days or hours; off keeps
# them until the organization is deleted).
# SANDBOX_PACKAGE_CACHE_RETENTION=14d
# Connections the sandbox egress proxy serves at once for all sessions together
# (read by sandbox-egress; recreate it to apply). A higher value needs the
# egress container's pids and open-file limits raised with it.
# SANDBOX_EGRESS_MAX_CLIENTS=2000
# Connections one session (one client address) may hold open to the sandbox
# egress proxy at once, so no session takes that whole pool (read by
# sandbox-egress; recreate it to apply). 0 turns the cap off.
# SANDBOX_EGRESS_MAX_CONNECTIONS_PER_SESSION=256
# Kubernetes only: a session Pod's node disk. The runner requests REQUEST and
# may write LIMIT outside its sized volumes (root filesystem, logs); the Pod's
# limit adds a crawler render's workspace and a Docker-inside agent's inner
# Docker store (DOCKER_STORAGE_SIZE_LIMIT), so a session past it is evicted
# on its own instead of filling the node.
# SANDBOX_K8S_EPHEMERAL_STORAGE_REQUEST=256Mi
# SANDBOX_K8S_EPHEMERAL_STORAGE_LIMIT=2Gi
# SANDBOX_K8S_DOCKER_STORAGE_SIZE_LIMIT=20Gi
# Kubernetes only: where session Pods run. Node labels as a JSON object, Pod
# tolerations as a JSON array and a PriorityClass name, applied to every
# session Pod, crawler renders included; unset, the scheduler places them on
# any node. A malformed value stops the spawner at start.
# SANDBOX_K8S_NODE_SELECTOR='{"tale.dev/sandbox":"true"}'
# SANDBOX_K8S_TOLERATIONS='[{"key":"tale.dev/sandbox","operator":"Exists","effect":"NoSchedule"}]'
# SANDBOX_K8S_PRIORITY_CLASS=tale-sandbox-session

# ============================================================================
# Object store — the deployment's blob backend
Expand Down Expand Up @@ -597,6 +705,19 @@ TALE_AUDIT_PEPPER=9c1e5b7d3a2f8064e1c7a9d5b3f2e8c604a7d1b9e5c3f8a2d6b0e4c7a1f9d3
SOPS_AGE_KEY=
# SOPS_AGE_KEY_FILE=

# ---------------------------------------------------------------------------
# MCP endpoint — browser origins (backend-api)
# ---------------------------------------------------------------------------
# Coding agents and server clients send no Origin header and are never
# judged. A request that carries one must come from SITE_URL,
# ADDITIONAL_SITE_URLS or an origin listed here (comma- or space-separated,
# scheme://host[:port], no path — e.g. a desktop editor's vscode-file://vscode-app).
# A request from any other origin is logged as `[mcp] origin-mismatch`, and
# refused with 403 ORIGIN_FORBIDDEN once TALE_MCP_ORIGIN_ENFORCE=true.
# See docs/self-hosted/configuration/environment-reference.
# TALE_MCP_ALLOWED_ORIGINS=
# TALE_MCP_ORIGIN_ENFORCE=false

# ---------------------------------------------------------------------------
# Provider API keys from environment variables (issue #1711)
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -777,6 +898,18 @@ SOPS_AGE_KEY=
# allowed. Set but empty closes creation to everyone. A managed deployment
# writes this from `organizations.creators` in its specification.
# TALE_ORGANIZATION_CREATORS=ops@example.org,lead@example.org
# --- Session cookie cache ---
# Off by default: every authenticated request resolves its session in the
# database. Set it to let a request reuse its session from a signed cookie for
# up to this many seconds (1-300), which saves most auth reads on a busy
# deployment. The price: changes to the session or the account (sign-out
# elsewhere, or the sessions ended when a password changes or an admin revokes
# a member's passkey or resets their two-factor authentication) reach ordinary
# requests only when the cached copy expires, and an
# organization's idle timeout can take effect up to that much later.
# Organization membership is still read on every request, and open
# live-update streams re-check the session within 15 seconds.
# SESSION_COOKIE_CACHE_SECONDS=30

# ============================================================================
# Application backend — always part of the stack
Expand Down
10 changes: 10 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@ services/platform/convex/migrations/*.snapshot.json linguist-vendored
# The release source contract hashes these helpers' raw checkout bytes.
.github/workflows/release-candidate-receipt.yml text eol=lf
.github/workflows/release-candidate-source.yml text eol=lf

# CI retirement admits these historical workflow fixtures by raw source hash.
tools/cli/scripts/fixtures/ci-orphan-checks-6ad49e4/*.txt text eol=lf
tools/cli/scripts/fixtures/ci-orphan-seven/*.txt text eol=lf

# These source bytes are hashed into merge-group retirement profiles. Keep
# their checkout representation stable on Windows as well as POSIX hosts.
.github/workflows/*.yml text eol=lf
.github/actions/ci-ready/action.yml text eol=lf
tools/cli/scripts/ci-ready.ts text eol=lf
Loading