NEXUS

Concepts

The ideas behind nexus, in the order you meet them. Each one is a few sentences and a link to where it is built and tested. The glossary defines every term, and the architecture overview shows how the parts fit.

nexus has had no external security review. Several concepts below describe a design whose parts are built and tested on scripted models. Simulated vs real says which.

Goal

A goal is what you ask the company for, in plain text. It always starts as a draft, and nothing runs from a draft. A goal you type with nexus goal has the source console. A goal from a coding agent arrives through nexus intake serve, is tainted, and stays a draft. Priority, deadline and budget come only from your flags, never from model text. See the org README and ADR 0007.

Charter

A charter turns a goal into a title, objectives, success criteria and constraints, with a lead department and a priority. In the CLI it comes from a fixed template, because no model drafts it. Only you can confirm it, with a card and a presence check. Confirming makes it active and breaks it into tickets. Each ticket has acceptance criteria and a task type such as software-development.lint-fix. See the operating model.

Departments

There are thirteen departments in three waves. Wave one is Executive Office, Software Development, Research and Development, and HR. Wave two is Operations, Security, Finance, QA and Audit, and Data and Analytics. Wave three is Legal and Compliance, Marketing, Treasury and Trading, and Sales and Support.

A department is data: its teams and roles, guardrails written as plain sentences, a hands ceiling and whether it holds a veto. The ceiling is the most any employee in it can ever hold. A role, a skill or a lesson can ask for less, never more. The org package offers only wave one by default, and the CLI does not change that. See departments and writing a pack.

Teams and the loop

A department head reuses an idle team or asks HR to hire one. Every team runs the same loop on a ticket: brief, plan, build, verify, review, deliver, retro. A stage advances only with the evidence it needs, such as a test run, a diff or a report. The builder never reviews their own work. At most three fix rounds are allowed. The fourth failure escalates to you. State is saved after every step, so a crash resumes at the same stage. A pack can make the loop stricter and never looser. See the org README.

Employees

An employee has a brain and hands. The brain is a model tier (teacher, specialist or own), memory, skills and strategy notes. The hands are the tools the employee can reach. They are reached only through the gateway, with a capability token that can only be narrowed. The effective grant is the intersection of the role, the skill, the team, the ticket and the department ceiling. New employees start on probation at the teacher tier and level G0 for every task type. HR retires one after two failed reviews or any guardrail breach. See the glossary.

Vault and vaultd

There are two processes. vaultd holds every key and secret, the audit log, approval state, the token signing key and the receipt key. nexus holds handles (hv-secret://...) and expiring tokens, and never a secret value. vaultd injects a credential at the last network hop, when it makes a request on a run’s behalf.

vaultd listens on two sockets. The runtime socket goes to commands that run agents. The console socket is for you. The runtime socket has no route that decides a card, clears taint or resets the kill switch. The vault itself is the encrypted store under it: a keystore with a passphrase and a recovery key, secrets, a scrubber and a hash-chained audit log. See the trust kernel, ADR 0002 and the vaultd README.

Cards and approvals

A card is a request for your decision. The vault writes it from its own tool table and stored facts, never from what a model said, and restates the facts for you. Money, trading, credentials, cloud resources, publishing and irreversible actions always need an approved card, with a presence check: your passphrase, or a one-time code, given by a person. nexus approve refuses to run without a terminal. Nothing is auto-approved. A card nobody decides expires to deny.

An approved card lets the gateway mint a single-use receipt bound to hashArgs(tool, args). The runtime never sees it. A plain external write needs a receipt too, which vaultd mints itself under policy, with no card. See the security invariants.

Taint

Content from outside the trust boundary taints a run. Examples are a fetched web page, a connector result, a goal from a coding agent and a goal typed with no terminal. A tainted run loses every reserved class in every layer. Taint follows the ticket and the employee, so asking for a fresh run does not clear it. Only a person clears it, in the console. A quarantined reader can turn hostile text into a short, schema-checked summary, so the acting run never reads the raw text. See the vaultd README.

Skills and quarantine

A skill is a folder with a SKILL.md: instructions an employee can load. Every skill is hash-pinned and scanned, and signed from team level up. A new or learned skill starts in quarantine, with an empty grant layer, so it has no tools and no network. It leaves only through an evaluation, a human spot check and a signature from a key no agent holds.

The CLI has no command to sign a skill yet, so pack skills stay in quarantine (HV-124). See the skills README.

Budgets and vetoes

Each department has a monthly budget envelope. You set one with nexus budget set, at a terminal. The core may move budget within 20% per move and 20% net per department per month. Every other move and every increase is a card. A stage that cannot be paid for waits.

Three departments hold a veto: Security, QA and Audit, and Legal and Compliance. A veto stops a ticket reaching deliver. Only you can override it, with a card that names who vetoed and why. See the org README.

Learning and the teacher

The teacher is an external coding agent (Claude Code, Codex or Qoder) that does the work first. Runs can be recorded as traces, scrubbed and sealed. The retro’s lessons are screened, at most three a run, and none is accepted from a tainted trace. A task type moves from the teacher to an employee’s own model only after held-out tests (levels G0 to G3).

No teacher run is recorded for learning until counsel approves that provider and plan, and that review has not happened (HV-006). Until then a closed provider’s run keeps only metadata. In the CLI, recording is off until you run nexus learn on, and nothing in the CLI promotes a skill. See learning and provider terms.

The kill switch

The kill switch is a switch in vaultd. It revokes every token and refuses new ones, so no run can start. nexus kill engages it and needs no proof, because stopping is the safe direction. nexus kill reset needs a person at a terminal and your passphrase. Tokens from before the kill stay dead. See the kill switch runbook.


Source of this page on GitHub