Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mash
command
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), and a CLI for people and scripts.
|
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), and a CLI for people and scripts. |
|
mashctl
command
Command mashctl administers a mash deployment: it creates the directory and lease buckets, sets endpoint metadata, and prints limits and the NATS permissions an endpoint user needs.
|
Command mashctl administers a mash deployment: it creates the directory and lease buckets, sets endpoint metadata, and prints limits and the NATS permissions an endpoint user needs. |
|
internal
|
|
|
admin
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it.
|
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it. |
|
adrindex
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068).
|
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068). |
|
apply
Package apply is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify.
|
Package apply is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify. |
|
cellwidth
Package cellwidth measures text in terminal cells: 1 for most characters, 2 for East Asian wide and fullwidth ones and emoji, 0 for combining marks.
|
Package cellwidth measures text in terminal cells: 1 for most characters, 2 for East Asian wide and fullwidth ones and emoji, 0 for combining marks. |
|
claudesettings
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist.
|
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist. |
|
cliframe
Package cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report.
|
Package cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report. |
|
cmdcore
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool.
|
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool. |
|
cmdcore/cmds
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool.
|
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool. |
|
cmdcore/render
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts.
|
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts. |
|
config
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins.
|
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins. |
|
ctl
Package ctl is the admin verb set of mashctl.
|
Package ctl is the admin verb set of mashctl. |
|
ctlkeys
Package ctlkeys is the key store of mashctl: the account signing seed (and the operator and system keys of a server `mashctl init --local` stood up), kept as 0600 files in a 0700 directory (ADR 0052).
|
Package ctlkeys is the key store of mashctl: the account signing seed (and the operator and system keys of a server `mashctl init --local` stood up), kept as 0600 files in a 0700 directory (ADR 0052). |
|
endpoint
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory.
|
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory. |
|
enroll
Package enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox).
|
Package enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox). |
|
host
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later.
|
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later. |
|
joinfile
Package joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it.
|
Package joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it. |
|
keycred
Package keycred makes a user key pair.
|
Package keycred makes a user key pair. |
|
kind
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session.
|
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session. |
|
listset
Package listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say.
|
Package listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say. |
|
mcp
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel.
|
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel. |
|
mint
Package mint makes the NATS user JWT and creds of one endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions).
|
Package mint makes the NATS user JWT and creds of one endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions). |
|
namerule
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077).
|
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077). |
|
natsauth
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle.
|
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle. |
|
natsfixture
Package natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks).
|
Package natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks). |
|
policy
Package policy holds the size limits the JWTs mash makes must fit.
|
Package policy holds the size limits the JWTs mash makes must fit. |
|
policyapply
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3).
|
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3). |
|
policydoc
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies.
|
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies. |
|
policyserve
Package policyserve holds the production pieces of a policy apply: the signer over the key store, the server limits read through the system account, and the inbox and credential provisioning.
|
Package policyserve holds the production pieces of a policy apply: the signer over the key store, the server limits read through the system account, and the inbox and credential provisioning. |
|
policyview
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010).
|
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010). |
|
portable
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout).
|
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout). |
|
refgen
Package refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/.
|
Package refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/. |
|
releasenotes
Package releasenotes is the one place that judges a release's notes (ADR 0105): a release's notes and its change-log section are the same text, and it opens with prose before any list.
|
Package releasenotes is the one place that judges a release's notes (ADR 0105): a release's notes and its change-log section are the same text, and it opens with prose before any list. |
|
render
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message.
|
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message. |
|
sap
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13).
|
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13). |
|
sapsdk
Package sapsdk reaches the SAP Go SDK's identity package (synadia-agents.go, github.com/bogworks/synadia-agents.go/identity) behind mash's own types.
|
Package sapsdk reaches the SAP Go SDK's identity package (synadia-agents.go, github.com/bogworks/synadia-agents.go/identity) behind mash's own types. |
|
sapsdk/discovery
Package discovery is the verify step of a discovery answer (S5, REQ-016).
|
Package discovery is the verify step of a discovery answer (S5, REQ-016). |
|
spool
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0).
|
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0). |
|
store
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5).
|
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5). |
|
testenv
Package testenv runs an in-process nats-server in operator mode for integration tests.
|
Package testenv runs an in-process nats-server in operator mode for integration tests. |
|
scripts
|
|
|
adrlint
command
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker).
|
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker). |
|
buildrelease
command
Command buildrelease builds mash (or mashctl, with -cmd) exactly as a release does and prints "<sha256> <path>".
|
Command buildrelease builds mash (or mashctl, with -cmd) exactly as a release does and prints "<sha256> <path>". |
|
changelog
command
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md.
|
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md. |
|
dirbench
command
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count").
|
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count"). |
|
doclint
command
Command doclint checks that the repository's Markdown files conform to their syntax: the one check a docs-only change needs (ci.yml's docs-lint job; "as long as they properly conform to their syntax, I don't see why anything else needs to run").
|
Command doclint checks that the repository's Markdown files conform to their syntax: the one check a docs-only change needs (ci.yml's docs-lint job; "as long as they properly conform to their syntax, I don't see why anything else needs to run"). |
|
gate1demo
command
Command gate1demo renders the planned (next-release) output changes from the specification's own x-output-next cases, spec/next.json items and rules_next, as Markdown.
|
Command gate1demo renders the planned (next-release) output changes from the specification's own x-output-next cases, spec/next.json items and rules_next, as Markdown. |
|
liveat
command
Command liveat runs the live acceptance tests AT-001 to AT-003 and AT-4 (the security boundaries, at004) of the 0.5.5 endpoint-model contract against a build of this checkout.
|
Command liveat runs the live acceptance tests AT-001 to AT-003 and AT-4 (the security boundaries, at004) of the 0.5.5 endpoint-model contract against a build of this checkout. |
|
liveat/nodeinit
command
Command nodeinit is the only helper in an AT-005 node image.
|
Command nodeinit is the only helper in an AT-005 node image. |
|
ownerproof/at022
command
Command at022 is the owner-boundary and forgery proof of AT-022 (REQ-021), run on the built `mash` binary of the candidate.
|
Command at022 is the owner-boundary and forgery proof of AT-022 (REQ-021), run on the built `mash` binary of the candidate. |
|
publishcheck
command
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic".
|
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic". |
|
refgen
command
Command refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/.
|
Command refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/. |
|
releasecheck
command
Command release-check is mash's release gate.
|
Command release-check is mash's release gate. |
|
replayproof/at023
command
Command at023 is the restart-replay proof of AT-023 (REQ-022).
|
Command at023 is the restart-replay proof of AT-023 (REQ-022). |
|
repofiles
command
Command repofiles checks that no tracked file under a git checkout is a binary executable, holds binary content, or is over the size limit (internal/release.CheckTrackedFiles, #1247).
|
Command repofiles checks that no tracked file under a git checkout is a binary executable, holds binary content, or is over the size limit (internal/release.CheckTrackedFiles, #1247). |
|
reviewgate
command
Command reviewgate is the verdict engine of the in-session review gate (ADR 0080).
|
Command reviewgate is the verdict engine of the in-session review gate (ADR 0080). |
|
scrubcheck
command
Command scrubcheck is a one-time verification: it finds the words in words.txt in the shipped surfaces.
|
Command scrubcheck is a one-time verification: it finds the words in words.txt in the shipped surfaces. |
|
storedmail/at006
command
Command at006 is the stored-mail proof of AT-006 (REQ-007) and its X1 to X3 condition.
|
Command at006 is the stored-mail proof of AT-006 (REQ-007) and its X1 to X3 condition. |
|
storedmail/classify
command
Command classify runs mail stored by released mash binaries through sapsdk.Classify.
|
Command classify runs mail stored by released mash binaries through sapsdk.Classify. |
|
storedmail/kit
Package kit is what the stored-mail checks share: a throwaway NATS server with provisioned endpoints, a released `mash` run as one of them, the sends that write stored mail, and the detector for the eleventh-shape candidates.
|
Package kit is what the stored-mail checks share: a throwaway NATS server with provisioned endpoints, a released `mash` run as one of them, the sends that write stored mail, and the detector for the eleventh-shape candidates. |
|
upgradeproof/at011
command
Command at011 is the AT-011 upgrade proof: it takes the previous release of mash and moves it, with mail in flight, to the candidate commit, and writes the receipt release-check reads (kind at-011), a log of every step and the evidence behind each verdict.
|
Command at011 is the AT-011 upgrade proof: it takes the previous release of mash and moves it, with mail in flight, to the candidate commit, and writes the receipt release-check reads (kind at-011), a log of every step and the evidence behind each verdict. |
|
upgradeproof/inventory
Package inventory is the message-by-message bookkeeping of AT-011: every message of the proof has a stable identity and an expected disposition, the run tallies what it saw, and Compare holds the two together one message at a time.
|
Package inventory is the message-by-message bookkeeping of AT-011: every message of the proof has a stable identity and an expected disposition, the run tallies what it saw, and Compare holds the two together one message at a time. |
|
upgradeproof/receipt
Package receipt is the AT-011 receipt the upgrade-proof runner writes, in exactly the shape the release gate reads (scripts/releasecheck/receipts.go, REQ-019).
|
Package receipt is the AT-011 receipt the upgrade-proof runner writes, in exactly the shape the release gate reads (scripts/releasecheck/receipts.go, REQ-019). |
|
upgradeproof/shapes
Package shapes builds the stored-mail corpus of AT-011 step 2: one message in each of the ten shapes REQ-005 names as refused by the SDK's strict parser, the X2 and X3 candidates, each as the list of Agent-Sender header values to publish.
|
Package shapes builds the stored-mail corpus of AT-011 step 2: one message in each of the ten shapes REQ-005 names as refused by the SDK's strict parser, the X2 and X3 candidates, each as the list of Agent-Sender header values to publish. |
Click to show internal directories.
Click to hide internal directories.