Workspace v2
A workspace holds Signet’s configuration, database, transcripts, imports, skills, secrets, and runtime state. Version 2 separates those paths without changing the workspace root.
Layout and ownership
Section titled “Layout and ownership”The default workspace is ~/.agents. Use signet workspace status to inspect
the selected root. This is the default v2 storage layout, not a list of files
that must all exist:
<workspace>/ workspace-layout.json agent.yaml AGENTS.md SOUL.md IDENTITY.md USER.md MEMORY.md .sigignore .gitignore skills/ files/ data/signet.db data/imports/ transcripts/<harness>/transcript.jsonl runtime/ cache/ .secrets/- Root configuration and identity files stay at the root during an upgrade.
skills/has separate Git ownership from the workspace repository.files/is an import inbox, not a connected source directory.data/signet.dbis the SQLite database.data/imports/holds retained import originals.transcripts/holds canonical JSONL transcript files.runtime/holds process state, logs, and locks.cache/holds filesystem cache. Neither replaces authoritative data..secrets/is the default secret-storage path. Its presence does not prove that credentials can be recovered.
workspace-layout.json selects version 1 or 2. Without that file, resolution
uses v1. Invalid JSON or an unsupported version is an error, not a fallback.
New workspaces are initialized with version 2.
The layout’s overrides object can set database, transcripts, runtime,
cache, files, imports, secrets, skills, and data. Relative overrides
resolve against the workspace root. A data override also changes the default
database and managed-import locations unless those have their own overrides.
The workspace root itself is selected separately; see
Workspace resolution.
Connected external sources remain at their configured locations. A layout
upgrade does not copy them into files/ or data/imports/.
files/ import inbox
Section titled “files/ import inbox”The daemon can ingest manual drops from files/. On first use, the manual
inbox worker waits until the inbox has no eligible entries before enabling
itself. Preexisting files are not silently imported. Once enabled, it polls
for files, waits for them to settle, retains originals, and dispatches
JSONL to transcript import or other files to document import.
Dashboard document uploads use durable admission too, but go directly to
managed storage rather than through files/. The retained original is stored
at data/imports/<admission-key>/original with default paths. Admission
records track outcomes separately from indexing.
Do not use the inbox as permanent source storage. After recording a successful result, the worker attempts to remove the manual drop. Connected sources and imported documents have different lifecycles; see Connect sources and import documents.
Upgrade a v1 workspace
Section titled “Upgrade a v1 workspace”The daemon attempts the upgrade during startup for a complete, unambiguous workspace. It acquires the workspace instance lock before moving files and before opening the database. Another daemon holding the lock prevents the upgrade from running.
With default paths, the moves are:
| v1 path | v2 path |
|---|---|
memory/memories.db and its -wal, -shm, and -journal sidecars |
data/signet.db and matching sidecars |
memory/<harness>/transcripts/transcript.jsonl and its recognized temporary/lock files |
transcripts/<harness>/ |
Top-level memory/*--summary.md, *--transcript.md, *--compaction.md, *--manifest.md |
transcripts/ |
memory/cache/ |
cache/ |
memory/imports/ |
data/imports/ |
Recognized database backups, transcript backfill markers, backups/, and retired templates in memory/ |
data/legacy-memory/ |
.daemon/ |
runtime/ |
Unrecognized files in memory/ stay there. Empty legacy directories are
removed. The upgrade does not rewrite root Git history or move root identity
files, agent.yaml, skills/, files/, or .secrets/.
Path overrides
Section titled “Path overrides”An explicit database override resolves to the same path in both layouts, so
that database and its sidecars stay there. Other overrides are preserved, but
an override does not mean every file inside its directory stays unchanged:
- In a custom transcript root,
<harness>/transcripts/transcript.jsonlmoves to<harness>/transcript.jsonl, including recognized companion files. - With only a custom
dataroot, the database name changes frommemories.dbtosignet.dbinside that root.
The upgrade renames files rather than copying the database. It refuses moves that cross the checked filesystem boundary or would use unsafe symlink paths.
Blocking and interruption
Section titled “Blocking and interruption”Before moving files, Signet writes .workspace-layout-upgrade.json with the
planned moves and filesystem identities. Runtime moves last. After all
required moves, Signet records layout version 2 and removes the journal.
There are two distinct failure outcomes:
- Blocked, still on v1: a planning conflict or a new upgrade whose moves
were successfully rolled back. The daemon can start on v1 and report the
reason in
signet statusandGET /api/statusunderworkspaceLayout.upgrade. Fix the cause and restart to retry. - Startup refused: an interrupted run cannot be verified, rollback leaves stranded files, or the persisted layout/journal is invalid. Preserve the journal and logs for recovery. Do not assume that all files are still in their v1 locations.
Existing destinations, nonempty new directories, filesystem boundaries,
unsafe symlinks, unreadable paths, and rename errors can block the upgrade.
An already-moved item in an interrupted run is accepted only when its recorded
identity can be verified. A recreated legacy runtime directory is merged
only after verifying the moved runtime directory; name collisions preserve
the older destination with a .before-<timestamp> suffix.
Update, restart, verification, and downgrade precautions are in Upgrading.
Protection and restore status
Section titled “Protection and restore status”GET /api/protection reports separate components: root-authored files, skills,
managed originals, SQLite, transcripts, external sources, runtime, filesystem
cache, and secrets.
A component can be protected, missing, stale, degraded, unknown,
external, unverified, or excluded-rebuildable. Overall protection requires
all components to be protected or excluded as rebuildable, plus a valid,
unexpired restore receipt covering the applicable components and matching
current component digests. Git sync alone cannot establish that result.
The current restore verifier compares files and supplied observations of the database, daemon, sources, transcripts, recall, Dreaming, ontology, and harness. It always reports secret-provider continuity and independent recovery evidence as unverified. It does not issue a valid protection receipt. A component status or a successful Git operation is not an end-to-end restore test.
The protection collector also has a path limitation: it looks for backup
receipts in legacy root directories such as backup/, .backup/, and
snapshots/, not a default data/snapshots/ location. Do not infer verified
backups from the presence of a directory or retained import originals.

