@firstdraft.com/cli 0.2.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,9 +4,13 @@ firstdraft is the command-line client shared by First Draft agents and automatio
4
4
  files, calls the versioned Service API, exposes reviewed analysis and GapSets, materializes verified Compilations,
5
5
  and coordinates private GitHub publication.
6
6
 
7
- Trying First Draft as a tester? Start with the
8
- [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft), which installs a
9
- compatible CLI and Skill together.
7
+ Start with the [local development guide](https://gist.github.com/raghubetina/3d424a97a1eaa6de8c406e67f32a237e):
8
+ install the CLI and Skill, then compile into your current folder with `firstdraft plan compile --output .`. No Drawing Board
9
+ clone or GitHub push is required. The [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft)
10
+ is the Codespaces fallback.
11
+
12
+ CLI 0.4 makes `--output .` the default. Keep the explicit flag with CLI 0.3, whose zero-flag command selects GitHub
13
+ publication.
10
14
 
11
15
  ## What this repository owns
12
16
 
@@ -17,7 +21,7 @@ compatible CLI and Skill together.
17
21
  - retained Compilation inspection and artifact download;
18
22
  - terminal output, exit status, and recovery contracts;
19
23
  - the dependency-free npm package; and
20
- - package provenance and release promotion.
24
+ - package provenance and publication.
21
25
 
22
26
  The Service owns Foundation Plan meaning and server-side lifecycle. Skills own the agent conversation. This
23
27
  repository owns the exact command and transport behavior between them.
@@ -29,7 +33,7 @@ repository owns the exact command and transport behavior between them.
29
33
  | Change the CLI | [Agent instructions](https://github.com/firstdraft/cli/blob/main/AGENTS.md), then [documentation map](docs/README.md) |
30
34
  | Find a command or output contract | [Command reference](docs/commands.md) |
31
35
  | Interpret an error or recover safely | [Errors and recovery](docs/errors.md) |
32
- | Prepare or promote a package | [Release runbook](RELEASING.md) |
36
+ | Prepare or publish a package | [Release runbook](RELEASING.md) |
33
37
  | Inspect dated package observations | [Release history](docs/release-history.md) |
34
38
  | Report a vulnerability | [Security policy](SECURITY.md) |
35
39
 
@@ -84,7 +88,7 @@ npm install --global @firstdraft.com/cli
84
88
  ```
85
89
 
86
90
  Pin an exact compatible version when a repeatable installation matters; [RELEASING.md](RELEASING.md) owns channel
87
- and promotion meaning.
91
+ and release meaning.
88
92
 
89
93
  The published package:
90
94
 
@@ -101,6 +105,5 @@ including the release runbook and dated release history, ships with the package.
101
105
 
102
106
  ## Release boundary
103
107
 
104
- Merging source is not package publication. Publishing a candidate, moving npm dist-tags, coordinating the Skills
105
- package, and promoting a stable release are distinct steps in [RELEASING.md](RELEASING.md). Verify the exact packed
106
- digest and Service compatibility before any promotion.
108
+ Merging source is not package publication. An approved coordinated release publishes directly to `latest`, reusing
109
+ successful CI for the exact source. [RELEASING.md](RELEASING.md) owns the short release and recovery procedure.
package/RELEASING.md CHANGED
@@ -1,210 +1,107 @@
1
1
  # Releasing First Draft CLI
2
2
 
3
- This document owns living release policy and the operator runbook. Dated tag, package, qualification, and dist-tag
4
- observations belong in [release history](docs/release-history.md) and must be rechecked before an operation.
5
-
6
- Publishing is a separate, explicit action after a release-preparation pull request has merged. npm registry bytes
7
- and package versions cannot be replaced, so do not create or push a release tag as a dry run.
8
-
9
- Only a version that npm reports as published or a protected release tag that exists is immutable. Before either
10
- exists, an unpublished candidate may be revised without changing its proposed version; its exact source SHA and
11
- reviewed digests identify it. Reconcile the registry and remote tags before deciding that a version was consumed.
12
-
13
- ## Pre-1.0 version and channel policy
14
-
15
- Before `1.0.0`, First Draft CLI uses ordinary `0.MINOR.PATCH` versions. Increase `MINOR` for a breaking
16
- compatibility-line change. Increase `PATCH` for a change that is otherwise backward-compatible within the current
17
- minor line. Never reuse a published version to preserve compatibility; publish the next version required by this
18
- policy. Do not add aliases or shims solely to make a breaking compatibility line look patch-compatible. The policy
19
- applies to ordinary versions; historical prereleases do not establish an ordinary compatibility line.
20
-
21
- Version semantics and npm distribution channels are independent. An approved candidate is published first under
22
- the approval-gated `next` tag even when it has an ordinary version such as `0.1.0`. The release workflow does not
23
- move `latest`. Moving `latest` requires a later, separate approval after the exact `next` candidate has completed
24
- its explicitly named release-specific qualification. Candidate publication is not stable release completion. A
25
- stable CLI release is complete only when that separately approved candidate is selected by npm's `latest` dist-tag.
26
- Release-specific qualification means the exact gate named for that candidate; it does not imply unrelated or full
27
- service qualification. Until promotion, `latest` remains the supported stable release; a distinct `next` candidate
28
- is supported only for its named qualification. When both tags identify one version, that version fills both roles.
29
-
30
- ## Coordinated candidate eligibility
31
-
32
- `release/compatibility.json` declares this package's SemVer version, the First Draft API-contract range it accepts,
33
- and the exact Foundation Plan formats it accepts. It is source-only release metadata and is intentionally absent from
34
- the npm tarball. The normal test suite validates the manifest's shape, keeps its version equal to `package.json`, and
35
- binds its Foundation Plan format to the implemented CLI constant.
36
-
37
- The `script/release_compatibility_check` evaluator in `firstdraft/firstdraft` reads this declaration with the matching
38
- declarations from exact, clean checkouts of `firstdraft/firstdraft` and `firstdraft/skills`. It implements SemVer 2.0
39
- precedence. CLI `0.2.x` requires the service's `0.3.x` API contract because Analysis now returns the complete reviewed
40
- GapSet and digest. The released CLI `0.1.0` accepts only API `0.2.x`, uses a generic 2 MiB response bound for Analysis,
41
- and cannot safely consume every schema-valid API `0.3.x` result. CLI `0.2.x` retains that generic bound but gives
42
- Analysis and Compilation artifacts dedicated 128 MiB bounds. Comparator arrays form one conjunction, while
43
- `foundation_plan_formats` lists alternatives. A prerelease satisfies a comparator set only when a comparator
44
- explicitly names a prerelease with the same major, minor, and patch numbers. Skills names the candidate CLI version
45
- explicitly, so a stale comparator makes the three-repository candidate ineligible.
46
- `firstdraft.release-compatibility/1` is intentionally closed. The evaluator in `firstdraft/firstdraft` rejects an
47
- unrecognized format and unknown keys, so adding a key requires a coordinated compatibility-format bump rather than
48
- silently changing version 1.
49
-
50
- A compatible result establishes candidate eligibility, not authorization or runtime proof. Exact Git SHAs identify
51
- the three-repository candidate. A merge to `main` is integration only: report the merged SHA and ask the user whether
52
- to coordinate the three repositories and promote that candidate. If promotion is declined, record the SHA as
53
- unpromoted.
54
-
55
- Promotion is manual and approval-gated. One operator serializes mutations: qualify the exact candidate on staging,
56
- obtain human approval, and only then promote the approved service revision to production or authorize the
57
- corresponding npm and plugin releases. Do not publish npm, deploy either environment, or release the plugin merely
58
- because the compatibility check passes.
59
-
60
- ## Repository and registry controls
61
-
62
- Before a release, a repository administrator must confirm:
63
-
64
- 1. Confirm `firstdraft/cli` is public. The release workflow deliberately removes checkout credentials and re-fetches
65
- the public release refs anonymously.
66
- 2. Confirm `main` has pull-request and CI requirements and a `v*` tag ruleset restricts tag creation, update, and
67
- deletion.
68
- 3. Confirm the GitHub environment named `npm` is restricted to release tags, requires an explicit reviewer, disables
69
- administrator bypass, and defines `NPM_RELEASE_ENABLED=true`. The workflow fails before publishing when this
70
- variable is absent.
71
- 4. Confirm that the `firstdraft.com` npm organization and `@firstdraft.com/cli` package still identify the intended
72
- publisher and repository. The publisher account must have write-protecting 2FA enabled. Verify authenticated
73
- identity, organization membership, package identity, and current tags:
74
-
75
- ```sh
76
- npm whoami
77
- npm org ls firstdraft.com --json
78
- npm view '@firstdraft.com/cli' name repository.url versions dist-tags --json
79
- ```
80
-
81
- 5. Before creating a `v<package-version>` tag, verify [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/)
82
- for the exact package, repository, workflow, protected environment, and allowed publish operation. No persistent
83
- npm credential is permitted for a release workflow.
84
-
85
- Use the repository-pinned Node.js 24.18.0 toolchain with npm 11.16.0 to verify the organization's durable read/write
86
- access:
87
-
88
- ```sh
89
- npm --version
90
- npm access list packages firstdraft.com:developers '@firstdraft.com/cli' --json
91
- ```
92
-
93
- Require the package to report `read-write` access for the `developers` team. If access is missing or changed, stop:
94
- restoring it is a separate administrator and security mutation, not a routine release step.
95
-
96
- For every release, inspect the existing trusted-publisher relationship read-only:
97
-
98
- ```sh
99
- npm trust list '@firstdraft.com/cli'
100
- ```
101
-
102
- Confirm `npm trust list` reports type `github`, repository `firstdraft/cli`, file `publish.yml`, environment `npm`,
103
- and permission `createPackage`, which is npm's trust-list vocabulary for the allowed publish operation. npm does not
104
- validate the saved relationship by attempting an exchange, so each case-sensitive value must be inspected. If the
105
- relationship is missing or changed, stop: restoring it is a separate administrator and security mutation, not a
106
- routine release step. The publish job must remain on a GitHub-hosted runner with `id-token: write` and must not read
107
- `NODE_AUTH_TOKEN`, an npm token, or any GitHub Actions secret. Confirm the repository and `npm` environment secret
108
- lists contain no npm automation secret. Trusted publishing's short-lived OIDC exchange is the sole workflow
109
- publication credential; an authentication failure stops the release and must never fall back to a persistent token.
110
-
111
- As optional defense-in-depth after trusted publication is operationally proven, an npm administrator may complete
112
- the separate security-key ceremony and set package **Publishing access** to **Require two-factor authentication and
113
- disallow tokens**. Do not report that setting as enabled until it is directly observed.
114
-
115
- ## Prepare a release
116
-
117
- 1. Update `package.json`, `package-lock.json`, and `release/compatibility.json` to the exact release version.
118
- 2. When that version changes, coordinate the matching explicit CLI comparator in `firstdraft/skills` before
119
- qualification; a stale comparator intentionally makes the three-repository candidate ineligible.
120
- 3. Apply the pre-1.0 policy: use a minor increment for a breaking compatibility line and a patch increment for a
121
- change that is otherwise backward-compatible. Keep the initial distribution under `next` independently of that
122
- version choice. Do not move `latest` during release publication.
123
- 4. Confirm neither the exact package version nor its `v<package-version>` tag already exists. If both remain absent,
124
- the unpublished candidate may retain its proposed version while its exact SHA and digests are revised.
125
- 5. Re-run `npm trust list '@firstdraft.com/cli'`, verify the exact `github`/repository/file/environment/`createPackage`
126
- relationship described above, and confirm the workflow contains no persistent npm credential or GitHub Actions
127
- secret.
128
- 6. Update user-facing documentation and release notes for behavior changes.
129
- 7. Run:
130
-
131
- ```sh
132
- npm ci --ignore-scripts
133
- npm audit
134
- npm run check
135
- ```
136
-
137
- 8. Merge the reviewed pull request only after local and hosted checks pass.
138
-
139
- ## Publish
140
-
141
- The manual boundary is creation of the version tag. From an up-to-date, clean `main`, verify the intended commit and
142
- confirm that both the intended package version and `v<package-version>` tag are absent. If either identity is already
143
- consumed, prepare the next version required by the pre-1.0 policy rather than moving or reusing it. Otherwise create
144
- and push the tag. Push one release tag at a time; the workflow serializes publication, but GitHub retains at most one
145
- pending run in a concurrency group.
146
-
147
- The workflow rejects accidental or stale inputs unless they use a protected `v*` tag in `firstdraft/cli`, the tag
148
- equals `v` plus the version in `package.json`, the remote tag still identifies the triggering commit, and that commit
149
- appears in the first-parent history of `origin/main`. First-parent membership allows an older reviewed `main` state
150
- after another change lands while rejecting intermediate commits from a merged side branch. The workflow reruns the
151
- complete check, waits for approval in the `npm` environment, reverifies the remote refs, and publishes to the public
152
- registry with provenance under `next`. It authenticates only through the exact npm trusted-publisher relationship and
153
- the job's short-lived GitHub OIDC token; it reads no persistent npm credential or GitHub Actions secret.
154
-
155
- The tag ruleset and `npm` environment approval are the external trust boundary because a tag-push run loads its
156
- workflow from the tagged commit. Before approving the `npm` deployment, the reviewer must confirm:
157
-
158
- - The tag, package version, and commit SHA are the intended release.
159
- - The commit is a known reviewed state in protected `main` history and its required checks passed.
160
- - `.github/workflows/publish.yml` at that commit is the reviewed workflow, still selects the `npm` environment, and
161
- publishes the public `@firstdraft.com/cli` package only under `next` with provenance.
162
- - npm lists the exact `github`/`firstdraft/cli`/`publish.yml`/`npm`/`createPackage` trusted-publisher relationship,
163
- and the GitHub repository and `npm` environment contain no npm automation secret.
164
- - The unprivileged verification job passed for that exact commit.
165
-
166
- Do not move or reuse a release tag. If the tagged commit is not a first-parent state of `main`, merge the intended
167
- change and prepare a new version rather than moving an already shared tag.
3
+ An approved coordinated release publishes directly to npm's `latest` channel. Tests and review belong before merge;
4
+ publication reuses successful CI for the exact source. It does not repeat the suite or require a second
5
+ `next`-to-`latest` promotion. Dated observations remain in [release history](docs/release-history.md).
6
+
7
+ A merge alone does not authorize publication. Obtain one approval for the intended coordinated release, or use the
8
+ approval already given for that scope. The existing GitHub `npm` environment protection still applies; its approval
9
+ executes the same release decision. Do not ask for another conversational approval between already-approved steps.
10
+
11
+ ## Version and compatibility policy
12
+
13
+ Before `1.0.0`, use ordinary `0.MINOR.PATCH` versions: increase `MINOR` for a breaking compatibility-line change and
14
+ `PATCH` for a backward-compatible change within that line. Never reuse a published version or move a protected
15
+ release tag. An unpublished, untagged candidate can retain its proposed version while its source changes.
16
+ The published version may remain in source during documentation and test maintenance; recording its release history
17
+ does not require preparing another version. Choose an unused version when preparing the next publication.
18
+
19
+ CLI `0.4.x` makes `firstdraft plan compile` equivalent to `firstdraft plan compile --output .`; the former GitHub
20
+ default becomes explicit `--github`. This is a breaking CLI change from `0.3.x`, without a Service API change.
21
+ Both lines use API `0.4.x`, Plan `firstdraft.foundation-plan.sketch/0.20`, target `rails-sketch/2026-09`, and the
22
+ `.firstdraft/design` root archive. Existing applications and old Plans are not migrated.
23
+
24
+ `release/compatibility.json` declares the package version, accepted API-contract range, and accepted Plan formats.
25
+ It is source-only metadata, validated by the normal test suite and absent from the npm tarball. Coordinate the
26
+ explicit CLI comparator and bundled CLI pin in `firstdraft/skills` when this version changes. The service's
27
+ `script/release_compatibility_check` compares the three exact revisions; compatibility establishes eligibility,
28
+ not authorization or runtime proof. Its closed `firstdraft.release-compatibility/1` format rejects unknown keys.
29
+
30
+ ## Prepare before merge
31
+
32
+ 1. Update `package.json`, `package-lock.json`, and `release/compatibility.json`, and align the Skills CLI requirement.
33
+ 2. Update the command, error, and Skill guidance affected by the change. Preserve dated release evidence.
34
+ 3. Run focused checks while developing and the repository's required CI for the merge candidate. For a fresh
35
+ checkout, the complete local check is `npm ci --ignore-scripts`, `npm audit`, then `npm run check`.
36
+ 4. Review and merge the change. Wait for the existing `CI` workflow to pass for the selected `main` SHA; publication
37
+ uses that run instead of starting another one.
38
+
39
+ Use existing smoke evidence when it covers the changed behavior. If changed CLI/Service/Skill behavior warrants a
40
+ live smoke, use a simple Plan, compile locally with `firstdraft plan compile --output .`, and boot the generated app locally
41
+ when runtime behavior changed. A CLI dispatch-only change can be covered by local command and packed-package tests.
42
+ Do not require Codespaces, GitHub Publication, native builds, or Revyl for a routine release. Codespaces is a fallback
43
+ development environment. Additional integration checks belong only to changes affecting those integrations.
44
+
45
+ ## Publish the approved source
46
+
47
+ From a clean checkout of the selected `main` revision:
48
+
49
+ 1. Confirm the exact package version and `v<package-version>` tag are both unused. If either identity is already
50
+ consumed, prepare the next version required by the pre-1.0 policy rather than moving or reusing it.
51
+ 2. Confirm the intended three revisions are compatible and the coordinated release approval covers them.
52
+ 3. Create and push `v<package-version>` at that source revision. Push one release tag at a time; the workflow
53
+ serializes publication and GitHub retains at most one pending run in a concurrency group.
54
+ 4. Approve the existing `npm` environment deployment for that tag. The workflow publishes with provenance under
55
+ `latest`; no separate dist-tag mutation is needed.
56
+
57
+ The workflow requires a protected `v*` tag in `firstdraft/cli`, the matching `package.json` version, an unchanged
58
+ remote tag, and a commit in the first-parent history of protected `main`. It finds a successful `CI` push run for
59
+ that exact SHA using `gh run list`, checks the package file allowlist, then rechecks mutable refs after environment
60
+ approval. It does not install development dependencies, rerun tests or audit, or request interactive npm login.
61
+ Both source checks invoke `scripts/check-release-source.sh`; the postapproval invocation must remain before publish.
62
+
63
+ If CI is still running, let that run finish and rerun the failed publication verification job. Resolve failing
64
+ checks in CI itself; publication does not start a duplicate suite. A source fix after tagging requires a new version.
65
+ Do not retest unrelated surfaces merely because time has passed since merge.
168
66
 
169
67
  ## Verify and recover
170
68
 
171
- After publication, inspect the registry before retrying any reported failure; the package may already exist. From
172
- the tagged checkout, verify the exact version, `next` dist-tag, unchanged `latest` dist-tag, integrity metadata, and
173
- provenance metadata:
69
+ After publication, inspect the registry before retrying a failed workflow; the immutable version may already exist:
174
70
 
175
71
  ```sh
176
72
  FD_CLI_RELEASE_VERSION="$(node -p "require('./package.json').version")"
177
73
  npm view "@firstdraft.com/cli@$FD_CLI_RELEASE_VERSION" \
178
- version dist.integrity dist.shasum repository.url engines bin --json
74
+ version dist.integrity dist.shasum dist.attestations repository.url engines bin --json
179
75
  npm dist-tag ls '@firstdraft.com/cli'
180
76
  ```
181
77
 
182
- Install that exact version into a fresh temporary prefix, confirm `firstdraft --version`, compare the
183
- packed file list with the release workflow, and run `npm audit signatures` after an exact installation.
78
+ Confirm the intended version is `latest` and has integrity/provenance metadata. Install that exact version in a
79
+ temporary prefix, confirm `firstdraft --version`, and run `npm audit signatures` there to verify the published
80
+ artifact. This checks distribution; it does not repeat application qualification. Record the version, source,
81
+ package integrity, and any relevant smoke evidence in the dated release record.
184
82
 
185
- If OIDC authentication fails, reconcile both the registry version and protected remote tag first. If only npm's
186
- listed relationship is wrong, correct it on npm and rerun the existing workflow's failed jobs without changing the
187
- tagged source. If the workflow filename, environment, permissions, or other identity at the tagged commit is wrong,
188
- the protected tag is immutable: prepare the next version rather than moving the tag. Never add a token fallback.
83
+ If OIDC authentication fails, reconcile the registry version and protected tag before retrying. Correct a broken
84
+ trusted-publisher relationship when necessary, then rerun failed jobs at the existing tag. If the tagged workflow
85
+ identity itself is wrong, prepare a new version; never move the tag or add a persistent-token fallback.
189
86
 
190
- A published version cannot be overwritten or reused. For a bad release, move `next` only to a known-good compatible
191
- version if one exists; otherwise deprecate the bad version and publish a corrected higher version. Treat
192
- unpublishing as an exceptional incident response, not a routine rollback.
87
+ For a bad release, move `latest` to a known-good compatible version as an incident rollback, or deprecate the bad
88
+ version and publish a corrected higher version. Unpublishing is exceptional incident response, not routine rollback.
193
89
 
194
- ## Promote the release-specific qualified candidate
90
+ ## Publisher configuration
195
91
 
196
- Publishing under `next` is not promotion to the default install channel. After the exact `next` version completes
197
- its named release-specific qualification and a human separately approves promotion, one operator may move `latest`
198
- to that exact version from the tagged checkout:
92
+ These are durable repository and npm controls, not a per-release account audit. Verify them when provisioning,
93
+ changing publisher configuration, or diagnosing an actual failure:
199
94
 
200
- ```sh
201
- FD_CLI_RELEASE_VERSION="$(node -p "require('./package.json').version")"
202
- npm dist-tag add "@firstdraft.com/cli@$FD_CLI_RELEASE_VERSION" latest
203
- npm dist-tag ls '@firstdraft.com/cli'
204
- ```
95
+ - `firstdraft/cli` is public; `main` requires pull requests and CI, and a `v*` ruleset restricts tag mutation.
96
+ - The `npm` GitHub environment is limited to release tags, requires its existing reviewer, disables administrator
97
+ bypass, and defines `NPM_RELEASE_ENABLED=true`.
98
+ - npm trusted publishing identifies package `@firstdraft.com/cli`, repository `firstdraft/cli`, workflow
99
+ `publish.yml`, environment `npm`, and permission `createPackage`. The publishing account retains the intended
100
+ organization access and write-protecting 2FA. Configure these with an administrator only when needed.
101
+ - Publication runs on a GitHub-hosted runner with `id-token: write`, pinned Node.js 24.18.0 and npm 11.16.0. npm's
102
+ short-lived OIDC exchange is the only publication credential; no persistent npm token or Actions secret is used.
103
+ The CI lookup uses GitHub's read-only workflow token.
205
104
 
206
- Verify both tags after the mutation, then append the exact dated observation and qualification boundary to
207
- [release history](docs/release-history.md). The stable CLI release is complete only after `next` and `latest` both
208
- name the exact release-specific qualified version. Do not call a candidate fully promoted before that equality is
209
- observed. Do not move `latest` merely because a release merged, published successfully, or passed candidate
210
- compatibility checks, and do not use a dist-tag change to repair or disguise a bad immutable version.
105
+ Ordinary installation and use require no npm login. Ordinary trusted publication requires no local maintainer
106
+ login or per-release security-key ceremony. Request npm interaction only when npm requires it for a governance
107
+ change or an actual authentication failure. See [npm trusted publishing](https://docs.npmjs.com/trusted-publishers/).
package/SECURITY.md CHANGED
@@ -6,10 +6,8 @@ sensitive details in a public Issue.
6
6
 
7
7
  ## Supported versions
8
8
 
9
- During coordinated trials, the stable release currently identified by npm's `latest` tag receives security fixes. A
10
- different version under the approval-gated `next` tag is supported only for its explicitly named release-specific
11
- qualification; it does not displace the stable release before separate promotion approval. When `next` and `latest`
12
- identify the same version, that release fills both roles.
9
+ The release currently identified by npm's `latest` tag receives security fixes. Approved releases publish directly
10
+ to `latest`; historical `next` tags do not establish a separate supported channel.
13
11
 
14
12
  Distribution channels are independent of version syntax. Before `1.0.0`, increasing the minor version starts a
15
13
  breaking compatibility line; increasing the patch version is otherwise backward-compatible within that line. All
package/docs/README.md CHANGED
@@ -3,15 +3,16 @@
3
3
  Use this page to find the narrowest authoritative document for a task. Runtime source and tests remain the final
4
4
  evidence for implemented behavior; if they contradict a document, surface the contradiction instead of guessing.
5
5
 
6
- | If the task concerns... | Read first |
7
- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
8
- | Beginner tester journey | [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft) |
9
- | Direct CLI installation, repository orientation, or package contract | [Root README](../README.md) |
10
- | Commands, options, environment variables, API behavior, output, or materialization | [Command reference](commands.md) |
11
- | Stable errors, exit codes, retry safety, ambiguous outcomes, or local recovery | [Errors and recovery](errors.md) |
12
- | Version policy, release preparation, publication, verification, rollback, or promotion | [Release policy and runbook](../RELEASING.md) |
13
- | What was observed for an earlier tag, package, or dist-tag | [Release history](release-history.md) |
14
- | Vulnerability reporting | [Security policy](../SECURITY.md) |
6
+ | Task | Read first |
7
+ | -------------------------------- | ------------------------------------------------------------------------------------------------ |
8
+ | Local app development | [Local guide](https://gist.github.com/raghubetina/3d424a97a1eaa6de8c406e67f32a237e) |
9
+ | Codespaces fallback | [Drawing Board guide](https://github.com/firstdraft/drawing-board#build-an-app-with-first-draft) |
10
+ | Installation or package contract | [Root README](../README.md) |
11
+ | Commands, API, or output | [Command reference](commands.md) |
12
+ | Errors and recovery | [Errors and recovery](errors.md) |
13
+ | Versioning and publication | [Release policy and runbook](../RELEASING.md) |
14
+ | Dated release observations | [Release history](release-history.md) |
15
+ | Vulnerability reporting | [Security policy](../SECURITY.md) |
15
16
 
16
17
  ## Authority boundaries
17
18
 
@@ -21,7 +22,7 @@ evidence for implemented behavior; if they contradict a document, surface the co
21
22
  - [errors.md](errors.md) owns handled-error interpretation and recovery guidance.
22
23
  - [RELEASING.md](../RELEASING.md) owns living release policy and the operator runbook.
23
24
  - [release-history.md](release-history.md) preserves dated release observations. Recheck live tags, package versions,
24
- dist-tags, access, and trusted-publisher state before relying on them operationally.
25
+ and dist-tags before relying on them operationally; publisher configuration is checked when it changes or fails.
25
26
  - The source repository's `AGENTS.md` routes agent work; it should stay compact rather than duplicate these documents.
26
27
 
27
28
  ## Retrieval quality
@@ -51,6 +52,12 @@ smoke test. To inspect the package manifest without writing a tarball:
51
52
  npm pack --dry-run --json --ignore-scripts
52
53
  ```
53
54
 
55
+ Pass Node test options through `npm test` to focus a run while retaining discovery under `test/`:
56
+
57
+ ```sh
58
+ npm test -- --test-name-pattern="publication"
59
+ ```
60
+
54
61
  To reproduce the length-delimited SHA-256 used by external evidence to identify packaged JavaScript runtime inputs
55
62
  (`package.json`, `bin/firstdraft.js`, and every `.js` file under `src/`), run:
56
63