Enforce cross-domain naming charter with silent legacy aliases
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.
This commit is contained in:
1 parent
5d703cec38
commit
245ec33d1a
21 files changed
+298
-110
No files matched your search
@@ -156,7 +156,7 @@ describe("simulation local search", () => {
|
||||
});
|
||||
|
||||
describe("simulation command confirmation gates", () => {
|
||||
test("simulation clean refuses without --yes and never reaches the API", async () => {
|
||||
test("simulation clean (legacy alias) refuses without --yes and never reaches the API", async () => {
|
||||
setupMockEnv();
|
||||
const mutations = trackMutationRequests();
|
||||
|
||||
@@ -165,7 +165,7 @@ describe("simulation command confirmation gates", () => {
|
||||
expect(result.isError).toBe(true);
|
||||
expect(result.exitCode).toBe(10);
|
||||
expect(result.stderr).toContain("Refusing to delete simulation batch 'batch-123' without --yes.");
|
||||
expect(result.stderr).toContain("seal-use simulation clean batch-123");
|
||||
expect(result.stderr).toContain("seal-use simulation delete batch-123");
|
||||
expect(mutations).toEqual([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user