Some checks failed
check agents / check (push) Failing after 14s
- Report (cp1-assessment-report-agent 0.2.0, step s7): a model writes the Assessment report from facts worked out in code (register, gaps, scorecard, rule traces, checks, and what each application is from the Discovery package); code sets the verdict and renders the pages. The disposition_signoff review point moves from the critic to the report. - Package (cp1-assessment-package-agent 0.1.1, step s8): after sign-off, every step's output in one package, with a register, a gaps register, the sign-off record, lineage and a sha256 per part, in code. Page step s9. - scripts/kab_register_agents.py: registers deployed agents in KAB's agent catalog (an in-place workflow update doesn't). - Runs exec_1b1257380df7 (014) and exec_374d5d577077 (015) completed on crucible-kab-dev: critic pass, report figures all in its facts, package complete with every digest recomputing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
691 B
Python
21 lines
691 B
Python
"""Answers from pre_process: the package is assembled by app/package.py, so no model is called (F02 ADR 0014)."""
|
|
import json
|
|
from typing import Any, Optional
|
|
|
|
from kyndryl_agent_runtime.request_cycle import Reply
|
|
|
|
from app import package
|
|
|
|
|
|
def _execution_id() -> str:
|
|
try:
|
|
from kyndryl_agent_runtime.context import get_workflow_execution_id
|
|
run = get_workflow_execution_id()
|
|
except Exception: # an older runtime, or a request from outside a workflow
|
|
return ""
|
|
return "" if run in (None, "unknown") else str(run)
|
|
|
|
|
|
def pre_process(payload: dict) -> Optional[Any]:
|
|
return Reply(json.dumps(package.build(payload, _execution_id()), ensure_ascii=False))
|