Skip to content

Normalize legacy tracker config in memory to provider-named connections #9907

Done

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 currently normalizes legacy tracker through a generated legacy_tracker connection, allows it to coexist with explicit entity configuration, and lets explicit entries shadow the generated fallback. The agreed compatibility behavior instead uses provider-named entries and rejects mixed legacy/entity configuration, with a Vault-only exception for connections. The current PR also does not map the legacy Jira run label into the canonical connection field.

Without this in-memory compatibility path, runtime consumers either need to keep reading raw tracker or users must rewrite configuration before the canonical model can replace it. The explicit user-config migration command is tracked separately in #9885.

What should happen

Load the effective legacy tracker configuration into the canonical provider-named model without modifying user files. Preserve the old whole-block replacement behavior across layers before translating. Map GitHub and GitLab allowed_targets to the matching provider connection without creating entity sources; map Jira connection, source, polling eligibility, command defaults, and jira_agent_start_label while preserving endpoint and credential scope.

Reject an effective configuration that combines legacy tracker with entity-provider connections or entity_sources. A connections map containing only non-entity services such as Vault may coexist. Diagnostics should identify the conflicting configuration and remediation.

Update the normative v1 compatibility text to match this behavior. Do not add an automatic file rewrite or migration command to this issue.

Acceptance criteria

  • Legacy-only configurations resolve to provider-named canonical connections and, for a complete Jira project scope, the Jira entity source.
  • GitHub and GitLab policy-only blocks retain their allowed_targets and do not create an entity source.
  • tracker.jira.run_label resolves to connections.jira.jira_agent_start_label.
  • Whole-block legacy layer replacement is preserved; changing the effective provider cannot leave grants from the replaced provider active.
  • Mixed legacy/entity configuration fails validation, including when the conflicting values arrive through different layers; Vault-only connections remain allowed.
  • Host, credential, query, command-default, polling, and checkpoint behavior remain unchanged. A mapping that cannot preserve host or credential scope fails with an actionable error.
  • The normalized effective-config view reports provider-named results and their source layer without exposing secret values.
  • Tests cover provider switches across layers, policy-only GitHub/GitLab, Jira label and polling translation, mixed-config errors, the Vault exception, and host/credential preservation.
  • No configuration file is rewritten; the optional in-place migration remains in Add an in-place migration command for legacy tracker configuration #9885.

Activity

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 9:19 AM UTC · Completed 9:20 AM UTC

    Commit: 547a3c6 · View workflow run →

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

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

    @fullsend-ai-triage

    The scope and acceptance criteria here are clear, but implementation can't start until the canonical entity-source configuration model exists. That model is tracked in #9884 and is being implemented in the open PR #9893, which is not yet merged.

    PR #9893 is a partial implementation of #9884 that references the parent issue rather than closing this one, so it doesn't resolve this issue. It does introduce the code this issue changes. As written, the PR generates a legacy_tracker connection, lets explicit entries shadow the translated ones, and doesn't map the legacy Jira run label. This issue replaces those behaviors with provider-named entries, mixed-config validation errors with the Vault-only exception, and the jira_agent_start_label mapping.

    Once #9893 (or its successor) has merged, this issue should be re-triaged. If the PR is revised to cover these requirements, the remaining scope can be narrowed at that point.

    Blocked by:

    The normative v1 compatibility text that this issue also asks to update lives in the entity-source configuration contract documentation and is touched by the same PR, so sequencing after it should avoid conflicting edits.

    Blocked by:

  4. self-assigned this
    on Nov 30, 2026
  5. csoceanu commented on Nov 30, 2026

    @csoceanu
    Contributor

    /fs-triage

  6. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

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

    Commit: 5bf4a02 · View workflow run →

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

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

    @fullsend-ai-triage

    The blockers noted in the earlier triage are resolved: #9884 is closed and PR #9893 has merged, so the canonical model this change builds on is now on main. The issue is ready for implementation.

    Where the work lands

    • internal/config/entity_sources.go — the legacy translation currently generates the legacy_tracker connection and Jira source and lets explicit entries shadow them. This is the code to change to provider-named entries with mixed-config rejection.
    • internal/config/issue_targets.go — the legacy run_label is parsed here. It needs to feed jira_agent_start_label.
    • internal/config/effective.go — the effective-config view should report provider-named results and their source layer.
    • docs/normative/entity-source-configuration/v1/README.md — the compatibility text that describes the legacy_tracker and shadowing behavior needs to be updated to match.

    Notes for the implementer

    Proposed test case

    For each case, resolve an effective config from layered inputs and assert:
    1. Legacy Jira only -> connections.jira + Jira source; run_label -> jira_agent_start_label
    2. Legacy GitHub/GitLab policy-only -> allowed_targets on provider connection, no sources
    3. Base layer Jira, override layer GitHub -> no Jira grants remain
    4. Legacy tracker + entity connection/entity_sources (same or different layers) -> error naming conflict and remediation
    5. Legacy tracker + Vault-only connections -> accepted
    6. Host/credential/query/command-default/polling/checkpoint behavior unchanged; unpreservable scope -> actionable error
    7. Effective view shows provider names and source layer, no secret values
    

    Labels: The earlier blocked label no longer applies: the dependency issue #9884 is closed and PR #9893 has merged. type/enhancement fits a deliberate behavior change to an existing compatibility path rather than a defect.


    Next steps:

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

    @csoceanu
    Contributor

    /fs-code

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

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 9:20 AM UTC · Completed 9:51 AM UTC

    Commit: 5bf4a02 · View workflow run →

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

  11. added a commit that references this issue on Nov 30, 2026
  12. added 2 commits that reference this issue on Nov 30, 2026
  13. added a commit that references this issue on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triagedtype/enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions