fix: skip session lifecycle CRs, fix CR evidence schema
Session start/end CRs used invalid outcome values (session_started, session_ended) not in broker's Outcome enum, causing 422. Also, broker consumes AC on first CR, blocking subsequent per-command CRs. Skipped session lifecycle CRs until session-scoped AC model is implemented. Per-command CRs still post on governed command completion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
e7bc2ee2b4
commit
740fcdb3b5
1 changed files with 3 additions and 2 deletions
|
|
@ -30,7 +30,8 @@ pub fn run_human_mode(
|
||||||
// Post SESSION_STARTED CR if broker available:
|
// Post SESSION_STARTED CR if broker available:
|
||||||
if let Some(ref base) = broker_url {
|
if let Some(ref base) = broker_url {
|
||||||
if let Ok(client) = build_client(token) {
|
if let Ok(client) = build_client(token) {
|
||||||
let _ = post_cr(&client, base, &session.ac_id, "session_started");
|
// Session start CR skipped — broker consumes AC on first CR,
|
||||||
|
// which would block per-command CRs. Needs session-scoped AC model.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -121,7 +122,7 @@ pub fn run_human_mode(
|
||||||
// Post SESSION_ENDED CR:
|
// Post SESSION_ENDED CR:
|
||||||
if let Some(ref base) = broker_url {
|
if let Some(ref base) = broker_url {
|
||||||
if let Ok(client) = build_client(token) {
|
if let Ok(client) = build_client(token) {
|
||||||
let _ = post_cr(&client, base, &session.ac_id, "session_ended");
|
// Session end CR skipped — same AC consumption issue as session start.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue