Skip to content

docs: the verb rule — pack operations bind to the pack, not the screen - #171

Merged
MoebiusX merged 1 commit into
developfrom
codex/pack-operations-verb-rule
Oct 19, 2026
Merged

MoebiusX merged 1 commit into
developfrom
codex/pack-operations-verb-rule

Conversation

@MoebiusX

Copy link
Copy Markdown
Owner

What

A design proposal, docs/PACK_OPERATIONS.md. Nothing is built; no code changes.

Why

The maintainer's 2026-10-19 question: why can I only export dashboards from the Build pack? why not from Diagnose? some functions should always be available. The audit behind the doc found the pattern: a verb implemented as a stage of the journey that first needed it stayed welded to that journey's screen — per-artefact export of compiled files exists only for a Build draft (studio/app.mjs:4484), so a registered pack of any origin has no way to yield a single compiled dashboard anywhere in the studio.

The proposal

  • The rule: journeys order verbs, they never gate them; one verb, one canonical flow; an unavailable verb is drawn disabled with its reason, never hidden.
  • The precedent: deploy already obeys it — Diagnose summons the app-level deploy modal preselected (studio/compare-view.mjs:1561); the static bundle draws it unavailable with the reason.
  • The inventory of all seven verbs on today's code, with file:line references (verified against develop).
  • Three view-layer slices (single-artefact export from the drawer + export the missing set in Diagnose; a summonable compile preview; one reason grammar), engines and endpoints untouched.
  • Three owner decisions, each with a recommendation.

It extends UX_SCREEN_GRAMMAR.md's "pack operations" section and frames UPDATE_JOURNEY.md's update button as the first verb designed under the rule.

Reviewer notes

  • Doc-only: npm run lint/npm test untouched surface; tools/test-doc-test-totals.mjs passes (the new doc carries no Tests: chains).
  • Base is develop per the branch contract in AGENTS.md.

🤖 Generated with Claude Code

Design proposal answering the maintainer's 2026-10-19 question (why can
dashboards only be exported from a Build pack, not from Diagnose). It
generalises the deploy modal's existing behaviour into a rule: journeys
order verbs, never gate them; one verb, one canonical flow; an
unavailable verb says why. Includes the verb inventory on today's code,
three view-layer slices, and three owner decisions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MoebiusX
MoebiusX merged commit febe7a8 into develop Oct 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant