Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Trip Decommission?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cody-hutson-trip-decommission)
---
name: trip-decommission
description: Take a trip's site offline, archive a concluded trip, or reopen an archived one. Never deletes trip content.
argument-hint: temporary|archive|reopen [--trip <slug>]
disable-model-invocation: true
allowed-tools: Bash(ls:*), Bash(grep:*), Bash(date:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh unpublish:*), Read, Edit
disallowed-tools: [Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh publish:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh update:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh rotate:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh list:*), Bash(${CLAUDE_SKILL_DIR}/../../scripts/publish-trip-site.sh status:*), Bash(bash:*), Bash(sh:*), Write, NotebookEdit]
---
# /trip-decommission
`/trip-decommission <verb> [--trip <slug>]`
The verb is the one the user typed. § *Selecting the verb* below is the whole of how it is reached:
a literal lookup, lexical at every step, against the recognition set read live. So nothing in this
file supplies a verb the user did not type, and the lookup has no place to put the wording around
the token; that the token was typed at all is held by this file's invocation flag, not by the
lookup.
**Engine root — where every path in this file resolves from.** This engine's own assets — the
agent prompts, the reference documents, the templates and the shell entry points — live under
`${CLAUDE_SKILL_DIR}/../..`, which is the directory holding them whatever working directory you
were invoked from. That holds when this verb's directory is a link placed beside the engine: the
harness names the link, and `..` is resolved after the link is followed, so the path still lands
in the engine — read it as the kernel does, never by collapsing the text. **Every engine path named anywhere in this file, its frontmatter included, and
every engine path named inside any engine document you open from it, is repository-relative to
that root and never to your working directory.** Resolve it against the root before you hand it to
a tool: a bare relative path follows the session's working directory, and that directory is
arbitrary. Operator trip data is a separate root and is named where it is used.
**A script's own data reads are a different question from where the script is, and rooting its
path does not answer it.** Where a verb's invocation section tells you where to stand when you run
it, that instruction is about the working directory the script resolves its own store against, and
it stands unchanged.
**The bare spelling of a path inside prose is deliberate and is not a defect to repair.** A path in
a document the agent reads is returned as text — there is no include directive at either surface —
so rooting it there would buy no mechanism while putting an unexpanded variable in front of every
human reader. The rooted spelling belongs where a path reaches a tool as written: the frontmatter
grants and the fenced invocations.
**The frontmatter above, and what each grant is held for.** Every grant is held for a use a section
below names, per `ADR-007` §2 bound 2, and no grant is taken without one.
| Grant | The use that holds it |
|---|---|
| `Bash(ls:*)` | the listing block below |
| `Bash(grep:*)` | the record block below, which reads the lifecycle, the mode and the destination by value |
| `Bash(date:*)` | `archive`'s closing log entry is dated from a `date +%F` tool call **in the body**, never as a pre-execution block — the shipped convention `/trip-new` and `/trip-record log` already take, and required here because the contract retired that carrier and a line opening with its marker outside a fence fails `scripts/test-command-taxonomy.sh` group `I` on push |
| `publish-trip-site.sh unpublish` | `temporary` and `archive` invoke the `unpublish` arm, with the pages-only and data-root flags, each fixed in this file. **The grant is the arm, not the script** — `ADR-007` §1 is one authorization per function, and a script-wide grant would authorize every arm of the dispatch table at once |
| `Read` | `archive` and `reopen` read `trip-context.md` to locate the lifecycle marker line or its anchor; `archive` reads `trip-log.md` to confirm the append target exists |
| `Edit` | `archive` inserts the marker line and appends the closing entry; `reopen` changes the marker's value |
**The publish script's grant is named here by script and arm, and spelled only in the
frontmatter above.** A cell that spelled it would be a second copy to keep in step with it.
**The denials, and what each one establishes — which is narrower than "enforced", and is bounded by
the turn.** `allowed-tools` is a turn-scoped pre-approval grant and restricts nothing: every tool
stays callable, and an unlisted tool routes through the usual permission settings rather than being
forbidden. What `disallowed-tools` does at runtime **was an open question here, and `ADR-007` has
closed it**: its 2026-09-11 amendment discharged the tool-list question by **quoting the published
contract** rather than summarising it, and the account it confirms is the one `ADR-007`'s Context
had already given — **clause for clause**, so the question this file once left open is settled in
§ Context's favour, and the sentence that called it unsettled is withdrawn rather than
softened. `disallowed-tools` is turn-scoped **removal** — the real restriction of the pair, and a
firmer thing to say about these entries than this passage used to say. `ADR-007` adds that durable
blocking would still need a permission-settings deny rule, which this repo does not ship, so the
removal these entries carry ends at the next message.
The line is read here too, on a different axis. `scripts/test-command-taxonomy.sh` reads it: its
invocation classifier matches this file's `disallowed-tools:` line on the publish-script grant token
the line carries and counts it into a **tool-grant tally**, one term of a parse-coverage identity
that guard asserts and fails on. It reads the line as a **declaration** — so what it establishes is
that the entry was written, never that a runtime honours it. **Declared, and read as a declaration,
is the whole of what an in-repo check establishes about these entries** — not enforced, and not
observed.
**Two consequences, and they govern every denial below.** Each is a claim about what an entry
**names**, never about what it has been observed to do; and **no claim here about what an entry
*does* is repaired by pointing at an in-repo check.** A check that reads these lines as
declarations — the one named above does — corroborates that an entry was written and observes
nothing of what a runtime does with it, so it repairs no claim of that kind. These entries are
still the strongest control this file has — their strength is simply not established here, and this
file does
not rely on them alone: § *The closing entry* and § *Deleting the trip's public repo* rest on the
push-time contract guard, and `temporary` and the hand-off rest on the script's own scope check and
typed confirmation.
- **Every publish-script arm this command does not own is denied by name** — `publish`, `update`,
`rotate`, `list` and its `status` alias. `ADR-007` §1 is **one authorization per function**, so the
grant above is the `unpublish` arm rather than the script: a script-wide grant would authorize the
whole dispatch table at once, which is the privilege union that ADR rejects. **The arms are denied
individually rather than described**, because a boundary carried in prose is addressed to a reader
while a `disallowed-tools` entry is addressed to the runtime — subject in full to the caveat above.
- **What an entry carries is a name, and for the script entries the path sits inside that name — so
the spelling is load-bearing, and here is the residual.** All five denials, and the `unpublish`
grant, spell the script **repo-relative**. This file's two evidence entries address no repo path at
all: they name the operator data root through the `<data-root>` placeholder the agent resolves at
read time, so the absolute `${CLAUDE_PROJECT_DIR}` spelling that used to sit beside these entries
is gone and the residual below is about the script entries alone. For `Bash(ls:*)` and `Bash(grep:*)` the path is only an argument and the entry
names the binary, so the form does not matter there; for the script entries the path is part of
what is named. **Whether the runtime's matching reaches a second spelling of the same path is not
established anywhere in this repository, and nothing that reads these entries as declarations can
settle it.** A declaration-level read — which is what the check named above performs — exercises no
runtime match, so it cannot tell one spelling of the path from another and its silence is not
evidence either way. The residual therefore rests on **the absence of any establishing
evidence** — a firmer basis than a matching rule this file would otherwise be asserting on its own
authority.
- **What this file does about that is conduct, not coverage.** Every invocation it makes is written
repo-relative, exactly as the entries spell it — the `temporary` invocation, `archive` step 2 and
the hand-off all do, and a later slice must not depart from it. **That pinning is a rule this file
follows.** Deliberately **no second entry in the absolute spelling was added**: its matching
behaviour would be exactly as unestablished as the first one's, the spelling space has no
enumerable end, and an entry added on a guess would be this same defect wearing the opposite sign.
The same naming governs `allowed-tools`, so an invocation in the other spelling would sit outside
the **grant** as well — not thereby forbidden, since a tool left off that list routes through the
usual permission settings, but not pre-approved either.
- `Bash(bash:*)`, `Bash(sh:*)` — denied because they are the two interpreters that would most
obviously re-enter the script under a different first token. **What this pair carries is its two
names and no more, and it is not what closes the arms** — the per-arm entries name those, and each
is listed. **The wrapper route is wider than the pair, and the remainder is a named residual.**
An alias is expanded after the command text is matched, so a command-prefix entry never sees it;
and a third interpreter, or `env`, `xargs`, `command`, or a generated command line whose first
token is neither `bash` nor `sh`, is a name these two entries do not carry. **Standing rule 2
covers the remainder, and it covers it as a rule this file follows rather than as a property these
entries guarantee.**
**What the frontmatter does *not* enforce, stated plainly rather than claimed.** `unpublish` is one
arm and this command owns one **form** of it — the pages-only takedown. **A per-arm denial cannot
express a flag's presence inside an arm it grants**, so *never passes `--yes`* and *never takes the
deleting default* are **rules this file follows, not properties the frontmatter guarantees.** They
rest on the fixed invocation in each verb section and on the argument string never being forwarded.
The mechanical check that would grade them **exists**: `scripts/test-command-taxonomy.sh` reads the
command directory and flags publish-flag literals on a publish-script invocation — `F3` on the forbidden
flag, `F2` on the repo-delete form. It **does not reach this file.** That limb grades **fenced**
invocations, and this file carries none — the two in the command surface are both in `trip-publish.md` —
so these rules are unexercised here rather than ungradeable. The second half of them is out of reach of
any literal scan either way: that the argument string is never forwarded is conduct, not a token. Named
rather than covered, and now for the accurate reason. **No
prohibition in this file is justified by what the frontmatter omits — omission is not prohibition.**
- `Write`, `NotebookEdit` — **what these two entries carry is the names of the two whole-file write
primitives, and that is the whole of what they carry.** **This command creates no file
and no directory** and overwrites none: every path it touches must already exist, and a missing one
is a stop, never a create. That conduct serves `ADR-007` §2 bound 5, whose class is **IRREVERSIBLE**
because `trips/` lives under `<data-root>` and nothing in this repository could restore it. **The
entries do not close creation or overwriting in general** — standing rule 6 names what is left over
and why. **The bound is met by rule; these two entries only narrow what the rule has to carry.**
**`Read` and `Edit` are file-general and the frontmatter does not bound them, so the bound is a rule
this file follows.** `Read` could reach `trips/<slug>/.passphrase`; `Edit` could reach a file
`temporary` disclaims. That neither happens is stated per verb, in each section's `**Reads:**` line
and in its *Never* paragraph, exactly as `ADR-007` requires: a command's conduct is written as a rule
the command follows, never as a property its frontmatter guarantees. **Nothing in this file argues
that this command cannot do something because a grant is absent, and nothing argues it may because a
grant is present.**
**Resolve the data root before you read anything.** `reference/trip-resolution.md` § *Resolving a trip*, gate `G0-root`,
using the `data-root-pointer:` path carried in this file's contract header below. Then **run each entry
below as a tool call**, substituting the resolved root for `<data-root>`. They are not pre-execution
blocks and nothing has run ahead of you: an entry yields no evidence until you issue it.
## Trips in your data home
`ls -1 "<data-root>/trips" 2>&1 || printf 'TRIPS-DIR-UNREADABLE\n'; true`
## Trip records
`grep -H -E '^\*\*Current mode:\*\*|^- \*\*Primary destination:\*\*|^\*\*Lifecycle:\*\*' "<data-root>/trips"/*/trip-context.md 2>&1 || printf 'NO-TRIP-CONTEXT-READABLE\n'; true`
## Contract header
```trip-contract-header
Contract: reference/trip-resolution.md § Resolving a trip
contract-depth: G8
population-role: RESOLVE
data-root-pointer: ${HOME}/.travel-planner/data-root
```
| verb | lifecycle | mode | destination | depth |
|---|---|---|---|---|
| temporary | ACTIVE | any | any | G8 |
| archive | ACTIVE | any | any | G8 |
| reopen | ARCHIVED | any | any | G8 |
The block above is this file's contract declaration, and the requirement table sits **below** it,
outside the fence, so it renders as a markdown table. The fence the contract publishes names that
table among the block's fields on a line that is **entirely a placeholder** — it describes the field
rather than rendering it — so the canonical fixes this block's field set and does not settle where
the table is drawn. `scripts/test-trip-resolution-contract.sh` does not grade the placement either,
read out of its source rather than assumed: it opens a fence by info string at one pin and that pin
reads `CLAUDE.md`, while every assertion it makes about this file reads whole lines of it with no
fence state. **A checker locating this file's declared verb set by opening this fence would see the
difference**; the table's own header row is the anchor that survives the rendering.
**Frozen.** The citation line, byte-for-byte. `contract-depth: G8` as a **bare** token on its own
line — a code-span rendering of that line is graded as an *absent* declaration, so the tolerance for
a code span belongs to a depth **cell** and never to this line. `population-role: RESOLVE`. The
fence tag. The table's five columns, their order, and their header row.
**Why the cells read as they do, since three of them carry the whole mechanism of this command.**
- **`lifecycle` is declared only on `reopen`.** `temporary` and `archive` leave that cell at G7's
`ACTIVE` default. This is the whole mechanism by which an archived trip stops resolving as active
for **every existing and every future verb of every command**, with no edit to the contract and no
edit to any sibling file: a verb that declares `ANY` keeps working, and a verb that leaves the cell
defaulted refuses. Nothing else has to change for that to hold.
- **`mode` and `destination` read `any`, and `any` is load-bearing here rather than lazy.** A cell
reading `any` admits the non-nominal state its own gate can yield — `UNSET` from G5, `UNDECIDED`
from G6. Both are needed: the most common non-post-trip archive is an abandoned IDEATION trip
whose destination was never decided and whose mode may never have been set, and a row naming
values would make this command refuse exactly the trip it exists to conclude. `reopen` reads `any`
for the same reason, and for one more — the trip whose mode is `UNSET` is the one a reopen is most
likely to precede.
- **A verb absent from the table is `REFUSE`, never `RUN`, so the set is closed.** In particular
**no row of the table above carries a `delete` verb**: the repo delete is `ADR-007` §4 row 10,
`EXCLUDED` for `ADR-007 §2`, and it reaches the operator as a hand-off render rather than as a
verb. A typed `delete` therefore lands in § *When the token is not a verb of this command*.
**Extension point.** One table row per verb a later slice implements, appended below the rows
already there, with that verb's own `## <verb>` section.
## What the blocks above are
The ladder the header cites is stated in one place and is not restated here. The blocks above are
this file's evidence entries, tool calls you issue as the data-root paragraph above directs, and
**their output is the whole of the trip state this file resolves against** — the population from
the listing block, and the lifecycle, the mode and the destination by value from the record block.
No verb re-runs either block, and no verb re-derives what they already carry.
**The header block above fixes how many evidence entries this file carries, and it already
carries all of them** — no verb and no later slice adds another. A block this file does not already
carry is a conformance failure on push whatever a verb section says, and a date a verb needs is
taken as a tool call in its own body, the way `/trip-new` and `/trip-record log` take theirs.
**The read-scope ceiling is a principle, not a path list: every verb reads exactly what its own
`**Reads:**` line names, and nothing else.** Silence is a prohibition here rather than a gap — a read
this file performs that no section names is out of scope, whether or not a list would have permitted
it. Each `## <verb>` section opens with that line, before any procedure, and a read a reader would
expect and the verb does **not** perform is stated as a negative with its reason, so the next author
does not add it back.
## Standing clause — binding every verb of this command, present and future
This clause sits outside every verb section on purpose: a rule written inside one verb protects only
the verbs that existed when it was written.
1. **Never sets `ALLOW_PLAINTEXT`, and never passes `--yes` to `unpublish`.** `ADR-007` §2 bound 3,
which is not negotiable by a later slice. The subcommand and the flags each invoking verb passes
are fixed in this file; **the verb's argument string is never forwarded to the script**, so no
user-supplied token can become a script flag. **This rule is followed, not enforced** — a per-arm
denial cannot express a flag inside an arm this file grants, and the frontmatter section above
names that residual rather than covering it.
2. **Reaches the publish script only by its own path, spelled repo-relative exactly as the
frontmatter entries spell it.** Never through `bash` or `sh`, never through a wrapper, an alias or
a generated command line, and never through a second spelling of the script's own path.
`disallowed-tools` **names two** members of that list, `bash` and `sh`, and what naming them
achieves is subject to the caveat in the frontmatter section above. **The rest of this rule — the
alias, the other interpreters, and the path spelling — is followed, not enforced**, and that
section names each as a residual rather than covering it.
3. **Never publishes, and never re-publishes.** No verb here runs `publish`, `update`, `rotate` or
`list` — nor `status`, which is `list` reached under a second name. **Each of those five arms is
denied by name in `disallowed-tools`, in the repo-relative spelling, so for that spelling this
rule is written into an entry as well as into this clause** — with the frontmatter section's
caveat on what an entry achieves, and its spelling residual, both applying in full. Where
publishing is what the user wants, name `/trip-publish` and stop.
4. **Never reads, writes, moves, prints or removes `trips/<slug>/.passphrase`**, and never renders
its contents in any output, including a refusal. Reading it would put the secret into the session
transcript, which is the failure the publish exclusions exist to avoid.
5. **Never overwrites and never deletes existing trip content.** `ADR-007` §2 bound 5, and `trips/`
lives under `<data-root>`, so nothing in this repository could restore a clobber — not a revert,
not the repo, not the log. `Edit` is used on exactly two admitted shapes: **changing only the named
field's line**, and **appending under a new section where no existing line changes**. Removing a
line, rewriting a file, reordering it, merging into a prior unit or deleting one is neither.
6. **Creates nothing.** No file, no directory. Every path this command touches must already exist; a
missing one is a stop that names the path and names the repair, and the repair is named rather
than run. **`Write` and `NotebookEdit` are denied by name, which addresses those two primitives —
it does not establish that no create path exists.** `Bash(ls:*)`, `Bash(grep:*)` and `Bash(date:*)` are
granted and sit outside every denial, and a redirection on any of the three would create a file.
**So *creates nothing* is a rule this file follows** — held by each verb's fixed invocation set
and by its own `**Reads:**` and *Never* lines, not by the denials. **That residual is named here
rather than covered**, and it is why this is written as a rule at all.
7. **Writes only under `trips/<slug>/`**, where `<slug>` is `trip.slug` exactly as `E1` spelled it.
No path is ever built from the `--trip` value.
8. **Never asserts a conclusion about trip state that no gate and no script observed.** § *The
stop-message rule* below is where this one is worked out, because it is the rule that binds this
command hardest.
9. **An act on a verb the operator did not type runs only after a confirmation that names the verb
and its target, answered before the act.** The verb is the token in this file's requirement
table. The target is the operand that verb's own `## <verb> <signature>` heading declares and,
where it declares none, the trip `E1` resolved. Inference may reach such a verb, may name it and
may prepare it; it may not act on its own selection. Where a verb's own section already states a
confirmation shape — an echoed outgoing-to-incoming pair, a preview over a source's own answered
set, a typed identifier, a display name beside a member count — that shape stands unchanged and
this rule is added beneath it, never substituted for it. **A verb is outside this rule where its
own `**Reads:**` block declares each of three things: that it writes nothing, that it dispatches
no agent, and that it performs no act whose effect lands outside the trip's own files.** That is
the inference line `reference/adr/ADR-007-command-entry-point.md` § 1 draws, read here rather
than restated; a block declaring none of the three leaves its verb inside this rule, because a
property nobody has declared is not one this rule may assume. **This rule is followed, not
enforced.** No frontmatter key expresses a boundary finer than the file, the tool lists are
turn-scoped and gate tools rather than acts, and no arrangement of them makes a confirmation
happen — so the strength here is the strength of a rule, which is what § 1's amendment states and
is the whole of what this file claims. A confirmation is what an inferred selection needs
**before** an act the bounds already permit. It is never what makes an act they forbid available:
it admits no `ALLOW_PLAINTEXT`, no `--yes` to `unpublish`, and no overwrite or deletion of
existing trip content, each of which rules 1 and 5 above and `ADR-007` § 2 forbid
unconditionally.
10. **A run nobody can answer writes only what its verb writes without asking.** A run is
non-interactive where no later message can reach the session: print mode, or a scheduled task.
An answer arrives only in a later message, and `allowed-tools` clears when one does
(`reference/adr/ADR-007-command-entry-point.md` § *Context*). So where a verb's section reaches
a write without asking anything, the write runs in this turn, under this turn's grants, because
typing the verb is what asked for it. Where the section asks first — a question, a choice of
routes, a confirmation, a typed token — the verb stops there: it names what it would have asked,
writes nothing past that point, and takes no default, no assumed answer and no flag in the
answer's place. What it wrote before that point stands, and it says so. A write the harness
denies is relayed as a denial and never reported as done. **A session need not recognise print
mode for this to hold**, because a question nobody answers writes nothing either way, and a
verb's own non-interactive row stands, and stops no later than this rule would.
`reference/adr/ADR-051-a-verb-runs-until-it-asks.md` records the decision; this rule is its
operative statement. **This rule is followed, not enforced.**
**Extension rule.** A later slice may append a numbered rule **only** where it genuinely binds every
verb of this command, present and future, and must say in its own design that it did so and why. A
rule that binds only that slice's own verbs goes inside those verb sections.
## Selecting the verb
A literal lookup. Every step is lexical and the last has a terminal else-branch, which is what
separates a lookup from a classification.
1. Take `$ARGUMENTS` as a literal string.
2. Remove `--trip` together with the value that follows it, from wherever in the string it appears —
it is accepted in any position. `--trip` is a contract-level token: it is removed **before** the
verb is selected, it is passed to **no** verb, and it is **never** a path component. **A `--trip`
with no value after it is a malformed invocation** — say that `--trip` was given without a slug,
and stop. That refusal happens before the gate ladder runs, so it sets no `trip.resolution` and no
`trip.stop_gate`, and it asserts nothing about whether a trip exists, which trip is active, or
what mode it is in.
3. The verb is the first remaining whitespace-delimited token, ASCII-case-folded. **If no token
remains, no verb was typed** — go to § *When no verb was typed*.
4. **Strip at most one leading `--` from that token.** See the divergence note below.
5. Match the result by **exact string equality** against the `verb` column of the requirement table
in this file, read live from the block already in context. Not a prefix match, not a nearest
match, not a fuzzy match, not a substring match. A token matching no cell goes to § *When the
token is not a verb of this command*.
6. Everything after the verb token is that verb's argument string. It is not interpreted here, and
it is never forwarded to the publish script.
Never infer the verb from the wording of the request, from the trip's mode, from which files exist,
or from anything other than the token step 3 produced.
**The `--`-strip in step 4 is a divergence from the shipped consumers and is declared as one.** The
dispositions are spelled `--temporary`, `--archive` and `--reopen` where this command was specified,
while the `verb` column takes bare tokens and this file's headings key on them. One total,
deterministic, order-fixed normalisation reconciles both without making the lookup any less lexical:
**it changes the spelling accepted, never the set recognised.** `--archive`, `archive` and
`--ARCHIVE` reach the same row. `arch`, `--archiv`, `---archive` and `--archive=x` all reach § *When
the token is not a verb of this command*, and **no near-match suggestion is offered on that branch**.
**The set this command recognises and the set it implements are the same set**, read live from the
same rows of the requirement table above. So this file carries no *recognised but not implemented at
this revision* branch — that branch has nothing to select — and a later slice must not add one.
`ADR-007` §3 fixes the direction: to add or change a request type, add or change the command first.
**The refusal branches of this file are these, and they are different renders:** the
`--trip`-without-a-value refusal in step 2 above; § *When no verb was typed*; § *When the token is
not a verb of this command*; and § *When the resolved state does not serve the verb*. Collapsing any
two of them is a defect.
## When no verb was typed
`/trip-decommission` on its own is **not** a default; it is a refusal. Say that no verb was given,
print the verbs of this command read live from this file's own requirement table, add one sentence
naming the engine's guided-entry surface at its root — the surface that takes a request in ordinary
words and answers with the verb that serves it, naming a verb and running none — and stop. Name no
verb in that sentence. Select no verb, and do not fall back to one.
`/trip` defaults a bare invocation to `status` because `status` is read-only. **Every verb of this
command has an out-of-repo effect or a file effect, and a command with effects never picks one for
you.**
This refusal happens before the gate ladder runs, so it sets no `trip.resolution` and no
`trip.stop_gate`, and it asserts nothing about whether a trip exists, which trip is active, what mode
it is in, or whether anything is published.
## When the token is not a verb of this command
Render exactly four things and nothing else:
1. The token, verbatim, as the user typed it.
2. The verbs of this command, read live from this file's own requirement table — not from a list
written into this file.
3. One sentence stating that that table is the whole of this command's verb set at this revision.
4. One sentence naming the engine's guided-entry surface at its root — the surface that takes a
request in ordinary words and answers with the verb that serves it — and saying that it names a
verb and runs none. Name no verb in that sentence.
Then stop. Do not guess. **Do not offer a near-match suggestion — no "did you mean"** — a suggestion
is a classification with an extra step and a reflexive accept, on the least-inspected path in this
file. Do not fall back to any other verb of this command, and do not infer a verb from the wording of
the request.
**A typed `delete` lands here**, because the repo delete is not a verb of this command. This render
does not carry the hand-off: it renders the three things above and stops. The hand-off is named in
`temporary`'s and `archive`'s own output, and a user who typed `delete` reaches it by asking. That is
`ADR-007` §4 row 10's disposition rendered honestly rather than smuggled back in as a verb.
This refusal happens before the gate ladder runs, so it sets no `trip.resolution` and no
`trip.stop_gate`: those are outputs of a ladder that did not run, and giving this refusal a gate id
would widen the contract's field set. Say nothing about whether a trip exists, which trip is active,
what mode it is in, or whether anything is published.
## When the resolved state does not serve the verb
This is the G7 render. It happens after the ladder has run, so it carries `trip.stop_gate: G7`.
- **`REDIRECT`** — name the command that does serve the request, and stop.
- **`REFUSE`** — name why the resolved state does not serve the verb, taking the reason from that
verb's own row of the requirement table, and stop.
**The reason is derived from the resolved verb's own row, and never from a universal over the
table.** Read that row live; the cell whose declared value the resolved record does not satisfy **is**
the reason, and the render names **that cell, the value the row declares, and the value the ladder
resolved** — those three and no more. **Nothing here states what any other row declares**, because
that is a closed enumeration of a set this table's own extension point grows, and it is false the
first time a slice appends a row.
Refusals of this shape carry their own remedy, taken from the cell that was not satisfied:
- The trip is `ARCHIVED` and the verb's row leaves `lifecycle` at its `ACTIVE` default → say the trip
is archived, name the cell and the two values, and name **`/trip-decommission reopen`** as what
returns it to `ACTIVE`.
- The trip is `ACTIVE` and the verb's row declares `lifecycle: ARCHIVED` → say the trip is active,
name the cell and the two values, and name **`/trip-decommission archive`** as what concludes it.
Which verbs run on an archived trip is read **live from the `lifecycle` column of the table above**,
never from a sentence in this file naming a set.
## The stop-message rule, and the defences this command carries
`reference/trip-resolution.md` § *Resolving a trip* states the rule: a STOP **names what could not be established and
the remedy**, and **never asserts a conclusion about trip state that the gate did not observe.** The
contract names this command's own shape as the forbidden one — *"Nothing is published, so there is
nothing to take offline"*, a conclusion about publication state derived from a directory listing that
may have failed. It binds every render of this file, not only the ones the contract types as stops.
**Defence 1 — this command never derives publication state.** It does not probe for
`trips/<slug>/.publish`, does not read `trips/<slug>/.passphrase`, does not read
`trips/<slug>/.publish-slug`, and lists nothing in order to decide whether to act. It runs the
idempotent script, or it hands off.
**Defence 2 — the script's own output is evidence; this command's inference is not.** Where the
script reports an outcome it observed through a real API call, relay it **as the script's
observation, attributed to it**. Add nothing, and draw no conclusion beyond what it says. A refusal
because another publish command holds the trip's lock is relayed the same way, as the script's own; the
lock's removal, where the refusal names one, is the operator's to run, never this command's.
**Defence 3 — the no-op line is the forbidden shape arriving from the script, and it is qualified
rather than relayed.** `unpublish` resolves the repo through `.publish-slug`; on a name that no
longer matches a live repo it reports that there is nothing to take down and **exits successfully** —
the site stays up and the operator is told it is gone. **That is a property of the script's own
resolve-then-report path, and that path is what establishes it here.** `/trip-record .publish-slug`
is where the name it resolves is set, and is named below as the remedy — not as the basis for this
claim.
So when the script takes its no-op branch, **do not report the trip as unpublished, and do not say
nothing is published.** Say, in these terms:
- the repo the resolver named was not found — naming the repo **as the script named it**;
- **a site published under a different name is not covered by this result**, because the resolver
reads one name and reports on that name alone;
- `/trip-record .publish-slug` is where that name is set, and re-running this verb after correcting
it is the remedy.
That is what could not be established, and the remedy. It is not a report that the site is down.
## temporary
**Reads:** nothing of the trip beyond the blocks above. It reads no `trip-context.md`, no `trip-log.md`, no
`trips/<slug>/.publish-slug` and **no `trips/<slug>/.passphrase`**. For the deleting hand-off it
renders, it reads that line from `CLAUDE.md` § *Publishing to GitHub Pages* — in context when this
repository is the workspace, otherwise opened at the engine root. **Dispatches no agent.**
**Non-interactive: the standing clause's *run nobody can answer*.**
Takes the trip's site offline and leaves the local tree untouched.
**Invokes:** `scripts/publish-trip-site.sh`, subcommand `unpublish`, on `trips/<slug>`, with the
`--disable-pages-only` flag and `--data-root <trip.data_root>` — and nothing else. The script path is
spelled **repo-relative**, exactly as the frontmatter entries spell it. **`trips/<slug>` stays
relative, and the data-root flag roots it:** its value is the absolute path gate `G0-root` resolved,
so the script finds the trip under your data root from whatever directory the session is in. Without
the flag it would look under the working directory, where the trip is not — and where a trip of the
same name would be the wrong one, whose repo a no-op line would then name. **The subcommand and the
flags are fixed here**, and the verb's argument string is **never forwarded**, so no user-supplied
token can become a flag; the data-root value is not taken from that string either. That closes the
**caller-supplied** route to `--yes`, and it closes it **by this file's own conduct** — the
frontmatter cannot express a flag inside an arm it grants, which is the residual named above.
**Writes: nothing.** No byte of the local tree. No marker, no log entry, no file, no directory. This
is the verb's defining property and it is stated positively rather than inferred from an absent
grant: **this verb takes no `Edit`**, and the passphrase file is **not read, not written, not moved
and not removed**. **The other half of the claim belongs to the script and is established there
rather than here:** the disable-only limb returns before the one local removal `unpublish` performs,
so it touches neither the passphrase file nor `trips/<slug>/.publish`. **The claim rests on that
limb**, which is where a change to it would have to be caught.
**No additional OAuth scope, and no gate is bypassed.** The disable-only limb returns **before** the
`delete_repo` scope check and **before** the typed confirmation. Nothing is bypassed because nothing
stands on that path — which is a statement about where the limb returns, not a claim that the action
is inconsequential.
**Reversibility: CHEAP · confidence HIGH.** Name the reversal in the output: **re-enable Pages in the
repo's Settings → Pages, branch `main` / root.** It is operator-side, and this command does not
perform it.
**The residual is stated separately rather than folded into the tier.** The repo name stays public,
and already-fetched content may persist in third-party caches and clones — **a takedown is not a
retraction**, and no tier on this action reverses a disclosure that already happened.
**Report what the script reported**, per § *The stop-message rule*. On the no-op branch, take that
section's render; do not say the site is down.
**A stated consequence, because the row makes it real.** This verb's row leaves `lifecycle` at the
`ACTIVE` default, so on an archived trip it refuses at G7. `archive` has already performed this same
takedown; a site re-enabled by hand on an archived trip needs a `reopen` first. That is a consequence
of the row, said out loud rather than left to be discovered.
**Never.** Runs no other subcommand and passes no other flag. Sets no `ALLOW_PLAINTEXT`. Passes no
`--yes`. Reaches the script through no `bash` or `sh`. Reads or renders no passphrase. Writes,
creates or deletes nothing. Deletes no repo — see § *Deleting the trip's public repo*, which is named
in this verb's output as the further option and is never run from here.
## archive
**Reads:** `trips/<slug>/trip-log.md` — read **before** it is written, to confirm the append target
exists and to locate the append point at its end; `trips/<slug>/trip-context.md` — read to locate the
lifecycle marker line or, where it is absent, the title-line anchor the insert uses. Reads **no
`trips/<slug>/.passphrase`**, and reads `trips/<slug>/.publish-slug` not at all — the resolver reads
it, this verb does not, and reading it here would let this command form its own view of publication
state, which § *The stop-message rule* forbids. Of the engine, it reads `CLAUDE.md` § *trip-log.md* and,
for the deleting hand-off, § *Publishing to GitHub Pages* — in context when this repository is the
workspace, otherwise opened at the engine root. Dispatches no agent.
**Non-interactive: the standing clause's *run nobody can answer*.**
Concludes a trip: the same takedown `temporary` performs, then the lifecycle marker, then a closing
entry in the trip's log.
### Order, and the order is load-bearing
**Run these in this order. Do not reorder them.**
1. **Preconditions first, before any out-of-repo effect.** `Read` `trips/<slug>/trip-log.md`.
**Absent → stop, and create nothing:** name the path that is missing and name
**`/trip-new <slug>`**, whose Resume branch is the declared repair for a missing scaffold member.
**Name it; do not run it.** No `Write` grant is taken here. This step runs first precisely so that
a stop can never leave a site taken offline with no record of it. That stop is reached after the
trip resolved and this verb ran, so it sets no `trip.stop_gate`, does not change
`trip.resolution`, and renders no gate id.
2. **The takedown** — the same fixed invocation `temporary` makes:
`scripts/publish-trip-site.sh`, subcommand `unpublish`, on `trips/<slug>`, with
`--disable-pages-only` and `--data-root <trip.data_root>`, and nothing else. The argument string
is not forwarded. **Nothing is deleted:** that limb returns before the delete-scope check and
the typed confirmation, and it touches neither the publish marker nor the passphrase file.
**A non-zero exit from the script is a takedown that did not happen, or may not have: stop here.**
Do not set the marker and do not write the closing entry. Report, per § *On partial completion*,
that the takedown step ran and failed, relay the script's message as its observation, and say that
the trip stays `ACTIVE` and this verb can be run again.
3. **The marker** — set `**Lifecycle:**` to `ARCHIVED`, per § *The lifecycle marker*.
4. **The closing log entry** — append it, per § *The closing entry*.
**Takedown before marker, and here is why that is load-bearing rather than tidy.** This verb's row
declares `lifecycle: ACTIVE`, so **once the marker lands, a re-run of this verb refuses at G7.**
Writing the marker first would therefore convert a failed takedown into a trap: the trip reads
archived, the site is still live, and the way back is through a verb the user did not ask for.
With the takedown first, a partial completion leaves the trip `ACTIVE` and the whole verb re-runnable,
and the script's own idempotence makes the repeat harmless. **The ordering and this row's `lifecycle`
cell agree, and they were made to agree deliberately.**
### On partial completion, say exactly what happened
Report **which steps executed and which did not**, by name. **Never report a step as done that did
not run**, and **never infer one step's outcome from another's** — a marker that was written is not
evidence that the takedown succeeded, and a takedown the script reported is not evidence that the log
entry landed. Where a step did not run, say which one and why, and say what state that leaves.
### The closing entry
**The date.** Get it by running `date +%F` as a tool call **here in the body, not as a pre-execution
block**, and use the bare `YYYY-MM-DD` form exactly as the call returned it. The reason is the
contract rather than style: the contract retired that carrier, and a line opening with its marker
outside a fence fails `scripts/test-command-taxonomy.sh` group `I` on push, whatever this
section says.
**The write tool, and the shape it is taken under.** `Edit`, under standing rule 5's append shape:
the target exists, **no existing line changes**, and the entry is added at end of file. The
precondition in step 1 **is** that shape's existence probe, and it is what makes the tool reachable:
it runs before `Edit`, and on its absent branch this verb stops rather than falling through to a
create.
- **The entry's structure is `CLAUDE.md` § *trip-log.md*'s and is not restated here.** That section
is the authority on its own fields, read live from that text — in context when this repository is
the workspace, otherwise opened at `${CLAUDE_SKILL_DIR}/../../CLAUDE.md`.
- **The entry's scale is § *Ending a session*'s.** That section's remaining disposition — skipping
the log — is not reachable here, because the verb was typed and the decision to record is therefore
already made.
- **Append only.** A new `## Session <YYYY-MM-DD>` section at end of file. **No existing line
changes:** the title line is not rewritten, and no prior entry is edited, re-ordered, merged,
deduplicated or removed. Where a section for the same date already exists, **a second one is
appended beside it rather than merged into it** — merging edits a prior entry.
- **What it carries.** That the trip was archived; that the site was taken offline and by which
invocation; the reversal for each — `reopen` for the marker, the Settings → Pages step for the
site; and the residual, that the repo name stays public and cached copies may persist. It carries
**the act and its reversal**, and never state that belongs to `trip-context.md` or to
`outputs/event-status.md`.
- **Never invents.** An element with nothing to record is omitted rather than filled to make the
entry look complete.
### Reversibility
**CHEAP · confidence HIGH**, for the state this verb changes: `reopen` restores the marker, and the
Pages re-enable is named in the output.
**Two elements are stated separately, because a tier on the action does not cover them.** The closing
log entry is a **permanent addition** — an append is never removed, which is what bound 5 is for.
And the marker **changes how every other verb of the whole surface resolves this trip**, which is
blast radius rather than reversal cost.
**Never.** Deletes nothing and removes no line. Runs no subcommand other than the one named in step 2
and passes no flag other than the ones named there. Sets no `ALLOW_PLAINTEXT`. Passes no `--yes`.
Reads or renders no passphrase. Deletes no repo — see § *Deleting the trip's public repo*, named in
this verb's output as the further option and never run from here. Adds no heading to
`trip-context.md`, and writes no `templates/` file.
## reopen
**Reads:** `trips/<slug>/trip-context.md` — read to locate the `**Lifecycle:**` line and its current
value before that value is changed, so the outgoing value can be echoed. Reads no `trip-log.md`, no
`trips/<slug>/.publish-slug` and **no `trips/<slug>/.passphrase`**. Runs no script and dispatches no
agent.
**Non-interactive: the standing clause's *run nobody can answer*.**
Returns an archived trip to `ACTIVE`. Its row declares `lifecycle: ARCHIVED`, which is what lets it
run on a trip whose lifecycle the defaulted rows refuse. **Which verbs run on an archived trip is
read live from the `lifecycle` column of the table above**, never from a sentence here naming a set.
**It sets the value; it never removes the line.** `**Lifecycle:** ARCHIVED` becomes
`**Lifecycle:** ACTIVE` — an `Edit` in which **only the named field's line changes**, standing rule
5's first admitted shape.
**Why setting and removing are not the same act, when they reach the same gate result.** An absent
`**Lifecycle:**` line defaults to `ACTIVE` at G4, so removing the line would resolve the trip
identically. **Removing it is a deletion of trip content, which `ADR-007` §2 bound 5 forbids**, and
`trips/` lives under `<data-root>`, so nothing in this repository could restore the removed line. It
would also erase the record that this trip was ever concluded. **Same outcome, different legality —
this file takes the legal one.** The line stays, and the trip's history stays legible.
**Echo the outgoing value and the incoming one**, both, so the change is visible in the output rather
than only in the file.
**Where the line is already `ACTIVE`, or absent.** Already `ACTIVE` → **idempotent: change nothing,
and say so.** Absent → the trip already resolves as `ACTIVE` by the contract's declared default;
**change nothing, create nothing, and say that the trip is not archived**, naming the default rather
than reporting a repair. Absence is the contract's default tested as its own case; it is **never**
read as a proxy for a value, and no branch here is predicated on it as one.
**It performs no out-of-repo act.** It does **not** re-publish and it does **not** re-enable Pages.
It **names** the Settings → Pages step as the operator's, and names **`/trip-publish`** for a rebuild.
A reopen that silently re-published would put a site back online without anyone asking.
**Reversibility: CHEAP · confidence HIGH** — `archive` is the inverse, and the closing entry
`archive` wrote stays, because an append is never removed.
**Never.** Removes no line from any file. Deletes nothing. Creates nothing. Runs no script. Sets no
`ALLOW_PLAINTEXT`. Passes no `--yes`. Reads or renders no passphrase. Writes no file other than
`trips/<slug>/trip-context.md`, and within it no line other than the `**Lifecycle:**` line.
## The lifecycle marker — shape, placement, and the constraint that keeps G4's default legitimate
**Shape.** One line: `**Lifecycle:** ARCHIVED` or `**Lifecycle:** ACTIVE`. **Bare value, no
brackets, ever.** The vocabulary is exactly G4's yielded set and nothing else — a value outside it is
never written, and a bracketed value is never written, because a bracketed value would make the field
a placeholder and hand it to `ADR-007` §2 bound 6.
**Placement.** Immediately below the trip's `# Trip Context — …` title line, separated by a blank
line, above the first `---`. The anchor is **the file's first `#` heading**, which
`templates/trip-context.template.md` carries as its own first line — so every `trip-context.md`
scaffolded from that template has one. **That template is what establishes the anchor, and the claim
is a property of it rather than a universal over the population:** a `trip-context.md` carrying no
`#` heading has no anchor, and the insert then **stops and names the missing anchor**, rather than
choosing another place or creating one.
**Why there, and why it is not a sixth mode.**
- **It is outside `## Mode`.** `Current mode:` has its own vocabulary and every resolver branches on
it; a lifecycle value inside that block invites a sixth mode. `UNSET` already demonstrates the
shape of a non-mode — it names the absence of a mode, holds no row in `CLAUDE.md` § *Modes*, and is
disposed of by a requirement table rather than by the gate that yielded it. **`ARCHIVED` is the
same shape one gate earlier:** G4 yields it, G4 does not stop on it, and G7's table disposes of it.
The marker is a separate field on a separate line for exactly that reason.
- **It is outside every `##` block.** The preamble is not a block, so the insert collides with no
block writer. `CLAUDE.md` § *Write ownership* assigns a block it does not list to **nobody** and
requires a new block to get an owner in that table before it gets content. **This command adds no
`##` heading to `trip-context.md`**, so any block census over that file or its template is
unchanged by it.
- **The gate does not depend on the placement.** The record block's third alternation arm is anchored
at line start and scans the whole file, so G4 finds the field wherever it sits. The anchor exists
to make the **write** deterministic, not the read.
**The write is an insert that changes no existing line, and its cases are branches rather than one
path.** Line absent → **insert at the anchor**, changing no existing line. Line present reading
`ACTIVE` → change the value. Line present reading `ARCHIVED` → **idempotent: change nothing, and say
so.** No branch here is predicated on the field's absence *as a proxy for a value*; absence is the
contract's declared default, tested as its own case.
**The binding constraint, and this command honours it by not approaching it.**
`templates/trip-context.template.md` **must never ship a `Lifecycle:` placeholder.** The moment it
does, `ADR-007` §2 bound 6 binds the field and **G4's default inverts from *absent ⇒ `ACTIVE`* to
*absent ⇒ malformed***, which would make every trip scaffolded before this command existed read as a
broken file. **This command touches no template — and that is a rule it follows, not something its
frontmatter withholds.** `Write` is denied, but changing a file that already exists needs `Edit`, and
**`Edit` is granted and file-general**: it is exactly the tool the disclaimed action would take, and
no entry bounds where it may reach. What holds the template out is standing rule 7 — which makes
`trips/<slug>/` the only place any verb here writes — together with this section and `archive`'s and
`reopen`'s *Never* lines. **That is the named residual: `Edit`'s reach is bounded by rule, and
nothing on this surface bounds it by control.**
## Deleting the trip's public repo — the operator hand-off
**This is not a verb of this command, and it never becomes one.** `ADR-007` §4 row 10 disposes of the
default `unpublish` — the repo delete — as **EXCLUDED**, reason `ADR-007 §2`. The bound and the TTY
leg are co-extensive for this form and **the bound is the firmer basis**, so the correct output is
not a substitute mechanism. It is the hand-off below, and **this command never runs it.**
**Where this appears.** In `temporary`'s and `archive`'s own output, as the further option available
to the operator. Not in the not-a-verb refusal, which renders its three things and stops.
**The hand-off.** The command lives in `scripts/publish-trip-site.sh`, under the engine root. The
form is its `unpublish` subcommand on the trip's directory **without** the disable-pages-only flag —
the default, which is the deleting one — and with the data-root flag every line of that section
carries. **Point the operator at `CLAUDE.md` § *Publishing to GitHub Pages*, which carries the
literal line to run — in context when this repository is the workspace, otherwise opened at
`${CLAUDE_SKILL_DIR}/../../CLAUDE.md` — and print that line for them with every placeholder filled:** `trip.slug` for
the placeholder trip directory, `trip.data_root` for `<data-root>`, and for `<engine-root>` the
engine root named at the top of this file, its `..` segments kept as written — collapsed as text,
they land outside the engine when this verb's directory is a link. Filled, the line runs from
whatever directory the operator's terminal is in. Printing it is not running it. Then state, in
terms:
- **It deletes the public repo, and with it the destination-and-year in the repo's name** — not only
the site.
- **Reversibility: IRREVERSIBLE · confidence HIGH. Rollback is infeasible, and here is the
statement:** there is no revert that reaches it, no repo left to restore from, and no log that
recovers it. Nothing in this repository and nothing this command holds can undo it.
- It needs the `delete_repo` gh scope, which the operator grants once.
- It **prompts at a terminal for the repo name to be typed** before it proceeds, and a command this
surface runs has no terminal.
- **This command never runs it, and never passes the yes-flag that would skip that prompt.**
- Content **may persist in third-party caches and clones regardless**, so this is not a retraction
either.
**One mechanical constraint on the render, and it is a real hazard rather than a style note.** **No
line of this hand-off may begin with the pre-execution marker** — a backtick-fenced bang at line
start. Any such line outside a fence is the retired carrier, and it fails
`scripts/test-command-taxonomy.sh` group `I` on push, and the harness still expands a line of that
shape at load, under this file's grants — the `unpublish` arm among them — and a failing one aborts
the whole command. The contract guard does not count it: that
guard counts a line opening with an evidence entry's own opener or with a retired wrapper opener.
The bare script path goes in a code span and the flags go in prose, which is the rendering
`scripts/test-trip-resolution-contract.sh` records in its own scope constraint: it declines to scan
`CLAUDE.md` for publish-script invocations precisely so that the conforming hand-off does not
become the violation.