The shared /packs spec

Write one pack.
Load it in nine hosts.

A pack is a folder with a tiny label file. packstruct is the one written rule for what that label must say - so every tool agrees, and a mistake is caught in a second instead of an hour. This page is the tour; pick your door below and it starts where you are.

# 30 seconds: lint a packs directory against SPEC v1
npx packstruct lint packs/

# the directory contract - the whole surface
packs/
  public/
    <pack-name>/
      pack.json      # REQUIRED: schemaVersion 1, name matches dir, entry exists
      <entry>        # REQUIRED: the file pack.json "entry" names

ok  tg/data-boundary       v1.0.0 - entry ships, name matches its dir
ERR tg/broken-ref          entry "index.js" does not exist - instant nameable refusal (crashtest#16)

Pick your door

Three audiences, three pages. Each assumes only what it says it does.

1New here?

You have a folder, you want to know what a pack is and how to check it. No jargon, five minutes.

Start here →

2Building on it?

Write a pack a host will run, point a host at your own packs, add a profile, prove it with the harness.

Extend packstruct →

3Running a fleet?

One grammar across many repos: exact-pin receipts, conformance as a CI gate, governance as packs.

Fleet & enterprise →

What is it, in one breath

A spec, a linter, and a conformance harness - nothing else. Three artifacts, one job each.

1The spec

A frozen pack.json field table (schemaVersion 1, kebab-case name matching its directory, dotted version, one-line description, an entry that must exist, optional armedByKey). One page of normative text, no ambiguity.

2The linter

npx packstruct lint packs/ - zero dependencies, exit 0 clean / 1 violations / 2 usage. It kills the missing-entry class at author time, in any repo, before a host ever loads the pack.

3The harness

packstruct audit-conformance materializes bundled case packs and runs your loader over each - so an implements: packstruct@1 pin is verifiable, not honorary.

Who loads it

69 packs across 9 live hosts, every one linted clean through the same lane. Crosslinks to each host's repo and site live on the showcase page.

crashtest

scenario

Adversarial QA for agent-built apps: seeded, in-process attacks against real handlers, graded into a hardening ledger CI fails on.

9 packs47 ids

poststruct

check

Audit what shipped: walks baked HTML and verifies head, links, and site hygiene against a contract, one check pack per SSG shape.

12 packs

govstruct

check

The controller layer for a family of repos: its compliance rules ARE check packs, so governance is a portable /packs surface.

14 packs42 ids

eyestruct

check

Eyes for production agents: deterministic look / look-diff with a committed visual memory, its capture and canon lanes riding as check packs.

6 packs

vant

scenario

The agent OS: 24 attack packs that measure its own defenses (kernel, mcp, relay, brain, walls) against the surfaces it promises.

24 packs290 ids

gistory

scenario

E2EE multi-device sync: one chain-relay dialect pack attacks its push/pull sync surface in-process, no sockets.

1 pack15 ids

See all 9 hosts, including the dogfood pack that attacks the linter

What froze at v1

The whole shared surface - tight by design. Full normative text on the spec page.

section The contract

packs/public/<name>/ carries a frozen pack.json (schemaVersion 1, name matches directory, entry must exist) plus its entry module. A manifest declaring a file that doesn't ship is an instant, nameable refusal - never a deep import stack trace.

section Profiles

The manifest surface never forks; execution semantics are declared as profiles: scenario (crashtest, vant, gistory, prestruct: hostile scenarios against a transport, isolated) and check (poststruct, govstruct, eyestruct, monoforge: pure-reading verifiers over files on disk).

section Lifecycle

Packs are explicit - a pack runs only because the host's config enumerates it. Pack ids are namespaced by pack slug; every pack ships self-audit fixtures; extra manifest keys are minimum-spec and left alone.

section Frozen from reality

v1 is what crashtest's production packs already shipped, verified pack-by-pack - nothing to migrate. The spec formalizes what the hosts do; it never re-designs them.

The pipeline

How a pack goes from directory to loaded, everywhere.

01Author the packa directory under packs/public/, one pack.json, one entry module - any host, same three fields minimum.
02Lint itnpx packstruct lint packs/ catches the manifest-points-at-nothing class before any host ever loads it.
03Host enumeratesno implicit discovery: the pack runs because the host's config names it. Cross-namespace id collision = refuse to start.
04Host owns the profilethe manifest says nothing about execution; the host's declared profile (scenario or check) owns sandboxing and arming.
05Spec evolves additivelyv2 may add optional fields; removing or renaming is a major bump with a migration note. Engines change first, the spec formalizes after.

Why one spec

The contract already forked in practice - packstruct names the shared part so drift is declared, not accidental.

One address for authors

"How do I write a pack?" has one answer: read packstruct, pick your app's declared profile. No archaeology in nine repos.

Cheap future consumers

Any struct-family tool that wants a /packs dir adopts the spec instead of inventing a tenth dialect. govstruct did exactly that.

Conformance, not vibes

The lint CLI is live on npm (packstruct@1.1.0); the conformance harness ships with it - bundled verdict-claiming packs verify a host loader honors the spec, so the implements: packstruct@1 pin is verifiable.

Receipts, not invention

Every host count on this site comes from running the linter over that host's own tree - the showcase re-cuts against the fleet, never from memory.