Repository navigation
spec: publication-layer cleanup — semantic_base model, audit path, reset auth - #41
Merged
Merged
Conversation
…set auth Publication and consistency fixes across the spec family. No wire-contract changes (one documentation tightening on reset.tenant_id matches behavior already mandated by the AdminKeyAuth-only security block). Index (cycles-spec-index.yaml): - Fix two YAML scanner errors in wrapped list items that broke parsing (action-kinds reset bullet; admin_merged enforcement bullet — both contained colons in the wrap). - Introduce explicit versioning model: `version` (editorial revision) vs `semantic_base` (frozen wire identity). Document the convention at the top of the file. - governance_base: version 0.1.25.9 -> 0.1.25.14 (matches info.version), semantic_base: 0.1.25.9 added. - action_kinds path count: 3 -> 4 (counter reset endpoint was missing). Governance base (cycles-governance-admin-v0.1.25.yaml): - Replace stale `cycles-openapi-full-merged.yaml` / `full_merged` recipe references with `merged/cycles-openapi-admin-merged.yaml` / `admin_merged`. - Rewrite v0.1.25.14 changelog audit-path typo: /v1/admin/audit-log -> /v1/admin/audit/logs (declared path was already correct; only the changelog prose was wrong). - AdminKeyAuth security scheme description: stop enumerating allowlisted paths in prose (had drifted as dual-auth surface expanded); point readers at per-operation `security:` blocks as the source of truth. - Reword summary/description to use "document revision 0.1.25.14; semantic base frozen at 0.1.25.9". Action-kinds (cycles-action-kinds-v0.1.26.yaml): - POST /v1/admin/action-quota-counters/reset: remove ApiKeyAuth / reserved-permission branch from description (operation security block was already AdminKeyAuth-only, and no `action_quotas:write` permission exists in v0.1.26). State plainly that it is AdminKeyAuth-only in v0.1.26 with a v0.1.27 future note. - ActionQuotaCounterResetRequest.tenant_id: tighten description from "Ignored when using ApiKeyAuth" to "REQUIRED" with explicit 400 INVALID_REQUEST + missing_required_field:tenant_id behavior. Documentation tightening only — the AdminKeyAuth-only security block already mandated this. - Top-level description: "Three endpoints" -> "Four endpoints" (registry list, registry get, counter list, counter reset). - Add v0.1.26 changelog "DOCUMENTATION TIGHTENING (no wire change)" entry covering both reset prose fixes. Governance extension (cycles-governance-extensions-v0.1.26.yaml): - Update base-spec references from `(v0.1.25.9)` to `(semantic_base 0.1.25.9)` in summary, EXTENSION CONTRACT, and BASE SPEC blocks to match the new versioning model. Validation: - All 6 spec YAML files parse cleanly with yaml.safe_load (utf-8). - No remaining occurrences of `cycles-openapi-full-merged` or stale `/v1/admin/audit-log` (without `/logs`). Implementation impact: - Server/admin compliance check warranted on one item only: reset endpoint must return 400 INVALID_REQUEST with missing_required_field:tenant_id when tenant_id is omitted, rather than a generic 400 or auth error. All other edits are publication layer or description prose with zero wire-contract change.
CI drift check (merge-check) failed on the prior commit because the prose edits to source specs were not accompanied by regenerated merged/ artifacts. Regenerated via `python scripts/merge_specs.py`. No source changes in this commit — only the mechanical merge output for `merged/cycles-openapi-admin-merged.yaml` and `merged/cycles-openapi-protocol-merged.yaml`.
amavashev
added a commit
that referenced
this pull request
Apr 14, 2026
README header listed 'Governance base: v0.1.25.8'. After PR #40 (Stage 3 webhooks dual-auth) the governance-admin spec is at editorial revision v0.1.25.14. The semantic_base is frozen at 0.1.25.9 per the PR #41 versioning model. Updated to 'v0.1.25.14 (semantic_base 0.1.25.9)' — surfaces both values so readers see the latest feature revision AND understand wire-compatibility is tied to the 0.1.25.9 baseline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Publication and consistency cleanup across the Cycles spec family. Addresses two passes of external review (publication layer drift, malformed YAML, version-model ambiguity, stale merge-recipe references, audit-path typo, reset-endpoint auth noise). Reviewer's final verdict: implementation-ready.
No wire-contract changes. One documentation tightening on
reset.tenant_idmatches behavior already mandated by the AdminKeyAuth-onlysecurity:block.Changes by file
cycles-spec-index.yamlversion(editorial revision) vssemantic_base(frozen wire identity) versioning model with a top-of-file convention block.governance_base:version: 0.1.25.14(matchesinfo.version),semantic_base: 0.1.25.9added.action_kindspath count:3→4(counter reset endpoint was missing).cycles-governance-admin-v0.1.25.yamlcycles-openapi-full-merged.yaml/full_mergedrecipe references withmerged/cycles-openapi-admin-merged.yaml/admin_merged./v1/admin/audit-log→/v1/admin/audit/logs(the declared path was already correct).security:blocks as the source of truth.cycles-action-kinds-v0.1.26.yamlPOST /v1/admin/action-quota-counters/reset: remove ApiKeyAuth / reservedaction_quotas:writepermission branch from description (operationsecurity:block was already AdminKeyAuth-only and no such permission exists in v0.1.26). State plainly: AdminKeyAuth-only in v0.1.26, with v0.1.27 future note.ActionQuotaCounterResetRequest.tenant_id: tighten description from "Ignored when using ApiKeyAuth" to "REQUIRED" with explicit400 INVALID_REQUEST+missing_required_field: tenant_idbehavior. Documentation tightening only.cycles-governance-extensions-v0.1.26.yaml(v0.1.25.9)to(semantic_base 0.1.25.9)in summary, EXTENSION CONTRACT, and BASE SPEC blocks to match the new versioning model.Implementation impact
paths_addedcount,semantic_basefield, recipe redirect, audit-path changelog typo, AdminKeyAuth description, version-label wording, "Three → Four endpoints"security:block was already AdminKeyAuth-onlytenant_iddocumentation tightening400 INVALID_REQUESTwithmissing_required_field: tenant_idrather than a generic 400 or auth errorTest plan
yaml.safe_load(utf-8)cycles-openapi-full-mergedreferences/v1/admin/audit-logreferences (without/logs)tenant_idtenant_idon reset relying on the old "Ignored when using ApiKeyAuth" proseFollow-ups (not in this PR)
cycles-spec-index.yaml, resolves every recipe to an existing output path, and assertspaths_addedcounts match the merged artifacts. Would prevent recurrence of items 1, 2, and 6 from the original review pass permanently. Will open as a separate PR per planning agreement.