Skip to content

Implement shared entity/event CEL eligibility evaluation (ADR 0098) #9581

Closed

Description

@fullsend-ai-triage

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

What to build

Implement the shared entity-source predicate evaluation boundary. The predicate receives a required normalized entity and nullable event; a supplied event is available for its initial evaluation, while direct entity evaluation uses event == null. The boundary returns exactly one of eligible, proven non-match, deferred/unresolved, or denied. Only eligible may start a sandbox. Keep event-only harnesses on their existing path.

This issue absorbs the CEL binding work from #9582. Reuse normalized-entity v1 and preserve its distinctions among absent, empty, unsupported, not loaded, partial, unknown, and failed data.

Acceptance criteria

  • CEL tests cover a present event, a null event, guarded and unguarded event access, and entity-only predicates.
  • Partial and unknown evidence stays unresolved; it cannot become a false result.
  • The final decision reports eligible, proven non-match, deferred/unresolved, or denied, and only eligible reaches sandbox launch.
  • Event-only harness behavior remains unchanged.

Activity

  1. added
    ready-for-triage
    on Nov 17, 2026
  2. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    🤖 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.15

  3. added
    feature
    triaged
    on Nov 17, 2026
  4. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    Re-triage confirms the earlier assessment: this issue is ready for implementation.

    Proposed test case

    Table-driven over the decision seam with fake injected deps:
      CEL true                      -> eligible      (sandbox may start)
      CEL false, full coverage      -> non-match     (no sandbox)
      CEL unknown / partial data    -> deferred      (no sandbox, retryable)
      unsupported or failed read    -> deferred      (never coerced to false)
      missing provenance            -> deferred/denied per ADR (no sandbox)
      authorization denied          -> denied        (no sandbox)
    Plus: present event, null event, guarded/unguarded event access,
    entity-only predicates, and a harness without entity sources
    following the unchanged event-only path.
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
    Previous run

    This issue is ready for implementation. The prerequisites it cites (#8420, #9271, #9276, #9310) are all closed, and no open PR addresses it.

    Scope notes

    Proposed test case

    Table-driven over the decision seam with fake injected deps:
      CEL true                      -> eligible      (sandbox may start)
      CEL false, full coverage      -> non-match     (no sandbox)
      CEL unknown / partial data    -> deferred      (no sandbox, retryable)
      unsupported or failed read    -> deferred      (never coerced to false)
      missing provenance            -> deferred/denied per ADR (no sandbox)
      authorization denied          -> denied        (no sandbox)
    Plus: harness without entity sources follows the unchanged event-only path.
    

    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  5. added
    ready-for-agent
    and removed
    triaged
    ready-for-triage
    on Nov 17, 2026
  6. changed the title [-]Add shared pre-sandbox eligibility decision with eligible/non-match/deferred/denied outcomes (ADR 0098)[/-] [+]Implement shared entity/event CEL eligibility evaluation (ADR 0098)[/+] on Nov 17, 2026
  7. 5 remaining items

  8. added
    feature
    triaged
    on Nov 17, 2026
  9. ifireball commented on Nov 17, 2026

    @ifireball
    Member

    /fs-code

  10. fullsend-ai-coder commented on Nov 17, 2026

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:40 PM UTC · Completed 3:01 PM UTC

    Commit: 3e8fae6 · View workflow run →

    Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.84

  11. added 4 commits that reference this issue on Nov 17, 2026
  12. self-assigned this
    on Nov 20, 2026
  13. added 2 commits that reference this issue on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureready-for-agenttriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions