seal-use users activate <userId> shipped in v0.4.0 as scaffolding for
the automated delegation flow but never made it onto the documented
surface, while sealUserActivate stayed reachable through the MCP write
gateway — an undocumented, ungated mutation. Adopt it:
- Document in the help registry (users area).
- Require --yes like its siblings delete/reset-password (CLI layer
only; the MCP capability call path is unchanged).
- Wire the --dry-run preview already supported by the capability.
- Cover the gate and the preview in users.test.ts and
dry-run-gates.test.ts.
Close the AGENTS.md "Safety Guardrail & Mutation Preview" coverage gap:
every remote-mutating command now supports --dry-run returning
structured JSON with preview: true, without executing the mutation.
- Domain capabilities gain an optional dryRun param and preview
handlers: sealUserCreate/ResetPassword/Delete/Activate/DelegationCreate,
sealDelegationRevoke, sealApprovalRuleCreate/Update/Delete/
VersionPublish, sealSimulationBatchClean, sealInsightRecordAnalyze.
Previews reuse the shared mutationPreview() diff shape; reads (GET)
are allowed to build the before/after, writes never fire.
- CLI wiring: users create/delegation/reset-password/delete, rules
create/update/delete/publish, simulation delete, analytics analyze,
auth link revoke pass dryRun; dry-run bypasses the --yes gate
(webhook delete pattern); corps mark previews the local config tag
change without writing it.
- Shared dryRunOption() helper in parser.ts; help registry documents
--dry-run on all covered commands; cli-protocol.md §3 example list
updated; cli.md and embedded skill regenerated.
- New src/cli/commands/dry-run-gates.test.ts pins the contract:
preview JSON on stdout, zero mutating requests (GET-only where reads
are needed), config untouched for local previews.
Local user-config writes (corps switch/rename, config mode/test-dir/
lint) stay outside this contract: they are reversible local edits with
no upstream effect.
Unify the visible command surface on one canonical spelling per
semantic concept while keeping every legacy spelling working as a
silent parser/dispatcher alias (per .agents/rules/cli-protocol.md §6):
- Fix silent-ignore accept-set gaps: webhook resource-pack export now
reads --out/--output-file and --downloads/--download; approval-runs
and webhook read canonical --start-date/--end-date; webhook secret
reveal accepts --reveal/-r alongside legacy --show-secret.
- Add kebab-case parser registrations for camel-only flags (human-result,
manual-approval-status, include-bridge, rule-version, document-limit,
context-lines, source-document-sn/-id, simulation-batch-id) and read
them in rules/documents search, context, approval-runs list/summary/
bridge/export.
- Retire verbs on the visible surface only: webhook create (add),
simulation delete (clean), preference thinking-depth policies delete
(remove); dispatch keeps both. Runtime nextAction suggestions and
doctor knowledge switch to canonical spellings.
- Add src/cli/naming-charter.test.ts: help surface must be lowercase
kebab-case and free of retired tokens; canonical/legacy spellings
must both parse; P0 accept-sets pinned.
- Document the charter in .agents/rules/cli-protocol.md §7; sync
AGENTS.md, README, and skills/references docs; regenerate cli.md and
embedded skill artifacts.
The shared tokenizer accepts `ms` for the simulation windows, and without a
per-caller unit set that grammar leaked into --expire: `--expire 500ms` was
a usage error before the parsers were unified and became silently rounded to
a 1h / 1s link after.
tokenizeDuration now takes an allowed-unit set; the expire flags pass
EXPIRE_UNITS (d/h/m/s) while parseDurationMs keeps the full set. Adds a
regression test asserting sub-second input stays exit 2 on both flags.