Skip to Content
turbo-12f
Reference

State home layout

Directory trees and lock files inside the v2 request state home, host paths outside --home, the one-time layout migration, and legacy v1 state layout.

Reference

--home defaults to $T12_HOME or ~/t12/home, and must resolve outside any project repository (record.Open). Project checkouts default to sibling directories under ~/t12/<project>, while every request, artifact, cache, access store, and lock lives inside --home.

Requests

Logs & drafts

requests/<id>/ holds hash-chained events, drafts, transcripts, and evidence.

Controls

Access & Observer

access/, approvals/, observer/, and proposals/ govern people and modes.

Builds

Worktrees & release

worktrees/, merge-scratch/, artifacts/, and release/ track builds and merges.

System

Caches & locks

qc-cache/, ui-baselines/, projects.json, and *.lock files coordinate state.

v2 state home tree

events.jsonl
events.lock
projects.json
projects.lock
state-layout.json
migrate.lock
active.lock
admin.sock
context-<request-id>.lock
ask-<request-id>.lock
confirm-<request-id>.lock
run-<request-id>.lock
run-merge-<request-id>.lock
release-<request-id>.lock
merge-queue.lock
deslop-stats.lock
deslop-counted.lock
ui-baseline-<hash24>.lock
deps-cache-<key24>.lock

Directory reference

PathOwnerPurpose
requests/<request-id>/events.jsonlinternal/recordAppend-only SHA-256 hash-chained event log (0600).
requests/<request-id>/events.lockinternal/recordPer-request flock held on event appends and blob sequencing (10s deadline).
requests/<request-id>/context/internal/roles/contextStores state.json, draft/{plain,srs,uat}.md, and sessions/.
requests/<request-id>/lanes/<lane>/internal/readonlysessionNumbered per-role session transcripts (<role>/transcript-<id>[-N].jsonl).
requests/<request-id>/reports/internal/recordSequenced RoleReport JSON blobs referenced by role-report events.
requests/<request-id>/decisions/internal/recordSequenced Decision JSON blobs referenced by decision events.
requests/<request-id>/evidence/internal/recordSequenced evidence (plans, diffs, PNGs, PR bodies, transcripts, github-issue*.json, turn images).

Layout migration

Older homes name the domain product: products.json, products/, product* JSON keys. On first open, every entry point runs one migration that renames them to project. The entry points are t12, t12-ui, t12-runner, t12-cc, t12-queue, the cloud worker, and the serverless handler.

The migration is idempotent. It runs under the home lock migrate.lock and writes state-layout.json when it finishes, so later opens skip it and a crash halfway is safely rerun.

StepWhat changes
Registryproducts.json becomes projects.json, and products/ becomes projects/ (config.json replaces product.json inside).
Mutable recordsproduct* keys become project* in access.json workspaces, observer.json, requests/<id>/context/state.json, cloud job records, projectenv files, and queue tasks.
v1 run recordsEach runs/<task-id>.json is rewritten and model.Version goes from 7 to 8, with one appended migrated event per run.
Hash-chained logsNever rewritten. requests/<id>/events.jsonl and runs/<id>.events.jsonl keep their legacy bytes.

Readers stay tolerant of the old names, so a repo or log written before the migration still loads:

  • the legacy product-bound event type and product detail key in hash-chained logs
  • .t12/product.json, read when .t12/config.json is absent
  • the products key of the profile (.t12/project.json) and the product key of a task file
  • the product:<name> Asana tag prefix, next to project:<name>

Re-copy the cloud worker workflow

The cloud worker workflow input product is now project, and the action init-product is now init-project. Copy .github/workflows/t12-worker.yml from this repository into the worker repository again, so its inputs match what the updated handler dispatches.

Legacy v1 state home layout

Legacy v1 isolation

t12 init and legacy v1 commands store per-task run records (model.Version = 8) at the top level of --home, separate from v2 requests/.

Next steps

On this page