Implement refinement hardening workplan
This commit is contained in:
parent
836acf7e01
commit
0eea94d05e
17 changed files with 1164 additions and 68 deletions
|
|
@ -379,6 +379,26 @@ class LocalServiceRunner:
|
|||
max_items=int(budget["max_items"]),
|
||||
max_tokens=int(budget["max_tokens"]),
|
||||
profile_id=payload.get("profile_id"),
|
||||
priority_node_ids=tuple(payload.get("priority_node_ids") or ()),
|
||||
include_events=bool(payload.get("include_events", True)),
|
||||
policy_context=dict(payload.get("policy_context") or {}),
|
||||
)
|
||||
if operation == "package.compile":
|
||||
return self.runtime.compile_package(
|
||||
payload["selection"],
|
||||
source_ref=payload.get("source_ref", "service"),
|
||||
)
|
||||
if operation == "lifecycle.apply":
|
||||
return self.runtime.apply_lifecycle_actions(
|
||||
payload["actions"],
|
||||
approval_marker=str(payload.get("approval_marker") or ""),
|
||||
review_record=payload.get("review_record"),
|
||||
source_ref=payload.get("source_ref", "service"),
|
||||
)
|
||||
if operation == "audit.query":
|
||||
return self.runtime.query_audit(
|
||||
dict(payload.get("filters") or {}),
|
||||
source_ref=payload.get("source_ref", "service"),
|
||||
)
|
||||
raise ValueError(f"Unsupported service operation: {operation}")
|
||||
|
||||
|
|
@ -433,6 +453,7 @@ def assert_policy_gateway_conformance(gateway) -> None:
|
|||
def assert_audit_sink_conformance(sink) -> None:
|
||||
receipt = sink.record({"operation": "conformance"})
|
||||
assert receipt.get("recorded") is True
|
||||
assert sink.query(operation="conformance")[0]["operation"] == "conformance"
|
||||
|
||||
|
||||
def assert_semantic_index_conformance(index) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue