Feat/v0.13.0 (#270)

* 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>
This commit is contained in:
Renzo F
2026-06-26 01:43:08 +02:00
committed by GitHub
co-authored by Renn F
parent 153723406e
commit 5612375cba
87 changed files with 5032 additions and 91 deletions
+47
View File
@@ -343,6 +343,49 @@ def evidence(task_id: str) -> dict[str, Any]:
return _post("/api/v1/do/evidence", {"task_id": task_id})
def draft_playbook(
title: str,
problem: str,
procedure: str,
tags: list[str] | None = None,
source_task_id: str | None = None,
) -> dict[str, Any]:
"""Draft a reusable playbook (when-to-use + procedure) for the company KB.
A learning records "this happened"; a playbook records "here is how to do X".
Delivery roles draft; the Auditor approves. tags aid retrieval;
source_task_id links the task that inspired it.
"""
return _post(
"/api/v1/do/draft_playbook",
{
"title": title,
"problem": problem,
"procedure": procedure,
"tags": tags or [],
"source_task_id": source_task_id,
},
)
def approve_playbook(playbook_id: str) -> dict[str, Any]:
"""Auditor only: approve a draft playbook so it is indexed + auto-suggested."""
return _post("/api/v1/do/approve_playbook", {"playbook_id": playbook_id})
def reject_playbook(playbook_id: str, reason: str) -> dict[str, Any]:
"""Auditor only: reject a playbook (archive it) with a reason."""
return _post(
"/api/v1/do/reject_playbook",
{"playbook_id": playbook_id, "reason": reason},
)
def archive_playbook(playbook_id: str) -> dict[str, Any]:
"""Auditor only: archive (retire) an existing playbook."""
return _post("/api/v1/do/archive_playbook", {"playbook_id": playbook_id})
# ---------- Wave 1 — pre-gateway parity ----------
@@ -559,6 +602,10 @@ _TOOLS: dict[str, Any] = {
"channels": channels,
"pr_update": pr_update,
"read_messages": read_messages,
"draft_playbook": draft_playbook,
"approve_playbook": approve_playbook,
"reject_playbook": reject_playbook,
"archive_playbook": archive_playbook,
}