Promote intakes with flavor and copy residual origin.
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Multi-Context Image / build-and-push (push) Successful in 36s

CUST-WP-0072-T03: new workplans from intake promotion and register
bootstrap declare flavor and depends_on.

Assistant: grok
Assistant-Session: 01a09dc1-b21e-77e1-919e-fcad2f82b267
This commit is contained in:
tegwick 2026-09-14 15:51:06 +02:00
parent 1a3375094f
commit b434deafc7
2 changed files with 16 additions and 0 deletions

View file

@ -128,6 +128,17 @@ def _promote_to_workplan(
today = date.today().isoformat() today = date.today().isoformat()
body = intake.get("description") or intake["title"] body = intake.get("description") or intake["title"]
flavor = (
"residual"
if (intake.get("origin") or "") in ("residual", "handoff")
else "planning"
)
origin_lines = ""
if intake.get("origin"):
origin_lines = (
f"origin: {intake.get('origin')}\n"
f"origin_ref: {intake.get('id')}\n"
)
content = ( content = (
f"---\n" f"---\n"
f'id: {new_id}\n' f'id: {new_id}\n'
@ -136,6 +147,9 @@ def _promote_to_workplan(
f"domain: {domain}\n" f"domain: {domain}\n"
f"repo: {repo_slug}\n" f"repo: {repo_slug}\n"
f"status: proposed\n" f"status: proposed\n"
f"flavor: {flavor}\n"
f"depends_on: []\n"
f"{origin_lines}"
f"owner: codex\n" f"owner: codex\n"
f'created: "{today}"\n' f'created: "{today}"\n'
f'updated: "{today}"\n' f'updated: "{today}"\n'

View file

@ -739,6 +739,8 @@ title: "Bootstrap State Hub integration"
domain: {domain} domain: {domain}
repo: {repo_slug} repo: {repo_slug}
status: ready status: ready
flavor: planning
depends_on: []
owner: codex owner: codex
topic_slug: {topic_slug} topic_slug: {topic_slug}
created: "{today}" created: "{today}"