mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
* feat(release): add release-manager feature flag (default off) * feat(release): change classification + semver-bump derivation * feat(release): readiness audit (changelog/version-ref/docs/migration/gate) * feat(release): release-manager engine proposes a gated release * feat(release): fail-closed release executor (bump, gate, publish) * feat(release): CEO approve/reject release-proposal surface * docs(release): document the gated release manager * feat(memory): add org-memory feature flags (default off) * feat(memory): add playbooks table + status enum + migration * feat(memory): playbook service with auditor curation transitions * feat(memory): playbooks RAG index plugin * feat(memory): index a playbook into RAG on approval * feat(memory): distill a high-signal lesson at task completion * feat(memory): keep private journal reflections out of the shared RAG corpus * feat(memory): draft_playbook verb + auditor curation verbs * fix(ci): resolve mypy tests/ errors blocking the gate (UUID casts, annotations) * feat(memory): auto-inject similar lessons/playbooks into the briefing * feat(memory): auditor playbook review queue (api + panel) * docs(memory): document the org-memory loop + playbook verbs * fix(provisioning): idempotent pitch provisioning (reuse product/project by slug on re-approval) * fix(memory): add chunks_playbooks to the chunk schema + isolate release route tests - Migration 030's CHUNK_TABLES was missing chunks_playbooks, breaking the IndexType<->migration parity guard once the PLAYBOOKS index landed. The upgrade is ALTER ... IF EXISTS so adding it is safe on any DB shape. - The release-route fixture's approve/reject paths call db.commit() (real behavior), so a held proposal outlived the per-test rollback and leaked into engine tests that read the global list_open_release_proposals(). Tear down source=release_manager rows after each test. - Make the gather_snapshot real-repo smoke version-agnostic (semver match) so it stops pinning the literal repo version. * chore(release): 0.13.0 * ++ --------- Co-authored-by: Renn F <rennf93@users.noreply.github.com>
53 lines
1.2 KiB
Python
53 lines
1.2 KiB
Python
"""Schemas for the gated release-manager CEO surface."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class ReleaseGapModel(BaseModel):
|
|
"""One readiness shortfall the CEO must weigh before approving."""
|
|
|
|
category: str
|
|
detail: str
|
|
|
|
|
|
class ReleaseReportModel(BaseModel):
|
|
"""The deterministic readiness report rendered for the CEO."""
|
|
|
|
proposed_version: str
|
|
bump_kind: str
|
|
change_summary: list[str]
|
|
drafted_changelog: str
|
|
version_bump_plan: list[str]
|
|
gaps: list[ReleaseGapModel]
|
|
migration_notes: list[str]
|
|
gate_state: str
|
|
|
|
|
|
class ReleaseProposalResponse(BaseModel):
|
|
"""The held proposal the CEO approves or rejects."""
|
|
|
|
task_id: str
|
|
title: str
|
|
status: str
|
|
required_changes: str | None = None
|
|
report: ReleaseReportModel
|
|
|
|
|
|
class ReleaseRejectRequest(BaseModel):
|
|
"""The CEO's required changes when rejecting a proposal."""
|
|
|
|
required_changes: str = Field(min_length=10)
|
|
|
|
|
|
class ReleaseExecuteResponse(BaseModel):
|
|
"""The outcome of an approved release execution."""
|
|
|
|
status: str
|
|
version: str
|
|
files_changed: list[str]
|
|
commit_sha: str | None = None
|
|
release_url: str | None = None
|
|
detail: str
|