Skip to content
Repos

TOSV

Markdown 2.1 KB42 lines Opens in site

Directory Raw Download

Agent instructions: TOSV

Three layers (separate files, never merged):

  1. Personal base rules (operator-owned, every project): safety, proof, craft, ops habits. Source: operator home CLAUDE.md.
  2. This file (root project rules): applies to the whole repo. Global rules only; kept short so agents actually read it.
  3. Nested subsystem files (next to the code, loaded on touch): deep mechanics, helpers, pitfalls, worked examples.

Root rules

  • Working directory: repo root. Scope: TOSV vault only; wolfssl and wolfssh trees are vendored reference, do not edit.
  • Canonical spec: SPEC.md; mirrors sync in the same commit.
  • Build status: BUILD-TRACK.md; update same-day on status change, session end, gate pass or fail, merged PR.
  • Decisions: docs/adr/; cite ADR constraints in every agent prompt.
  • Version source: VERSION file; compiled into binary via Makefile.
  • Prose rules: no em dashes anywhere (code, docs, comments, commits, chat). Use hyphen, comma, or colon instead.
  • IDs: normative IDs from SPEC.md section 0.1; never reuse a retired ID; cross-reference by ID.
  • Verification after every change round (adapted to this repo):
    • ID definitions unique: rg -o '^\| ([A-Z]{1,3}-[0-9]+)' SPEC.md | sort | uniq -d prints nothing
    • changelog ascends: rg '^\| [0-9]+\.[0-9]+' SPEC.md CHANGELOG.md
    • forbidden scan: rg -n 'TB[D]|\x{2014}' SPEC.md BUILD-TRACK.md docs/ AGENTS.md tosv.AGENTS.md sftp.AGENTS.md vault.inc tosv.cpp tosv-sftp.cpp tests/ prints nothing
    • build: make build green; smoke: make smoke green
    • Full gate: make ci green before commit
  • Commit, deploy, verify in that order, same session. Repo live since 2026-10-31, trunk plus short branches, tag v0.1.0. Run make ci before commit; releases via make bump-patch plus annotated tag.

Subsystem files

  • tosv.AGENTS.md: single-file vault mechanics (DB, crypto, HTTP, WebDAV, rates, audit, wipe). Load before touching tosv.cpp.
  • sftp.AGENTS.md: SSH/SFTP daemon mechanics (transport floor, auth, namespace, SFTP semantics, pitfalls). Load before touching tosv-sftp.cpp.
39.4ms