Skip to content

Build a harness-specific authorized entity view for CEL #9584

Closed

Description

@fullsend-ai-triage

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

What to build

For each entity-source harness evaluation, apply Authorization Contract v2, ADR 0151's effective human_min_role, and the applicable bot rules to the normalized entity as a structured, potentially partial document. The input is the entity tree together with its coverage and source-revision/provenance metadata, the selected harness's effective authorization policy, and provider-verified actor-role evidence. Actor-role evidence may come from a live check or eligible ADR 0148 cache reuse.

Produce a harness-specific CEL view that preserves the normalized entity's field paths and nested record shapes, along with bounded authorization and coverage evidence. Keep this view separate from shared cached entity data because each harness can apply a different policy. This issue covers authorization-aware view construction; it does not own entity acquisition or query planning.

View behavior

  • Check the current-revision actor attribution and applicable authorization evidence for actor-attributed values, including the current editor of singular fields such as title and body, and actors nested in collections such as comments, reviews, and label_applications.
  • Preserve admitted values and records in their normalized locations. Exclude known non-admitted records from that harness's view. Keep collection coverage accurate for the authorized view: unresolved attribution, role evidence, source revision, or source completeness must not be represented as a complete empty collection.
  • Leave a singular actor-attributed value unknown when its current actor cannot be admitted. Bind unresolved values and incomplete collection coverage as CEL unknown, not as empty, false, or a known absence.
  • Apply the contract's field classification. Do not treat every entity field or relationship as an independently actor-originated action.
  • CEL evaluates the resulting view and returns true, false, or unknown. That result does not replace event authorization, trusted eventless invocation provenance, or the later model-bound content authorization gate.

Acceptance criteria

  • Given a partial normalized entity, a harness policy, and actor-role evidence, produce a harness-specific, entity-shaped CEL view and bounded authorization/coverage evidence.
  • Tests cover an admitted nested action, a known actor below the harness minimum, unresolved or stale actor/source-revision evidence, and incomplete source coverage. Incomplete evidence must not make absence or an aggregate predicate appear conclusively false or empty.
  • Tests cover singular actor-attributed fields whose current editor is unauthorized or unresolved; those values remain unknown.
  • Applying different harness minimums produces independently authorized views without mutating the shared normalized entity or its cache entry.
  • Actor-role cache reuse follows ADR 0148's scope, age, invalidation, and audit constraints and applies only to entity CEL role evidence.
  • Event authorization, trusted eventless invocation provenance, entity-view admission, and model-bound content authorization remain separate gates. Passing CEL does not authorize content to be staged or acted on.

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.11

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

    @fullsend-ai-triage
    Author

    This work is blocked on the acquisition-plan issue (#9583), which derives the per-harness plan for which entity facts get fetched from CEL dependencies. It is still open and no PR is in flight. This issue admits actor-attributed facts into entity CEL, which depends on that plan defining which facts are acquired. Re-triage once #9583 lands. The scope and acceptance tests (insufficient actor role, missing provenance, stale revision, cache reuse allowed or denied by scope and age, gate separation) look clear enough to implement at that point. The binding of entity into the CEL environment (#9582) is a sibling slice of the same parent; it is worth confirming at implementation time whether it must land first.

    Blocked by:

  5. added
    ready-for-agent
    and removed
    blocked
    ready-for-triage
    on Nov 17, 2026
  6. fullsend-ai-triage commented on Nov 17, 2026

    @fullsend-ai-triage
    Author

    🤖 Finished Triage · ✅ Success · Started 1:57 PM UTC · Completed 1:59 PM UTC

    Commit: 1cc7728 · View workflow run →

    Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.19

  7. 10 remaining items

  8. ifireball commented on Nov 17, 2026

    @ifireball
    Member

    /fs-code

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

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 3:27 PM UTC · Completed 3:44 PM UTC

    Commit: 3e8fae6 · View workflow run →

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

  10. added 3 commits that reference this issue on Nov 17, 2026
  11. self-assigned this
    on Nov 20, 2026
  12. added 5 commits that reference this issue on Nov 22, 2026
  13. added a commit that references this issue on Nov 22, 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