Skip to content

fix(schema): align request contracts with the service, CI timeouts and small fixes (audit issues) - #727

Draft
IsraelTraigent wants to merge 12 commits into
developfrom
schema-issues-20261110
Draft

IsraelTraigent wants to merge 12 commits into
developfrom
schema-issues-20261110

Conversation

@IsraelTraigent

@IsraelTraigent IsraelTraigent commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Ticket: #723
Security note: Tightens schema and digest validation, preserves the byte-pinned verifier contract, and adds workflow timeouts and concurrency controls. Contract tightenings are documented and acknowledged by fingerprint.

Summary

  • Align request schemas with service limits, enums, and accepted fields across promotion policies, evaluators, annotation queues, prompts, agents, and example sets.
  • Set the evaluator backfill limit default to 16 and declare its optional reason maps. Document the session-finalize outcome and the legacy analytics query parameters. Preserve the project-scoped analytics contracts already on develop.
  • Reject duplicate JSON keys and malformed build digests. Fail identity-vector checks when they exercise no vectors and enforce the analytics doctests.
  • Fix workflow timeouts and concurrency, portable reconciliation commands, and the Ruff Python target. Keep the published release history and regenerate parity and reachability from the merged contracts.

Closes #723
Closes #724
Closes #689
Closes #697
Closes #701
Closes #709
Closes #710
Closes #711
Closes #713

Refs #641
Refs #714

The underlying findings in #580, #584, #640, #641, #645, #648, #650, #652, #671, and #696 were consolidated under #723 and #724. The current release changelog already carries the historical wording correction from #714. GitHub closes linked issues after the work reaches the default branch.

Compatibility and deployment

This change narrows several published request and response schemas. Annotation-queue descriptions and prompt text are measured before trimming in Schema, so padding can make some otherwise service-valid bodies fail schema validation. Update consumers that validate or generate request types from the affected contracts. The backfill reason maps and finalize outcome are optional, with bounded value shapes when supplied. The compatibility allowlist preserves develop’s records and adds 34 entries for this PR.

Previous verification receipt

  • Base SHA c4d91e5
  • Head SHA b8f610c
  • Stable patch ID a0d41760573815ebd173a577c2132a021ab0fa2a
  • Local gate passed with 9,669 tests passed and two skipped. Ruff, mypy, parity, auth taxonomy and the breaking-change gate passed. Package build, privacy check and wheel installation passed.
  • Review-code and scoped QA found no blocking issues. All three Spine packets passed. Gitleaks passed. Forensics found no new disclosure findings and two low-severity Ruff-token classifications. The generic Black/isort helper reproduced 20 findings already present on the original draft or develop.
  • Hosted Python 3.12 tests, package, breaking-schema, and aggregate CI passed on this head. Parity, reachability, CodeQL, SonarCloud, and Spine also passed. Aikido reports that it skips drafts. Hosted CI

Current develop integration

  • Base SHA 3cf544d
  • Head SHA 513beef
  • Stable patch ID 282d8716146b9b23d7fa81fd506f31ed96697126
  • Merged current develop and resolved four shared-file conflicts. Pending release notes now live in a changelog fragment, the recorded 7.1.0 date is preserved, and parity and reachability were regenerated for 693 schemas.
  • Local gate passed with 9,986 tests passed and two skipped. The changelog compiler, parity, reachability, content-class manifest, compatibility check, and package build passed. Independent review found no actionable findings. All four Spine packets passed. Gitleaks passed and the disclosure scan found no new findings.
  • Hosted Python 3.12, package, parity, reachability, CodeQL, SonarCloud, Spine, and aggregate CI passed on this head. Aikido skipped the draft. The existing non-blocking Codecov warning remains tracked in ci: update the Codecov action to remove the Node.js 20 warning #778. Hosted CI

Refs #778 for the existing Codecov Node.js runtime warning.

Fully green: NO (Aikido skipped this draft)

Spine-Trail: st_ed0d879c8a50

Owner: IsraelTraigent
Next action: Owner review of the conflict-free draft.
Follow-up: 2026-11-27

…d small fixes

Related audit issues: #580, #584, #640, #641 (schema side), #645, #648, #650, #652, #671,
#696 (consolidated as #723 and #724), plus #689, #697, #701, #709, #710,
#711, #713 and #714.

- Request schemas now match what the service already enforces: promotion
  policy bounds, closed evaluator update/execute/backfill bodies, annotation
  queue description limit and closed bodies, prompt_text limit, example-set
  and agent list caps, run-analytics query parameters, session finalize
  optimization_outcome.
- Update bodies that carry only nulls are refused (root anyOf on the
  annotation-queue and evaluator update request schemas); the evaluator update
  accepts an explicit null target_type like the service.
- Tightened request schemas are acknowledged in
  scripts/breaking_schema_allowlist.json.
- promotion_policy_schema.json is bumped to 0.11.0; the CHANGELOG [7.1.0]
  header date matches the version-bump date.
- Code: duplicate JSON keys removed and a repo-wide duplicate-key gate;
  compute_agent_build_digest validates source_digest; the identity-vector
  verifier fails when it checks nothing; analytics_validators doctests pass.
- CI/tooling/docs: timeout-minutes and concurrency groups on the workflows
  that lacked them; ruff target-version py311; developer paths removed from a
  committed report; CHANGELOG wording.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
IsraelTraigent and others added 2 commits November 12, 2026 12:49
… import-from of the same module)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…pace edge and the hybrid sessions route

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@nimrodbusany

Copy link
Copy Markdown
Contributor

Closed in the stale-PR sweep (2026-11-24): draft, conflicting, no activity for about 12 days and no live worktree. The branch is kept; reopen if this work resumes.

@IsraelTraigent

IsraelTraigent commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

If I may suggest to your claude, that it would be better to send me DM of a reminder instead of closing a relevant pr... as currently I had 40 prs... draft might took some time indeed. Anyway, working on un-drafting all prs.
@nimrodbusany

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants