Skip to content

Wire entity kinds and filters into harness configuration #9905

In review

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

Dependency

Depends on #9884 for the canonical entity-source configuration model.

What is missing

PR #9893 adds entity-kind resolution and filter-validation helpers, but entity_kinds and entity_filters are not fields on the harness configuration model and are not wired through harness composition. A harness therefore cannot declare the slot kinds and predicates required by entity-source configuration v1.

What should happen

Harness configuration should accept, compose, and validate entity_kinds and entity_filters according to the v1 contract. The effective harness passed to run and poll paths should carry those values, and invalid or unsupported combinations should produce an explicit diagnostic. Existing event-only harnesses must retain their current behavior.

Acceptance criteria

  • Harness YAML and the in-memory harness model represent entity_kinds and entity_filters.
  • Layered harness composition applies the documented defaults and replacement rules.
  • The canonical entity configuration path validates kind/source compatibility and filter expressions before execution.
  • Run and poll consumers receive the effective values through the shared harness model.
  • Tests cover source, target, and related-work slots, valid and invalid filters, unsupported provider/kind pairs, layering, and unchanged event-only behavior.

Activity

  1. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:12 AM UTC · Completed 9:14 AM UTC

    Commit: 547a3c6 · View workflow run →

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

  2. added
    blocked
    on Nov 27, 2026
  3. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage

    This issue is well specified, with clear acceptance criteria and a normative v1 contract to implement against. It can't start yet because it depends on the canonical entity-source configuration model.

    • The dependency named in the issue is still open. It tracks the canonical config model.
    • Its only implementation so far is an open, unmerged PR. That PR adds the entity-kind resolution and filter-validation helpers this work would wire into the harness model. Those helpers are not on the main branch yet.
    • That PR also says it is partial and leaves harness entity_kinds/entity_filters wiring to this issue.

    Wiring the harness fields now would mean building on code that is still under review and may change. Once the dependency issue and its PR are merged, this issue should be ready to implement and can be re-triaged. Keep event-only harness behavior unchanged, as the acceptance criteria already require.

    Blocked by:

  4. ifireball commented on Nov 30, 2026

    @ifireball
    MemberAuthor

    /fs-triage

  5. self-assigned this
    on Nov 30, 2026
  6. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 2:02 PM UTC · Completed 2:04 PM UTC

    Commit: cca0379 · View workflow run →

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

  7. added
    feature
    triaged
    and removed
    blocked
    on Nov 30, 2026
  8. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    The blockers recorded in the earlier triage are resolved. #9884 is closed as completed, and PR #9893 is merged and on main, so the entity-kind resolution and filter-validation helpers this work needs are available. This issue is now ready for implementation, and the blocked label no longer applies.

    Findings from the current tree

    • The helpers ResolveEntityKinds and ValidateEntityFilters live in internal/config/entity_sources.go. The harness struct in internal/harness/harness.go has no entity_kinds or entity_filters fields yet, and mergeBaseIntoChild in internal/harness/compose.go does not compose them.
    • No open PR currently addresses this issue.
    • The v1 contract defines the rules to follow: kinds compose by slot name, and filters compose by slot and provider, with an explicit value replacing the inherited one. Defaults apply only after composition. A harness with no entity_kinds declaration must stay on the event-only path, and entity_kinds: {} is an explicit opt-in to the default slots. Keep nil and empty distinct in the model so this works.
    • Target filters must not default from source filters, even when kinds and bindings do.

    Proposed test case

    Kinds: source/target/related_work slots resolve; entity_kinds: {} gives defaults;
      absent declaration stays event-only; inherited explicit target survives a child
      source change while a defaulted target follows it; extra slot without a kind fails.
    Filters: unknown slot/provider and unsupported provider/kind pairs fail explicitly;
      invalid GitHub query fails; layering replaces per slot/provider; empty query clears
      an inherited restriction; target filters do not inherit from source.
    Consumers: run and poll paths see the effective values via the shared harness model.
    

    Because this adds new capability rather than fixing a defect, it will wait for human prioritization before the code agent picks it up.


    Next steps:

    • /fs-code — agent creates a PR to implement this issue
    • /fs-code <your instruction> — agent implements with your specific guidance
  9. ifireball commented on Nov 30, 2026

    @ifireball
    MemberAuthor

    /fs-code

    Implement this issue per its acceptance criteria and the entity-source v1 contract. Preserve absent versus empty entity_kinds behavior and do not let target filters inherit from source filters.

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

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 2:09 PM UTC · Completed 2:25 PM UTC

    Commit: cca0379 · View workflow run →

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featuretriaged

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions