Skip to content

Add an in-place migration command for legacy tracker configuration #9885

Todo

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

Dependencies

Depends on #9884 for the canonical configuration model and #9907 for the shared legacy-to-canonical mapping rules.

What to build

Provide an explicit fullsend repos command to port legacy tracker settings in the multi-repo configuration manifest into entity-source configuration v1. The migration preserves effective behavior, does not copy secrets, and leaves dispatch mode unchanged.

Acceptance criteria

  • Preview the proposed manifest changes before writing. An explicit in-place operation writes atomically and is idempotent.
  • Convert tracker settings in the managed repos.yaml config layers: defaults.config, the applicable forge-level config, and concrete or glob repository config entries. Preserve their existing layer precedence and unrelated manifest content.
  • Convert every affected layer needed so no effective repository combines legacy tracker with entity-provider connections or entity_sources. A Vault-only connections map may remain alongside legacy tracker settings.
  • Map tracker providers to provider-named connections; map Jira project/query/poll settings to entity_sources.jira when a scope exists, and map run_label to connections.jira.jira_agent_start_label. Policy-only GitHub/GitLab tracker blocks produce no entity source.
  • Preserve endpoint resolution, credential scope, command defaults, query semantics, creation permissions, and existing Jira secret names. Secret values are never read from or written to repos.yaml.
  • Do not create agent entity bindings, enable entity-based dispatch, alter workflow files, or change poll checkpoints.
  • Detect legacy tracker settings inherited from a referenced config_base that the command cannot safely rewrite. Report the source and required next step, and do not write a manifest that leaves an effective repository in mixed configuration mode.
  • Conflicts, unsupported values, or validation errors leave the manifest unchanged and provide actionable guidance.

Activity

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 10:13 AM UTC · Completed 10:15 AM UTC

    Commit: d9d65b1 · View workflow run →

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

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

    @fullsend-ai-triage

    The scope and acceptance criteria here are clear, but work on this issue is blocked on #9884.

    The migration command must apply the same normalization and validation rules as runtime loading, and it must emit the entity-source configuration v1 shape. #9884 is where that model gets implemented: the canonical in-memory model, strict v1 validation, and normalization of legacy tracker settings. The current internal/config package has no entity-source, entity_kinds or entity_filters handling yet, and no open PR for #9884 was found. The migration would therefore have to duplicate or invent that logic, and it could drift from the runtime loader.

    Once #9884 lands, this issue should be ready to implement against the shared effective-configuration API and legacy-normalization code it introduces. Re-triage then. The ready-for-agent label may be premature until then.

    Blocked by:

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:57 AM UTC · Completed 8:59 AM UTC

    Commit: ce0d95c · View workflow run →

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

  6. removed
    ready-for-agent
    on Nov 27, 2026
  7. fullsend-ai-triage commented on Nov 27, 2026

    @fullsend-ai-triage

    Re-triage confirms this issue is still blocked on #9884. Scope and acceptance criteria are clear, but #9884 remains open and no PR for it exists. The current internal/config package has no entity-source handling yet.

    The migration command has to produce entity-source configuration v1 and apply the same effective-configuration validation and legacy tracker normalization as runtime loading. That shared model and normalization code is what #9884 delivers. Implementing this issue first would duplicate that logic and risk drifting from the runtime loader.

    Once #9884 lands, re-triage this issue. It should then be ready to implement against the shared API. The ready-for-agent label is premature until then.

    Blocked by:


    Labels: The issue is still waiting on an unresolved dependency, so the blocked label stays. ready-for-agent is premature until the dependency lands.

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

    @fullsend-ai-triage

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

    Commit: 547a3c6 · View workflow run →

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

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

    @fullsend-ai-triage

    Scope and acceptance criteria are clear, but this issue is still blocked on two open dependencies that the issue itself lists.

    Implementing the command now would mean duplicating or inventing that logic. Once both dependencies land, re-triage this issue. It should then be ready to implement against the shared effective-configuration and normalization code.

    Blocked by:

  10. ifireball commented on Nov 30, 2026

    @ifireball
    MemberAuthor

    /fs-triage

  11. self-assigned this
    on Nov 30, 2026
  12. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

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

    Commit: cca0379 · View workflow run →

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

  13. added
    feature
    triaged
    ready-for-agent
    type/feature
    and removed
    blocked
    on Nov 30, 2026
  14. fullsend-ai-triage commented on Nov 30, 2026

    @fullsend-ai-triage

    The blockers recorded in earlier triage runs are resolved: #9884 is closed (its PR #9893 merged), and #9907 is closed with its normalization change merged to main. The shared canonical model and the in-memory legacy-to-canonical mapping this command should reuse are now available, so the issue is ready for implementation. No open PR addresses it.

    Where the work lands

    • internal/cli/repos.go: the new fullsend repos subcommand, with a preview by default and an explicit in-place option.
    • internal/repos/ (managed config layers and config_base handling): walking defaults.config, forge-level and repo/glob entries, and detecting inherited legacy tracker settings that cannot be rewritten.
    • internal/config/legacy_tracking.go and entity_sources.go: reuse the shared mapping and validation instead of reimplementing it, so the command and the runtime loader cannot drift. Validate the rewritten manifest through the same effective-config path before writing.

    The exact subcommand name and flags are not specified in the issue, so the implementer should follow existing repos subcommand conventions. Parse the manifest as a YAML node tree so unrelated content and layer ordering survive the rewrite. No workflow file changes are needed.

    Proposed test case

    Fixtures: Jira tracker in defaults.config; policy-only GitHub/GitLab tracker; glob + concrete repo
    overrides; mixed legacy/entity config; Vault-only connections; tracker inherited from config_base.
    - dry-run: file byte-identical, proposed diff shown
    - in-place: converted layers use provider-named connections / entity_sources.jira /
      jira_agent_start_label; per-repo effective config is equivalent before and after; unrelated
      content preserved; no secret values emitted; a second run is a no-op
    - conflicts, unsupported values, config_base-inherited tracker: file unchanged, actionable message
    

    Labels: Both dependencies listed in the issue (#9884 and #9907) are now closed and merged, so the blocked label no longer applies. The issue has clear acceptance criteria and is ready for implementation; it describes a new command rather than a defect, so it is typed as a feature.


    Next steps:

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

    @ifireball
    MemberAuthor

    /fs-code

    Implement this issue per its acceptance criteria and the latest triage note. Reuse the canonical mapping and validation helpers; preserve unrelated YAML content and make preview the default.

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

    @fullsend-ai-coder
    Contributor

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

    Commit: cca0379 · View workflow run →

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

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

    @fullsend-ai-coder
    Contributor

    ℹ️ No PR created — agent determined no changes needed

    The code agent ran and evaluated issue #9885, but did not produce changes to submit as a pull request.

    Reason: No changed files in agent's commit(s)

    Agent context:
    Blocked: a migrated repos.yaml would change runtime behavior today, so the command cannot meet "preserves effective behavior" yet.

    The dependencies #9884 and #9907 have landed. But only fullsend poll and validation read the canonical model (config.ResolveEntityConfig). Every other consumer still reads raw tracker through IssueTracking(). After a Jira tracker is rewritten to connections.jira + entity_sources.jira:

    • fullsend repos install/upgrade treats Jira polling as off (effectiveJiraPollState, internal/repos/jira_poll.go:168) and removes the managed Jira poll workflow and its resources.
    • The poller ignores the migrated source. EntityConfig.JiraDiscoveryScope (internal/config/entity_sources.go) polls only translated sources, or explicit sources that an enabled agent binds in entities.source. The issue forbids creating those bindings.
    • fullsend issues Jira commands and their project defaults stop working (loadJiraTrackingSettings, internal/cli/tracker_client.go). Explicit configuration has no LegacyCommandDefault.
    • The run-start label is no longer added (addJiraRunLabel reads tracker.jira.run_label, internal/cli/run_jira_label.go).
    • Harness config.tracker and status/reconcile routing lose the tracker (internal/harness/forge.go:551, internal/cli/run.go, internal/cli/reconcilestatus.go).

    The v1 contract also says to deploy updated readers before writing entity-source fields. #9902 notes that migrating before its port "would make existing commands fail".

    To unblock:

    1. Land Port runtime and CLI tracker consumers to canonical connections #9902 (runtime/CLI consumers) and Port fullsend repos lifecycle to canonical tracker connections #9903 (fullsend repos lifecycle: poll resources, managed config, safety).
    2. Make the Jira poller keep polling a migrated entity_sources.jira without agent bindings, or relax the "no bindings" criterion here.
    3. Then re-dispatch /fs-code on this issue.

    Workflow run: https://github.com/fullsend-ai/fullsend/actions/runs/46435417887

    Retry with /fs-code if appropriate.

  18. csoceanu commented on Dec 1, 2026

    @csoceanu
    Contributor

    Concrete migration scenario to preserve existing behavior:

    A repository may already use legacy tracker.github.allowed_targets so agents such as triage or retro can create follow-up issues in specific external repositories or organizations. Before Jira is added through canonical named connections, migration must carry this GitHub creation policy forward unchanged.

    Please include a fixture verifying:

    • the input contains legacy tracker.github.allowed_targets with repository and organization grants;
    • the canonical GitHub connection contains exactly the same grants;
    • no target is removed or widened;
    • unrelated configuration is unchanged;
    • preview does not write; and
    • the first in-place migration succeeds atomically and a second run is a no-op.

    This issue only owns preservation during migration; Jira/GitHub coexistence belongs to the lifecycle and runtime work.

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

Metadata

Metadata

Assignees

Labels

featureready-for-agenttriagedtype/feature

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions