Repository navigation
docs(spec): require discoverable, scoped CLI controls - #6491
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
f01f3ef to
996503c
Compare
5e6ab3b to
448330c
Compare
996503c to
561be4e
Compare
561be4e to
421813a
Compare
There was a problem hiding this comment.
Approval is waiting on a maintainer decision for the new spec claims in this PR.
This change adds FR14 to FR18 and DEC-5 to DEC-7 to AST-017: supported CLI behavior must be discoverable, Astryx-owned environment variables are prohibited, global controls must prove meaningful behavior for every command, cross-cutting guarantees must close their boundary, suppressed work must be observable, and programmatic controls must be explicit per call. The PR itself notes no current claim covers this, and the base spec confirms that gap, so a maintainer approval owner needs to adopt this exact scope as the governing spec — including the ban on environment variables for any purpose and for private hooks — identify a different governing spec, or say what must change.
No other required fix was found: the change is spec-only, stays within AST-017, and the knowledge, formatting, and diff checks pass. Once the maintainer settles the spec authority, the remaining review is clear.
[Automated review]
Exact decision needed
How must supported CLI behavior be exposed and scoped, and when is a behavior-changing global control justified?
Existing authority searched
AST-017 already owns CLI compatibility and complete response projections. No current claim requires supported behavior to be discoverable or sets an evidence bar for global controls.
Decision
Supported CLI behavior is public whether it is automatic or caller-controlled. Commands and options appear in generated help and the machine-readable manifest. Automatic behavior and other controls appear there or link directly to consumer documentation.
Astryx does not use environment variables as interfaces, including aliases for documented controls. An environment variable is Astryx-owned when Astryx defines its semantics, regardless of its name or prefix. Automation uses the documented programmatic API.
Invocation-scoped behavior belongs on the nearest command, command group, or API that owns it. A behavior-changing control may be global only when one stable invariant has meaningful, non-no-op behavior for every command, a demonstrated supported-consumer need cannot be met with narrower scope, and a manifest-derived command matrix verifies every command.
Cross-cutting guarantees define an exhaustive trust or side-effect boundary and fail closed for new extension points. Work suppressed by a safety or reduced-capability mode is visible in machine and text results, or the operation returns a stable error and nonzero exit before writes. Programmatic controls are explicit per-call inputs. Equivalent CLI and API controls have the same values, defaults, behavior, and errors.
Rejected alternatives
safe,secure,trusted, orisolatedinstead of naming the exact capability.Claim scope and non-goals
This adds linked public-control quality claims to AST-017. It does not choose migrations for existing environment controls, authorize a specific global interface, change CLI runtime behavior, or require a Changeset.
Evidence and implementation relationship
The generated command manifest provides the exhaustive command set needed to verify a proposed global control. This specification sets the policy and evidence requirement without approving or prescribing an implementation.
Scope
Validation
pnpm check:knowledgepnpm check:repopnpm -F @astryxdesign/cli exec tsc --project tsconfig.api-dts.jsonpnpm lint:strictpnpm exec vitest run packages/cligit diff --check