Reference
Portable Bootstrap — Quick Context for Ad-Hoc AI Clients
At a glance
| Field | Value |
|---|---|
| Status | active |
| Audience | ai |
| Tags | ai-context, bootstrap, multi-client, portable |
Paste this entire file into any AI client (Claude web, ChatGPT, etc.) to give it working context for this project. For full detail, read the linked files in the repo.
Project
Arcane — Operational documentation for running AI-automated businesses under {LLC_NAME} (owner: {OPERATOR_NAME}). Uses an agent runtime to automate operations across one or more ventures.
This is a documentation-only repository. No build commands, test suites, or deployable code. Do not add automation without being asked. Enforcement: explicitly advisory prose (ARC-023) — no check blocks adding scripts, build tooling, or automation to this repo; compliance depends on agent judgment.
Environment
- Primary machine: the host where the agent runtime executes.
- Disk encryption: full-disk encryption active on machines holding credentials or working copies.
- Agent runtime: one or more agents configured. Runtime gateway bound to loopback, token auth via SecretRef, exposed remotely only through an authenticated tunnel if needed.
- User: a dedicated non-root user.
Non-Negotiable Rules
Enforcement note (ARC-023): these 9 rules are a condensed restatement of .arcane/governance/universal-agent-rules.md rules 1-6, 10, 11, and 15 — see that file for each rule's full text and its authoritative enforcement-mode classification; this summary does not duplicate those classifications here, to avoid a second, driftable copy of the same information.
- Never access an encrypted or cross-OS volume you are not authorized to touch. This rule stands as defense-in-depth regardless of encryption status.
- No root commands unless explicitly scoped and justified.
- No secrets on the command line. Use env vars and
read -s. - Update
last_updatedfrontmatter when editing any document. - Log significant decisions in DECISIONS.md as ADRs.
- Production system — no shortcuts, no "fix it later."
- Conventional Commits format:
type(scope): description. - Never auto-commit during interactive sessions — present for approval first. Exception: autonomous agents at Magus+ power level may self-commit within approved scope.
- Recommendation guardrails: Flag actionable recommendations. Verify information. Present free alternatives. Confirm >$50 items.
Key Files
| Need | File |
|---|---|
| Full rules | .arcane/governance/universal-agent-rules.md |
| Project overview | project.md |
| Decisions log | DECISIONS.md |
| Agent policies | .arcane/governance/agent-policies.md |
| Git conventions | .arcane/governance/git-conventions.md |
| AI context summary | ai-context/system-prompt-context.md |
Where Documents Live
- Framework-managed standards:
.arcane/governance/. Spells reference this single installed layer; do not create a duplicate rootgovernance/tree. Enforcement: explicitly advisory prose (ARC-023) — no check scans a repo for a duplicate root-levelgovernance/directory. - Framework-managed spells:
.arcane/spells/<id>.mdis each spell's one authored source (ARC-045). The files each AI client discovers —.github/prompts/<id>.prompt.mdfor Copilot,.claude/commands/<id>.mdfor Claude Code,.agents/skills/<id>/SKILL.mdfor Codex — are thin generated shims that point back at it; edit the canonical file, never a shim. Enforcement: executable check (ARC-023) —npm run check:self-host-parityre-renders every shim from its canonical file and fails on any difference;spell updatekeeps a hand-edited shim untouched and names it rather than merging into it. The same canonical spells can also be installed once per machine —spell init --userputs them at~/.arcane/spells/<id>.mdwith one Codex/Copilot skill under~/.agents/skills/and one Claude Code command under~/.claude/commands/per spell (ARC-045 decision 3); governance never moves up a tier. The agent roster follows the same shape (ARC-047):spell agents init|sync --userkeepsagents.yamland the role definitions at~/.arcaneand renders one~/.claude/agents/<name>.mdper agent -- the one home location read by both VS Code and Claude Code, so a persona shows up once in each rather than twice in one (ARC-047 decisions 3 and 11). Agent files are never installed byspell init/spell updateat either tier -- they are rendered from the roster, whose naming strategy picks each file's name, which is why an upgrade never touches them. An absentspell_scopemeansrepopermanently (ARC-048); a machine may setdefault_spell_scopein its own store to pre-select the answerspell initoffers in NEW repositories, which never rewrites an existing one and never suppresses the question. A repository may then opt out of carrying its own copies entirely withspell_scope: "user"in.arcane.json(ARC-045 decision 4) —spell update --pruneremoves what it no longer manages, keeping anything you edited, andspell doctorfails loudly if the tier it now depends on is missing. - Project-owned orientation and continuity:
README.md,project.md,TODO.md,DECISIONS.md,ai-context/, andjournal/. Arcane creates missing files once and preserves existing content. - Project/domain documents: use explicit descriptive paths such as
docs/,security/,infrastructure/, or a configured business root. These add project context alongside framework standards. - Overrides survive
arcane update: editing a managed.arcane/governance/standard no longer risks silent loss. Additive project documents were always safe; a hand-edit to a shipped standard now is too. Enforcement: executable check (ARC-038, shipped BC-31) —spell updatecompares each file's on-disk content against its recorded hash at install time: unchanged, it refreshes normally; edited, it fetches the exact previously-installed published version as a three-way merge base against your edit and the new vendor content, auto-merging non-overlapping changes and leaving standard conflict markers only on genuine collisions. If the prior published version can't be fetched, your edit is left untouched with a warning rather than replaced.
Research Reports
Research findings (competitive analysis, technical spikes, feasibility studies — the output of the Research & Backlog Analyst role) live at docs/research/<topic-slug>.md, one file per report. No dedicated spell produces these: spell-document already proposes a target path from project structure and matches its destination directory's existing conventions — point it at docs/research/ for investigative content, the same way it already proposes docs/ or .arcane/governance/ for other document types. The directory is created on first real report, not pre-seeded on spell init.
Use this repo's standard frontmatter (below) plus one addition: sources — a list of what was consulted. Every claim in the body traces back to one of these or is explicitly marked speculative. Enforcement: explicitly advisory prose (ARC-023) — no mechanism reads research-report prose to verify citation coverage or speculation marking. Structure the body summary-first: a short Summary with the key findings, then Findings with full detail and inline citations, then an optional Follow-ups for anything that should become a TODO item — route those via spell-todo, which cross-references the report path. Throughout, distinguish verified facts, reasonable inferences, and speculation explicitly; don't let an inference read as a checked fact.
Documentation Format
Every doc uses YAML frontmatter: title, audience (human/ai/both), last_updated, status (draft/active/deprecated), tags. Enforcement: explicitly advisory prose (ARC-023) — no schema validates these frontmatter fields on arbitrary docs; .arcane.json manifest validation (src/modules/manifest.ts) covers only installation-config fields, not document frontmatter. Use wiki-links ([[filename]]) for cross-references.
Naming Tiers
| Tier | Style | Examples |
|---|---|---|
| Machines | Iconic names | Atlas, Voyager |
| AI Agents | Persona + role | Merlin — CTO, {AGENT_NAME} — Product Ops |
| Systems | Functional slug | inventory-api, orders-worker |
Version Control Host
Use your chosen host's project organization ({ADO_ORG}). Apply a consistent project/repo naming convention. One project per business + one shared docs/ops project.
Spell Commands (Development Methodology)
Development follows the Spell Loop — structured planning phases feeding an autonomous implementation loop, delivered through the spell system. All workflows go through this flow.
Available spells (invoke by typing the command name in your message):
Core Loop: Plan → Architect → Implement → Test → Review → Ship
spell-plan— Plan a feature (output: PRD.md)spell-architect— Design the solution (output: architecture.md + stories.json)spell-implement— Write code per storyspell-test— Run QA and verifyspell-review— Adversarial code reviewspell-ship— Merge and deploy
Session Management
spell-open-session— Rebuild context after reset; read core docs, identify unfinished work, prioritizespell-close-session— End-of-session cleanup: stage changes, curate screenshots, propose commits, journal
Operational
spell-commit-work— Standard Git workflow: stage → message → approve → executespell-todo— Review TODO.md, prioritize, move resolved items to canonical docsspell-check-drift— Find stale assumptions in docs vs. realityspell-summon-venture— Create a new venture (hub-gated): folder, template docs, idea/todo books, registry entry
Specialized
spell-security-review— Audit for security gaps, credential exposure, threat coveragespell-product-review— Evaluate business readiness: market fit, automation scope, blockersspell-dotnet-expert— .NET/Blazor deep-divespell-explain-concept— Break down complex architecture conceptsspell-generate-bot-icons— Create agent personas and icons
Full reference: See .arcane/governance/development-methodology.md in the repo.