feat(api): GET/PATCH /issues for worker poll and claim
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:
parent
cdbe87d525
commit
f22faaa815
4 changed files with 328 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue