feat(api): GET/PATCH /issues for worker poll and claim
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 2s
Build and Publish Container Image / build-and-push (push) Successful in 48s

Expose list/get/claim/close for agent-harness intake against the same
auth as POST /issues/ ingestion (HARNESS-WP-0001-T03).
This commit is contained in:
tegwick 2026-07-18 11:30:38 +02:00
parent cdbe87d525
commit f22faaa815
4 changed files with 328 additions and 1 deletions

View file

@ -6,6 +6,7 @@ from fastapi import FastAPI
from .. import __version__
from .ingest import router as ingest_router
from .query import router as query_router
def create_app() -> FastAPI:
@ -13,11 +14,13 @@ def create_app() -> FastAPI:
title="issue-core",
description=(
"Authoritative task lifecycle manager for the Coulomb org. "
"POST /issues/ is the ingestion surface for activity-core's IssueSink."
"POST /issues/ is the ingestion surface for activity-core's IssueSink; "
"GET/PATCH /issues/ is the worker poll/claim surface for agent-harness."
),
version=__version__,
)
app.include_router(ingest_router)
app.include_router(query_router)
@app.get("/healthz", tags=["meta"])
async def healthz() -> dict: