You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bind required entity and nullable event in harness CEL environment (ADR 0098) #9582
Context: part of implementing accepted ADR 0098 (entity-first harness evaluation), tracked by parent issue #8418 (spec: #9580). Relevant accepted ADRs under docs/ADRs/: 0098, 0133, 0144, 0147, 0148, 0149, 0151. Already complete and not to be redefined here: normalized-entity v1 contract (#8420), actor/entity caches (#9271, #9276), entity-context-snapshot contract (#9310/PR #9314). Event-only harnesses (no entity sources) must keep their current behavior unchanged. Unresolved, unsupported, or failed data must never become a false/empty CEL result and must never start a sandbox.
Blocked by: none strictly; integrates with the shared eligibility decision issue.
Extend the harness CEL environment so predicates for harnesses that declare entity sources are evaluated over a required normalized entity (per the v1 contract) and an optional event that is null for eventless evaluation. Harness authors must be able to guard event access when event may be null, and state-only predicates must still be able to match with a null event. Preserve the CEL unknown-value semantics from ADR 0147 and the distinctions among absent, empty, unsupported, not loaded, partial, unknown, and failed data.
Acceptance: tests for event present, event null, guarded and unguarded event access, unknown/partial propagation, and unchanged event-only harness evaluation.
Triage finds this ready for implementation. It is well scoped, and the work is confined to the CEL environment layer.
Where the change lands:internal/celtrigger currently declares only a dynamically typed event variable and evaluates with only an event map; internal/harness/trigger.go wraps it. The entity-aware environment should be added alongside the existing event-only path so harnesses without entity sources keep identical behavior.
Points to settle during implementation (resolvable from ADR 0098/0147 and the normalized-entity package):
Unguarded access to a null event must surface as an error or unknown, never as false.
Superseded by #9581, which now combines the required entity/nullable-event CEL binding with the shared eligibility outcome. The acceptance criteria are carried forward there.
Activity
fullsend-ai-triage commentedon Nov 17, 2026
🤖 Finished Triage · ✅ Success · Started 9:05 AM UTC · Completed 9:07 AM UTC
Commit:
4c81590· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.11
fullsend-ai-triage commentedon Nov 17, 2026
Triage finds this ready for implementation. It is well scoped, and the work is confined to the CEL environment layer.
Where the change lands:
internal/celtriggercurrently declares only a dynamically typedeventvariable and evaluates with only an event map;internal/harness/trigger.gowraps it. The entity-aware environment should be added alongside the existing event-only path so harnesses without entity sources keep identical behavior.Points to settle during implementation (resolvable from ADR 0098/0147 and the normalized-entity package):
false.Proposed test cases:
No open PR addresses this and no children exist. The only coordination point is the result shape shared with #9581.
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidanceifireball commentedon Nov 17, 2026
Superseded by #9581, which now combines the required entity/nullable-event CEL binding with the shared eligibility outcome. The acceptance criteria are carried forward there.
refactor(fullsend-ai#9581): add entity/event CEL eligibility decision…