Repository navigation
release: traigent-schema 8.0.0 - #766
Conversation
… schema is narrowing (#638) * breaking_schema_check: a response wrapped in allOf that keeps the old schema is narrowing When a response schema S becomes allOf[...] with S verbatim (same resolved $ref target or identical subschema) as a member, report INFO instead of the root-level BREAKING findings. allOf without S, extra constraint keywords beside allOf, and request/conservative roles are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: restrict the allOf-narrowing shortcut to monotone positions, compare fully dereferenced typed content - never fires beneath oneOf/anyOf/allOf branches (monotone flag threaded through recurse) - member and old schema compared with every nested $ref resolved in their own registry; cycle/unresolvable means no shortcut - typed canonical JSON equality (1 != true) - sibling-constraint tests assert the actual findings and exit status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: resolve $ref only in schema positions when comparing allOf members enum, const, default, examples and unknown keywords are opaque literals compared as typed bytes; a $ref-shaped object inside an enum is no longer resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: fail closed on base-changing keywords in the allOf-narrowing shortcut No shortcut when a visited schema node carries id, $anchor, $dynamicRef/Anchor or $recursiveRef/Anchor, or a $id that is not the root of its file / does not equal the registry key used to reach it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: inspect $ref nodes raw; refuse non-annotation siblings deref() drops a $ref object's siblings, so the allOf-shortcut walker now follows the $ref chain one hop at a time and refuses any $ref node with a sibling other than description/title/$comment/examples/example, and runs the base-changing keyword guard on the raw node. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: document-level fail-closed scan before following a $ref A JSON Pointer can cross an ancestor carrying $id without the walker visiting it. Scan the whole target document (cached per registry and uri): any non-root $id/id or any $anchor/$dynamic*/$recursive* means no allOf-narrowing shortcut. Property names and literal values are not schema positions and are skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * tests: make the container/$id pointer-crossing regression discriminating The inner relative $ref only widens when resolved against the container's $id; verified the test fails with the document-level scan disabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: closed keyword classification for the allOf-narrowing walker Every keyword of a visited schema node must be schema-valued (resolve and recurse, now including prefixItems/unevaluated*) or literal (typed bytes, x-* vendor keys included); any other keyword means no shortcut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: discriminator is not a literal keyword OpenAPI discriminator.mapping can point at schemas; it now falls into 'unknown keyword', so no allOf-narrowing shortcut. Audit: no other LITERAL keyword carries a schema or $ref. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * breaking_schema_check: fold each visited document's $schema into the compared bytes A dialect switch in a referenced document changes keyword semantics invisibly; old and new bytes now differ, so no allOf-narrowing shortcut. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…pt list sort (#720) * feat(contract): list query params for measures has_evaluator and prompts sort Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(contract): serve the prompts list params from the backend contract; per_page default; drop bare 422s Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(contract): narrow to list GETs in a backend-indexed module Move the prompt list GETs into a new list-only module indexed by the backend contract root; revert the whole-module index and leave prompts_endpoints.json as on develop. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(reports): regenerate schema reachability report for the new prompt list module Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): ComplianceEvidenceResponse contract (AGB-74 slice 1)
Closed, read-only evidence-coverage view of one Agent: catalogue identity,
pack summaries with plain per-state counts, ingredient rows with states,
optional measurements and requirement links, and a constant banner enum.
Shape only; no regulation text. Parity manifest regenerated.
Spine-Trail: st_2004ade1c8c4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(agent_readiness): drop agent_id echo, align draft-pack wording (AGB-74 slice 1 review)
The response no longer echoes the caller-chosen agent id (privacy and
wording gate). Contract text now says draft packs are hidden in production
while published packs remain visible. Parity manifest re-stamped.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): compliance attester grants and attestations contracts (AGB-74 slice 2)
Closed contracts for per-statement attester grants (create, withdraw, list), authenticated
attestations (sign, revoke, list per Agent) and a can-sign capabilities read of closed booleans.
Signer, time, tenant and project are never accepted from the client; the only free text is the
optional note, marked customer content and absent from the evidence summary. Currency reasons are a
closed enum recomputed on read. The evidence response gains an optional attestation summary on an
ingredient row and the ATTESTATION_RECORDS_V1 producer ref (additive). Parity manifest regenerated.
Spine-Trail: st_2004ade1c8c4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* style(agent_readiness): ruff-clean the attestation contract test (AGB-74 slice 2)
Spine-Trail: st_2004ade1c8c4
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(agent_readiness): revoker basis, dependency_added and digest fingerprints (AGB-74 slice 2 review)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): can_manage_grants and can_revoke on the attestation contract (AGB-74 slice 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): compliance document-reference contracts (AGB-74 slice 3)
Closed contracts to record, withdraw and list customer-declared document references (a link plus
a declared SHA-256) about an Agent. hash_basis is always customer_declared and every reference is an
unverified_external_reference; there is no title, filename, note or supplier field. The URL is
customer content: it travels in bodies only and is returned only by the create response and the list
endpoint. The evidence response gains an optional document_reference summary (never the URL or the
digest) on a D ingredient row and the DOCUMENT_REFERENCES_V1 producer_ref. Parity manifest regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* fix(agent_readiness): server-derived fingerprints and empty withdrawal body (AGB-74 slice 2, sol)
FingerprintKind drops dataset (customer-declared, no server-side opaque id, never stored),
FingerprintBasis is backend_observed only, and the fingerprint value is a domain-separated sha256 of
server-generated ids. A grant withdrawal declares an empty-object body.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): compliance applicability screen contracts (AGB-74 slice 4)
Closed contracts for the applicability screen of one Agent: screening answers (null is not answered),
pure suggestions, human decisions per obligation as immutable snapshots with expected_current_id
compare-and-set (409 stale_revision), a read-time evaluation (effective_decision, invalidation) and
current plus paginated history. The evidence response gains an optional per-pack applicability
summary. Screening answers and the rationale are marked customer content. Parity regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): attestation_id and can_revoke on the evidence attestation summary (AGB-74 slice 2)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): compliance evidence export pack contracts (AGB-74 slice 5)
Closed manifest schema (integrity manifest of per-file SHA-256, not a signature; completeness,
limitations, pdf not_included, tvl_offline_bundle not_available) and an application/zip endpoint for
human project members: fixed filename, Cache-Control no-store, 413 over the size cap, 429 declared.
Pinned by tests/test_compliance_export_contract.py. Parity regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): applicability decisions carry their origin (AGB-74 slice 4, terra)
A submission item is a new decision or {obligation_id, carry: true}; every decision record names
decided_in_revision_id. facts_changed invalidation compares the facts of that revision with the
current one, so a decision made in a submission is never invalidated by its own facts. Parity
regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* docs(changelog): applicability decision origin (AGB-74 slice 4, terra)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(schema): UNTRACKABLE_DEPENDENCY attestation currency reason (AGB-74, interim)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): linked attestation statements, export subject identity, signer-erased and linked-reference currency (AGB-74)
Attestation create request gains document_ref_ids; records and summaries carry them (summary also self_grant). Two new closed 409 codes for linked references. CurrencyReason gains LINKED_REFERENCE_WITHDRAWN and SIGNER_ERASED. Export manifest gains a required subject and an optional change_history completeness section. Parity manifest regenerated.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(agent_readiness): closed statement_text_status marker; SIGNER_ERASED precedence (AGB-74 round 2)
Additive within the unreleased compliance attestation contract.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(agent_readiness): ExportedAttestationRecord refs StatementTextStatus with text/status conditional (AGB-74 round 2)
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
* feat(agent_readiness): export-specific 413 error schema; manifest agent_row_id uses OpaqueId (512) (AGB-74 round 3)
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
* chore(schema): refresh orphan reachability report for the AGB-74 contracts
All 11 new compliance schemas are reachable; unreachable count unchanged (51 of 572).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Add a top-level permissions block (contents: read) to ci.yml, publish.yml and spine-trail-gate.yml. Every job in these files already declares its own permissions block, which is unchanged. Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
…main (TRAIG-179) (#725) * feat(schema): fleet Observe v1 contracts, additive fleet_observe domain (TRAIG-179) Spine-Trail: st_761a2f949771 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(schema): register fleet_observe in lint roots, manifests, parity, changelog (TRAIG-179) Spine-Trail: st_761a2f949771 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(schema): reference fleet_observe documents by path so the orphan ratchet stays unchanged (TRAIG-179) Spine-Trail: st_761a2f949771 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * style(schema): wrap long docstring (TRAIG-179) Spine-Trail: st_761a2f949771 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(schema): fleet Observe review findings (TRAIG-179) Appended correction/invalidation on evidence records, measured coverage denominator >= 1 plus consumer-side count check, pinned source-map rows, bounded timestamp pattern, two-cluster minimum for cross-cluster findings, literal per-source test pins. Spine-Trail: st_761a2f949771 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
… prompt endpoints (#726) * feat(prompts)!: adopt the eleven project-scoped /api/v1 prompt operations (API refactor Phase 1) Replaces the retired planned /api/v1beta prompt_name routes with the prompt_ref-addressed operations, POST search and resolve, and cursor pagination. Breaking per semver (next release 8.0.0); no external clients. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(prompts)!: retire the v1beta prompt list endpoints Remove prompts/prompts_list_endpoints.json and its mep_endpoints.json index entry. The GET /api/v1beta/prompts and GET /api/v1beta/projects/{project_id}/prompts list routes are replaced by prompt_management.list_prompts and prompt_management.search_prompts in prompts/prompts_endpoints.json. sort_by and sort_order are intentionally dropped and not declared by either replacement. Acknowledged in scripts/breaking_schema_allowlist.json and CHANGELOG.md. Parity manifest restamped (schemaFileCount 571). The list-contract tests now pin the retirement and the new list/search contract. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(prompts): carry sort_by and sort_order on POST prompts/search Match the backend prompts contract (#6011): sort_by enum updated_at|name|version_count, sort_order asc|desc|null. Adds a contract test, widens the search-body property pin, refreshes the parity manifest and updates the allowlist note that called the sort gap open. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * retire GET /api/v1/audit/soc2/security-incidents alias (backend #6097) Remove the legacy SOC2-scoped alias from audit/audit_endpoints.json; the canonical GET /api/v1/audit/security/incidents stays. Acknowledged in scripts/breaking_schema_allowlist.json and CHANGELOG.md, parity manifest restamped, response schema description and its contract test updated. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(schema): refresh orphan reachability report Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…728) PackSummary in compliance_evidence_response_schema.json gains an optional closed object coverage_ingredient_ids with four required arrays (supported, gap, not_assessed, expired) of unique catalogue ingredient ids, so a client can drill from each coverage count to the exact ingredients counted. Omitted means drill-down is unavailable, not zero counts. PackSummary is closed, so strict readers built from the previous schema reject the new field: acknowledged in breaking_schema_allowlist.json with the rollout rule that readers upgrade before the Backend emits it. Tests cover legacy payloads, a count-consistent example, and shape-only rejections (missing array, unknown key, duplicates, over-cap, bad id). Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(schema): crew domain contract (CREW-11, slice 0) Adds traigent_schema/schemas/crew/: crew, crew_revision, crew_role, crew_role_binding, slice-1 request/response/error shapes and endpoint catalog (/api/v1/crews...), slice-3 crew_run / crew_member_execution / crew_handoff contracts (no API yet), README with content-vs-identifier privacy table, parity registry entry (planned in both SDKs), tests. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * feat(schema): crew contract rulings R1-R10 (project-scoped paths, rtk_ tokens, invariants, closed errors, handoff lifecycle) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(schema): crew contract terra review (closed 429, uuid run ids, request provenance, handoff entered/destination, digest vectors) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * crew README: key held only by an archived crew is reusable; crew_archived is for writes by id Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(schema): crew summary fields and memberships read model (CREW-15/17) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * feat(schema): crew memberships query by body, latest revision ids (CREW-15 fix round 2) GET /crews/memberships loses the agent_id query filter (agent ids are content and a query string is traced as http.target/http.url). POST /crews/memberships/query carries agent_ids in the body. crew_revision_id on memberships, latest_revision_id on crews. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * feat(schema): crew source (portal | sdk_declared) on entity and response (CREW-15) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * feat(schema): crew declarations from code, binding result and membership proposals (CREW-20) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(schema): crew proposals endpoints declare 400 on list and 409 on dismiss (CREW-20) listCrewProposals gains 400 (validation_error); dismissCrewProposal gains 409 (crew_archived, crew_binding_conflict); the top description now reads "viewers list; editors accept or dismiss". Parity manifest restamped. Spine-Session: cs_5a20dbe9dac573da Spine-Trail: st_ac0440940338 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(schema): regenerate schema reachability report Co-Authored-By: Claude Haiku <noreply@anthropic.com> * crew contract: neutral wording, RoleKey content labels, changelog entry Remove internal ticket, design-doc and source-path references from the public crew schemas, docs and tests; label the RoleKey definition as customer content; add the CHANGELOG entry; regenerate the parity manifest. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * crew contract: label CrewKey, constrain pinned_agent_revision, neutral wording, error_code doc fix - CrewKey definition carries x-content and user_content like RoleKey. - pinned_agent_revision is a server-registered revision identifier: pattern-constrained and x-identifier. - Remove remaining internal register and roadmap wording from crew files. - crew_endpoints.json names crew_validation_failed, the real error_code. - New tests pin content-annotation consistency, the pin constraint and that every error_code named in the endpoints exists in the error enum. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…ontracts (#729) * feat(contract): declare backend API revision Phase 2 error and list contracts Declare the closed 5xx body, the loc/type validation list, agent 409 and import 400 bodies, the write-scope 422, and the summary-only example-set list (examples dropped, oversized page size is a 400). Context: backend PRs #6114 and #6115. Spine-Trail: st_c20d898a509e Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(contract): agent conflict 409 declares ids only, never the submitted name or key Spine-Trail: st_c20d898a509e Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(contract): AGENT_ALREADY_EXISTS details carry closed placeholders, not the id The 409 details are replaced by the server's fixed placeholder text (or null), so the schema no longer promises an agent id; clients list agents to find the existing one. Spine-Trail: st_c20d898a509e Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * fix(contract): AGENT_ALREADY_EXISTS carries no id; details removed from the 409 schema The backend drops the id fields from this 409, so the schema declares no details and clients resolve the existing agent through the agents list or search. Spine-Trail: st_c20d898a509e Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * chore(contract): refresh the schema reachability report Regenerated with `python3 scripts/schema_reachability.py --update` so the checked-in report matches the computed one (fixes the "Schema reachability report freshness" CI check on PR #729). Spine-Trail: st_c20d898a509e Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…TRAIG-175) (#730) * feat(agents)!: project-scoped /api/v1 agents contract; remove fleet-posture definitions Declare the 18 agent operations at /api/v1/projects/{project_id}/agents[...] and GET /api/v1/agent-types per TraigentBackend #6193 (API revision Phase 3). Retire the /api/v1/agents/... declarations; admin/stats and the standalone model-parameters create stay. Remove the private fleet-posture endpoint and response schema (owner decision product-2026-11-16-api-p3-agents-identity = A). Spine-Trail: st_92de020dc91d Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * fix(agents): declare agents 2xx response shapes as the backend emits them GET agent is the success envelope {success,message,data:agent}; summaries is an envelope; import, update, archive, unarchive, check-deletion, experiments and delete are bare; delete adds the 204. Spine-Trail: st_92de020dc91d Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ite contracts (API revision Phase 3) (#731) * feat(agent-readiness)!: project-level readiness and production satellite contracts (API revision Phase 3) Declare the agent readiness module and the agent-keyed production satellites under /api/v1/projects/{project_id}: readiness list and search as POST /agent-readiness/search (former query in the body, x-replay read), per-agent routes under /agents/{agent_ref}/ (readiness, lifecycle-history, target-revisions, posture-revisions, compliance-evidence, next-step, production-status, production-breaches, production-reactive-policy), and operationIds equal to the backend operation ids. Adds the next-step and production-status response schemas and registers x-replay. Fleet posture stays out of the public schema. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(contracts): readiness next-step and production satellites declare 429; restore the 429 coverage ratchet Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * test(contracts): accept the canonical 429 envelope in the readiness inventory test; restamp parity manifest Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(reports): regenerate schema reachability (3 new reachable schemas) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…domain) (#732) * feat(contract): audit evaluate endpoint contract, new audit_evaluate domain Declare POST /api/v1/projects/{project_id}/audit/evaluate: closed request, success envelope, error and not-found problem schemas, every field carrying a content class. Vocabulary: new classes version (anchored dotted-digit pattern) and server_text (bounded, noted, server-composed), and one fixed opaque_ref pattern for the per-request problem id. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(contract): acknowledge the additive content-class enum change, scope two lifecycle-guard terms for audit evaluate Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(contract): audit evaluate review blockers (server_text allow-list, absolute-end patterns, exact lifecycle exemptions, pinned id lists) server_text is accepted only at one allow-listed response location and is no longer a map-key class; the audit collector_version and problem_id patterns end in an absolute-end assertion so a trailing newline is rejected. Allowlist reason and fingerprint updated with the repo tool output. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * chore(parity): restamp the parity manifest after the audit contract review fixes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * feat(contract): audit evaluate project_id is a fixed-pattern opaque ref; endpoints document joins the content-class lint Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * fix(contract): carry the usage context through every reference in the content-class lint server_text is accepted only when the walk reached it from a response body, never from a request body or a parameter, including through a reference to an enclosing object or array. Tests cover each reference shape. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * chore(contract): record the PR number on the audit evaluate allowlist acknowledgement Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * chore(reachability): regenerate the schema reachability report Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
… CodeQL analyses develop pushes (#733) Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
…ts on project-level paths (API revision Phase 3 slice 2 PR-2) (#734) Compliance applicability, attestation, document-reference and evidence-export operations move to /api/v1/projects/{project_id}[/agents/{agent_ref}]/...; the agent_id path parameter becomes agent_ref and operationIds equal the policy-register operation ids. Bodies and declared 4xx/429 responses are unchanged (identical to the backend fragments). The by-ref agent head read (getAgentHeadByRef) is removed: the backend never served it. best_configs.get_agent_head is declared at /api/v1/projects/{project_id}/agents/{agent_ref}/best-config-head with the response shape the backend handler returns (agent_head_response_schema.json, agent_head_error_schema.json). The Director session contract stays private. Spine-Trail: st_ef29be3fb93b Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ates the PR pipeline (#735) * ci: early required PR-metadata check (ticket, security note, spine) gates the PR pipeline Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci(pr-metadata): read the current PR body on rerun Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ect-level paths (API revision Phase 3 slice 2 PR-3) (#736) Decision ensure/latest/answer move to /api/v1/projects/{project_id}/agents/{agent_ref}/decisions/... with policy-register operationIds. The agent-lifecycle wire field agent_ref is renamed lifecycle_agent_ref and lifecycle paths read /api/v1/projects/{project_id}/agent-lifecycle/.... The platform-admin agents stats operation leaves the public schema. Package version unchanged until a release is cut. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… list run summary (#738) * feat(experiment-list): best_trial_id and best_metrics on ExperimentListRunSummary (additive) Adds two optional, nullable properties to ExperimentListRunSummary so list views can show the trial the server selected as best at finalize: - best_trial_id: string or null - best_metrics: object of numbers or null (same compaction as metrics) Neither is added to required. Parity manifest re-stamped; CHANGELOG Unreleased entry added. No version bump. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> * chore(breaking-check): acknowledge additive best_* members on the experiments-list run summary Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
…iness (API revision Phase 3) (#740) Agents list, search and nested experiments, and the agent-readiness portfolio, lifecycle-history and readiness-detail journey, page by limit/cursor (1-100, default 20; cursor maxLength 4096) and return pagination {limit, next_cursor, has_more}. page/per_page are retired; the list drops the style/tone query filters and gets a closed sort_by enum. Pending PR: not yet opened. Spine-Trail: st_3577ba8a54ef Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…opes, import bundle and request-digest vectors (#737) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…-bound (fleet observe increment 1, S2) (#741) Adds the user-requestable scope fleet_imports:write mapping to the single permission fleet_import.write. Unlike other *:write scopes it implies no read (no fleet_import.read token, no read alias); marked x-write-only and x-requires-project-binding. New x-* keys declared in the extensions meta-schema. Spine-Trail: st_b72f562d6561 Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…#743) * feat(schema): release acceptance, release and head rollback contracts Add closed request, receipt and refusal contracts for recording a person's acceptance of one candidate, releasing it, and rolling the agent head back, plus a head-history entry with actor and acceptance. The acceptance binds the candidate fingerprint, a required gate-result digest (a digest or the fixed value no_gate_run), the configuration-space digest, the agent code version and the expected head generation. Refusals use a closed code set and echo no request value. Register the four planned routes in the endpoint inventory, regenerate the content-class manifest and the parity manifest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(schema): release-acceptance routes take the plain agent id, not AgentRef The backend keeps the plain agent id on these routes, the same representation as the live-config head route. The path parameter and the receipt agent_id field use a new AgentId definition (base64url characters, at most 512) instead of AgentRef. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> * fix(schema): release-acceptance routes take the opaque AgentRef again Customer-chosen agent ids are content and receipts must not echo them. Reverts 238d888: the path parameter and the four receipt agent fields use label_common_schema AgentRef (opaque_ref). The test asserts that wiring directly. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> * feat(schema): ReleaseRequest carries the three acceptance bindings it is checked against Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> * fix(release-acceptance): AgentCodeVersion is a closed digest (git id, src:/tag: sha256) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> * fix(release-acceptance): AgentCodeVersion length 40-68 and an absolute end anchor Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> * chore(reports): regenerate schema reachability report Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> --------- Signed-off-by: Nimrod Busany <nimrodbusany@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ackend operation ids (#744) * feat(analytics): declare the 33 unchanged analytics operations with backend operation ids (C3-PR1c) Eleven project analytics reads and exports are declared on each of the three mounts the backend blueprint serves (analytics, legacy_analytics, project_analytics) at their existing method and path, with operationId equal to the backend register op_id. 200 responses are the success envelope, query validation is 422, project-entry denials are the closed problem+json 404, the fine-tuning manifest carries truncated and empty_reason, and the stale experiments_in_range and privacy-safe observability statements are removed. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(analytics): drop the project-entry problem 404 until the backend guards land (C3-PR1c review) The analytics mounts carry no project-entry guards today, so the closed application/problem+json 404 the declarations promised is never emitted. The 404 on all 33 analytics operations is now the ordinary application/json error envelope the backend does emit (PROJECT_NOT_FOUND from project-context resolution, NOT_FOUND from the handler not_found_response branches). Corrects the allowlist rationale, CHANGELOG and the contract tests, and clears the ruff errors in tests/test_c3_analytics_endpoint_contracts.py. Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * docs(analytics): attribute the project-not-found 404 envelope to the auth error helper (C3-PR1c review) The 404 PROJECT_NOT_FOUND body is rendered by unified_auth (ProjectContextError caught at src/security/unified_auth.py:2072-2073, rendered at :1980-1985) through error_response in src/utils/response_handler.py:332-378, not by the app error handler in src/app.py. Wording only: no schema structure, $ref or status code change. Co-Authored-By: Claude Haiku <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…ths (API revision 3.3 window 1b) (#742) * feat(experiments)!: experiment read contracts on project-level reference paths (API revision Phase 3 slice 3.3, window 1b) Experiment search (POST), detail, export, graphs and trend move to /api/v1/projects/{project_id}/experiments/..., addressed by the server-minted experiment_ref (exs_ plus 32 lowercase hex); the context resolver becomes POST /api/v1/experiment-context/resolve with body experiment_ref. Operation ids equal the backend op ids. Collections use the limit/cursor envelope (default 20, maximum 100); agent.get_agent_experiments returns closed reference-identified items. Canonical search items and the detail response require experiment_ref (ExperimentRead). Graphs list closed summaries (ids, hash, counts, timestamps; no topology). Retained legacy siblings are declared with their op ids and no numeric budgets; the private admin stats operation is not declared. Requests are closed, and errors are fixed closed bodies that never echo inputs. The numeric budgets on the new canonical operations (search, trend, export, graphs) are new bounds the backend window-1b cutover will enforce, not existing backend behaviour. Ticket: TRAIG-175 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(experiments): experiment_ref prefix experiment_ (D5) and drop retired has_hybrid_session from canonical read (D6) - ExperimentRef is ^experiment_[0-9a-f]{32}$ with exact length 43; exs_ collides with example sets, which already mint it. - Descriptions, fixtures, tests, CHANGELOG and allowlist reasons updated; example-set exs_ contracts untouched. - Canonical ExperimentRead rejects has_hybrid_session (not/required); the legacy shared resource keeps it. Test added. - No experiment refs have been issued yet, so an old-reference transition receipt is not applicable (CHANGELOG). - Parity manifest re-stamped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(experiment-reads): canonical reads expose agent_ref and experiment_run_ref, never raw ids ExperimentRead becomes a standalone closed projection; graph summaries and trend points already carry no run or agent id (pinned by a test). Legacy shared schema unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(experiment-reads): canonical ExperimentRead drops raw and hydrated identifiers of other resources Spine-Trail: st_9fc2f6497dd0 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(experiment-reads): canonical read counts experiment runs and carries no free-form metadata Spine-Trail: st_9fc2f6497dd0 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(experiment-reads): canonical configurations and objectives carry no raw ids or free-form maps Spine-Trail: st_9fc2f6497dd0 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * feat(experiment-reads): canonical ExperimentRead carries closed tuned_variables and objectives bindings (CORE-v1 provisional) Spine-Trail: st_9fc2f6497dd0 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * docs(experiment-reads): CORE-v1 is final, drop the provisional qualifier from descriptions Spine-Trail: st_9fc2f6497dd0 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(experiment-reads): graph summaries carry no raw graph id (canonical reads expose refs only) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(reports): refresh schema reachability report after merging develop (630 schema files, 62 unreachable, unchanged orphan set) Regenerated with scripts/schema_reachability.py --update. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…se acceptance (#747) BREAKING (pre-release). POST .../best-config-head/rollback refuses API keys and service tokens with 403 forbidden. HeadRollbackRequest gains acceptance_id, the id of a fresh acceptance the rollback consumes; the 409 description lists the acceptance refusal codes; the receipt acceptance_id is always a string; the ReleaseRefusal code description names the person-only rollback route. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…nd fails fast without one (#748) * fix(gate): local_gate.sh fails fast with a clear setup message when no project environment is active Preflight at the top of the gate checks that the chosen python can import mypy, pytest, jsonschema and traigent_schema. With no venv active and a repo .venv present, the gate uses .venv/bin/python automatically (and puts its bin dir first on PATH); otherwise it exits 1 with the setup command. All later python calls use $GATE_PY. No gate step is skipped or relaxed. Co-Authored-By: Claude Haiku <noreply@anthropic.com> * fix(gate): every local_gate.sh tool runs on the selected project interpreter Tools were resolved through PATH while $GATE_PY pointed elsewhere, so with VIRTUAL_ENV set pytest could come from ~/.local/bin. All ruff, mypy and pytest calls now run as "$GATE_PY" -m <tool>, and each selection branch prepends the chosen interpreter's bin dir to PATH for make/subprocess calls. Co-Authored-By: Claude Haiku <noreply@anthropic.com> --------- Co-authored-by: Claude Haiku <noreply@anthropic.com>
…r request object is breaking (#749) For request and direction-unknown schemas, declaring a key (or a pattern) with a constraining schema is breaking when the old schema accepted that key under any looser rule: an open object, an additionalProperties value schema, or a matching patternProperties entry. The only exemption is a new schema that accepts every value; an identical-looking schema is not exempt (rules combine per key and a $ref can resolve differently across revisions), so a deliberate no-op addition is acknowledged through the allowlist. Response schemas and closed objects are unchanged. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ed agents API (#750) * feat(agents): align the public agents catalogue with the project-scoped agents API (problem+json errors, real request and response shapes, 429) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agents): keep the shared request schemas unchanged and give the project endpoints their own relaxed schemas (RQ#12 review) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agents): classify the ignored owner fields as user content and keep the shared create schemas reachable through their regression test (RQ#12 review) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(parity): regenerate parity and reachability after rebase onto develop Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agents): request schemas stay accept-compatible; added properties carry no new constraints (review) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(parity): regenerate parity and reachability after rebase onto develop 6d7140e Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
… experiment-run URL (#751) * feat(analytics): evaluator-quality compute operation on the canonical experiment-run URL (API revision W11) Spine-Session: cs_f69ecd16f3c50cb7 Spine-Trail: st_6a9f7b8b36e3 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(analytics): content-aware run id classification, the existing evaluator-quality GET on the shared response, reachability report (W11 review) Spine-Session: cs_f69ecd16f3c50cb7 Spine-Trail: st_6a9f7b8b36e3 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(analytics): the evaluator-quality GET declares the auth-path 503 (W11 review) Spine-Session: cs_f69ecd16f3c50cb7 Spine-Trail: st_6a9f7b8b36e3 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(parity): regenerate parity and reachability after rebase onto develop d5983f7 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…ire-identical; removes public component-name collisions) (#752) Spine-Trail: st_15aa971647af Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…ponse bodies (#753) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…nse contracts (additive) (#754) * feat(analytics): closed stored-guidance not_generated and ready response contracts (additive) Spine-Trail: st_ce07c4e77d90 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(analytics): stored decision evidence_level and action_kind follow the reader's token rule, not the enum The backend stored-guidance reader returns any evidence_level / action_kind matching ^[a-z_]{1,64}$ unchanged and returns None otherwise. The schema accepted only the existing enums, so valid stored values the reader serves were rejected. Spine-Trail: st_ce07c4e77d90 Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
… S1192) (#757) * refactor(sonar): fleet_observe_digest S1192 module constants for repeated literals (no behaviour change) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * refactor(sonar): fleet_observe_digest S3776 extract _member_entry, _split_remote, _host_and_port (no behaviour change; pins repository error messages) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
… ids for current paths, production-reactive id renames (#755) * feat(experiment-context): mark tenant_name/project_name as customer content Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com> * docs(changelog): experiment context display names are customer content Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(contracts): declare example-scoring and next-steps operations under their backend operation ids Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(contracts): production reactive and TVL import operation ids equal backend op ids (no path moves) Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(contracts): defer TVL import operationId to the route move; mark reactive op-id rename breaking for id-keyed tooling Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(parity): re-stamp the parity manifest for the combined api batch 2026-11-23 * feat(contract): operation ids for the configuration-run operations; add the cancel operation Give the nine existing configuration-run operations an operationId equal to the backend operation id, and add POST /api/v1/configuration-runs/{config_run_id}/cancel (200 returns the configuration run; 404 not found; 409 already terminal; 429 rate limit). No paths are moved or renamed. Parity manifest re-stamped. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * chore(parity): re-stamp the parity manifest for the combined api batch 2026-11-23 (with configuration-run) * chore(parity): re-stamp after part 4 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
…il response (#756) * feat(agent-readiness): optional scorecard block on the detail response The agent readiness detail response gains an optional, nullable top-level scorecard: scores and per-area stats against the latest ACTIVE config (the promoted agent head) or, when none, the current anchor run. Closed objects throughout; metrics reuse ReportedMetrics, refs reuse EvaluationDatasetRef, EvaluatorVersionRef and ProcessStage. Not required, so older payloads stay valid. Breaking-check acknowledged in the allowlist (closed response). Spine-Trail: st_5fd5ce41e1b4 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agent-readiness): scorecard basis invariants (if/then) ACTIVE_CONFIG requires a non-null config with generation >= 1; CURRENT_RUN requires a non-null run_id and a null config. Tests cover each violation. Spine-Trail: st_5fd5ce41e1b4 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agent-readiness): scorecard with no run carries no run-derived stats When run_id is null: metrics empty, run_completed_at, example_count and trials_run null. Tests and the positive fixture updated. Spine-Trail: st_5fd5ce41e1b4 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * fix(agent-readiness): null run_id also nulls stage, dataset_ref and version_ref Spine-Trail: st_5fd5ce41e1b4 Co-Authored-By: Claude Sonnet <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet <noreply@anthropic.com>
…cts; experiment groups move under projects (BREAKING) (#758) * feat(contracts): declare analytics run-view, evaluator promotion, IRT fit and reference review operations at their current paths Adds public contracts, under the server's operation ids, for evaluator promotion (evaluate, list decisions), IRT fit, run reference review and run evaluator quality, and adds operation ids to seven existing analytics run-view declarations. Shared middleware error bodies admit only the server's fixed messages and declare no request id. Additive only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(execution)!: experiment-group endpoints move to project-scoped paths (API revision W9) BREAKING public change. The four /api/v1/experiment-groups operations are removed and replaced by five operations under /api/v1/projects/{project_id}/experiment-groups, with operationId equal to the backend operation id: experiment_group.list_groups (POST .../search), experiment_group.get_group, experiment_group.list_group_runs, experiment_group.query_group_runs and experiment_group.list_group_experiments (new). source_experiments is removed from the group detail; page, per_page and offset are gone (limit and cursor only). Denials are closed problem+json bodies (one closed object per code, fixed text, no request-derived field); success bodies are envelopes requiring success, a non-empty message and data. Consumers: the Traigent portal (updated in the same release) and the Python SDK (traigent 0.34). Content-class annotations are left as on the previous endpoints (parity). Deviations from the backend declaration: request bodies are wrapped in allOf so the request validator can bind them; request, envelope and page-block schemas live in experiment_group_schema.json definitions (the Groups* responses and GroupsProblem stay in execution_endpoints.json); the old list, run-list, query and strict-error definitions are kept as unreferenced definitions (ExperimentGroupDetailPayload and ExperimentGroupDetailResponse are deleted). Co-Authored-By: Claude Sonnet <noreply@anthropic.com> * chore(parity): re-stamp after the 2026-11-24 batch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(reports): regenerate the schema reachability report for the 2026-11-24 batch The batch adds analytics error and response schemas and moves the experiment-group operations, which changes the reachable set. Regenerated with scripts/schema_reachability.py --update; --check passes (63 unreachable / 666 total). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ject_id}/agents/{agent_ref} (#759)
* feat(contracts)!: production reactive paths move under /projects/{project_id}/agents/{agent_ref} (API cutover U1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* test(contracts): no side effect inside assert in run reference review tests (CodeQL)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* docs(contracts): production reactive descriptions match the backend (scope, 429 Refusal, stage flag) (review)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…duction-reactive agent_ref path parameter (#760) The content-class lint requires every opaque_ref value to carry an approved ref pattern. This adds one narrow exception, for the agent id that agents/agents_endpoints.json already declares as a plain string: - Only at 14 exact locations: the agent_ref path parameter schema of the production-reactive operations in optimization/tvl_reactive_endpoints.json. The enclosing parameter must be name: agent_ref, in: path. - Only for the exact shape {"type": "string", "minLength": 1, "maxLength": 128} with integer-typed bounds; documentation keys are the only extra keys allowed. - The exemption is never inherited through $ref, $dynamicRef, $recursiveRef or allOf/anyOf/oneOf, and never applies at a body root. - A tree-wide check refuses any reference to an exempt schema, its parameter object or anything beneath them, after percent-decoding and canonical pointer handling. It also refuses an unresolvable reference into the file that holds the exempt locations. Non-canonical array indices no longer resolve. The lint result on the current tree is unchanged. Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
…{agent_ref} (#762)
The 14 agent_ref path parameters in optimization/tvl_reactive_endpoints.json are now a
plain 1-128 character string (opaque_ref content class): the agent id the agents API
returns. The agentref_ digest is retired for these routes. Clients must send the agent id
and use the project-scoped paths; Python SDK 0.32.0 to 0.34.1 and the current JS SDK need
an update. The policy-read description and the reactive contracts guide follow, and the
allowlist acknowledges the added minLength.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…it composite test assertions) (#763) * refactor(validator): extract inline base id helper to cut _parse_openapi complexity (S3776) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(group-contract): put the actual value first in the search-body assertion (S3415) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: split composite assertions into one assert per condition (S9073) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…26-11-24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…llowlist entry narrowed to its findings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… internal references removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d exactly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ict error bodies Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…laration Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d detail envelope Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Post-merge review by Codex for Israel Review recorded 2026-11-30 at 10:45 UTC. Reviewed the 238-file first-parent delta from
|
IsraelTraigent
left a comment
There was a problem hiding this comment.
Post-merge review of 8.0.0. Merge b463673, head 7a0e091. Main has not moved since.
Read: 23 of 238 changed files in full, 13 sampled, 202 not read (mostly schema catalogs and tests).
- In full: CI workflows and scripts, CODEOWNERS, the breaking-change checker and its allowlist, the content-class lint,
local_gate.sh,validator.py,fleet_observe_digest.pywith its spec, the auth vocabulary and keys catalog, CHANGELOG, README and docs. - Sampled: the reactive, agents, execution, fleet-observe, prompts and planned-projects catalogs.
Ran, at the merge commit:
- Full suite: 8624 passed, 2 skipped, 3 failed. All 3 were
No module named 'tvl': my env lacked thetvlextra. I could not re-run them with the extra in this session; the hostedtest (3.12)job, which runs them, passed on the head. - Breaking-check replay (7ab078d → b463673): passed, exit 0, 397 findings, every BREAKING one allowlisted.
Steps:
- Decision stress test: the release stands. The risk is in callers outside this repo (below).
- Security red-team and repo forensics: nothing blocking. Three items were reported privately: https://github.com/Traigent/TraigentSchema/security/advisories/GHSA-3g28-v37g-53v4, https://github.com/Traigent/TraigentSchema/security/advisories/GHSA-255m-jxf9-84f5, https://github.com/Traigent/TraigentSchema/security/advisories/GHSA-gghc-r8hw-h6gv.
- Design review: not applicable (no UI).
- Cross-repo quality audit and code review: an independent reviewer and an expert panel ran on the same diff. Findings below.
High
-
The published Python SDK 0.34.3 still calls the experiment-group operations this release removes (CHANGELOG.md:13, :40).
The calls are
GET /api/v1/experiment-groups/{group_id}, itsconfiguration-runsoperations, and the removed list. The client needs to move to the project-scoped group routes. Tracked in an internal issue.
Medium
SchemaValidator.validate_requestreturns "Schema not found: X" for every payload when the request body is afile.json#/definitions/Xref (traigent_schema/validator.py:435).- The breaking-change check never compares path-item
$reftargets or path-levelparameters(scripts/breaking_schema_check.py:1768-1806).- Scope: this release adds 11 path-item refs (
planned_projects_endpoints.json). A later retarget of one of them, or a narrowed path-level parameter, produces no finding. I ran both. - Known gap: the allowlist entry at
scripts/breaking_schema_allowlist.json:10734names it, but nothing tracks it. #782
- Scope: this release adds 11 path-item refs (
Low / nits (all still on main)
traigent_schema/fleet_observe_digest.py:- Non-string kinds raise TypeError (:125, :157, :161, :164), not the ValueError the docstring promises (:8-10).
request_digestignores extra top-level keys, which the schema forbids (ran: same digest).- Port
0443is kept (:271). - :279-281 accepts
host[:port]/path, whichidentifier_canonicalization.jsonrules out.
- The sdist include list (
pyproject.toml:64-74) has no*.md, sodata/fleet_observe/request_digest_v1.md, cited atfleet_observe_digest.py:5, does not ship. I read the config; I did not build. tests/test_tvl_reactive_contracts.py:1138-1139says tvl-spec is in thedevextra andrequirements-dev.txt. It is only in thetvlextra (pyproject.toml:44-48).agent_refbounds differ across catalogs under/projects/{project_id}/agents/{agent_ref}/...: unbounded (readiness, production-requirements), 128 (agents, reactive), 255 (agent-decision), 512 (compliance).fleet_observe/fleet_observe_endpoints.json:14calls the project-boundfleet_imports:writekey "planned". The same release adds that scope to the auth vocabulary.- Allowlist labels:
- 60 of the 65 entries this release adds still say "Unreleased".
- Two entries show
allowed by ?(no PR).
pr-body-ticket-security.yml:43labels the checkout SHA# v6;ci.ymllabels the same SHA v7.0.1.- The develop back-merge (#769) was squashed, so main's merge commit is not an ancestor of develop.
- The description cleanups in #770 and #780 are on develop and ship with the next release.
Green, but fix first: the SDK callers of the removed experiment-group operations (tracked internally).



Release traigent-schema 8.0.0 to main: develop promoted to main.
Contents: everything on develop through #763. See CHANGELOG [8.0.0]. Breaking highlights:
/api/v1/projects/{project_id}/agents/{agent_ref}/production-reactive/..., and{agent_ref}takes the agent id (feat(contracts)!: production-reactive paths move under /projects/{project_id}/agents/{agent_ref} #759, fix(contracts)!: production-reactive operations take the agent id in {agent_ref} #762);Each change is acknowledged in scripts/breaking_schema_allowlist.json.
Release bookkeeping vs develop:
traigent_schema/version.pyis 8.0.0, and the CHANGELOG [8.0.0] section is complete. The allowlist keeps both sides' entries from the develop merge (435 entries, no duplicate fingerprints).Downstream: the Python SDK pins
traigent-schema==7.1.0exactly and the backend pins a git commit, so publishing 8.0.0 changes no existing install. Each consumer moves its own pin.Verification on the pushed tree:
scripts/local_gate.shwith LOCAL_GATE_SONAR=1: 8623 passed, the breaking-change check passed against origin/main, and the local Sonar quality gate passed.Ticket: none (release promotion of develop to main as traigent-schema 8.0.0)
Security note: none (contract release; no runtime code beyond the merged PRs)
Spine-Trail: st_28b0aa16f5e2
🤖 Generated with Claude Code