Skip to content

Port fullsend repos lifecycle to canonical tracker connections #9903

Todo

Description

@ifireball

Parent

#8418 — Implement ADR 0098 entity-first harness evaluation

Dependency

Depends on #9884 for the canonical model and #9907 for in-memory legacy compatibility loading.

What is missing

The fullsend repos lifecycle still uses legacy tracker values to decide poll-resource state, provision Jira secrets, render managed configuration, set fresh-install defaults, and enforce creation-policy safety. These paths must move together so an installation or upgrade does not leave workflows, credentials, or managed files using stale configuration.

What should happen

  • Install, upgrade, convergence, status, and managed-config writers consume the effective canonical configuration across config_base, defaults.config, forge-level config, and repository config, including values normalized in memory from legacy tracker by Implement entity-source configuration v1 as the canonical config model #9884.
  • Jira poll-resource enablement comes from the resolved Jira source's discovery setting, preserving existing event poll workflows and query/checkpoint behavior.
  • The existing default Jira credential flags and repo secret names remain unchanged for connections.jira; polling disabled or omitted continues to remove managed poll resources while retaining Jira credentials needed by other consumers.
  • Managed safety checks evaluate connection-scoped allowed_targets and endpoint identity without widening creation permissions.
  • Generated managed config and harness overlays represent provider-named connections and entity sources consistently. The effective-config view shows the canonical result for both explicit v1 config and legacy values normalized in memory, with the source layer/provenance visible; it must not require users to inspect raw tracker to understand effective settings and must not expose secret values.
  • Install and upgrade do not silently rewrite user configuration. The explicit in-place user-config migration command is tracked separately in Add an in-place migration command for legacy tracker configuration #9885.
  • The legacy host and credential resolution are preserved when translating old GitHub/GitLab tracker policy. A policy is never applied to a different host based only on provider kind.

Activity

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 8:58 AM UTC · Completed 9:00 AM UTC

    Commit: ce0d95c · View workflow run →

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

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

    @fullsend-ai-triage

    The scope here is clear, but work can't start until the canonical entity-source configuration model from #9884 lands. The fullsend repos install, upgrade, convergence, status, and managed-config writers are meant to consume that resolved model. Porting them now would mean building against a model that doesn't exist on main yet, or inventing a competing one.

    #9884 is still open. PR #9893 is in flight for it, but it describes itself as a partial implementation. Once #9884 is closed and its model is on main, this issue can be re-triaged and implemented.

    These neighbouring issues under #8418 cover different work and don't overlap with this one:

    When this is picked up, keep the managed safety checks and the legacy host and credential resolution aligned with the rules in #9884. Install and upgrade must not rewrite legacy config, because that is #9885's job.

    Blocked by:

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

    @fullsend-ai-triage

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

    Commit: 547a3c6 · View workflow run →

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

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

    @fullsend-ai-triage

    This issue is still blocked. The scope is clear, but the fullsend repos lifecycle can't be ported until the canonical entity-source configuration model from #9884 is on main.

    #9884 is still open. PR #9893 is the in-flight implementation for it. It is open and ready for review, but it describes itself as partial. It doesn't resolve this issue, and its "Not included" list leaves out work that belongs here. fullsend repos install still drives the Jira poll workflow from the legacy tracker.jira.poll.enabled setting, and translated legacy entries are visible in the effective-config view only through tracker. The per-host credential bindings are also not wired yet.

    Starting now would mean building against a model that isn't merged yet, or inventing a competing one. Once #9884 is closed and its model is on main, this issue can be re-triaged and implemented.

    Two constraints for whoever picks this up:

    The neighbouring issues #9885, #9886, and #9902 cover different work and don't overlap with this one.

    Blocked by:

    Blocked by:

  6. 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.08

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

    @fullsend-ai-triage

    This issue is still blocked. The scope is clear, but the fullsend repos lifecycle can't be ported until its upstream dependencies land.

    Starting now would mean building against a model that isn't on main, or inventing a competing one. Once #9884 and #9907 are closed and their changes are on main, this issue can be re-triaged and implemented.

    Constraints for whoever picks this up:

    The neighbouring issues #9885, #9886, and #9902 cover different work and don't overlap with this one.

    Blocked by:

    Blocked by:

  8. self-assigned this
    on Nov 30, 2026
  9. csoceanu commented on Nov 30, 2026

    @csoceanu
    Contributor

    /fs-triage

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

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 1:00 PM UTC · Completed 1:03 PM UTC

    Commit: cca0379 · View workflow run →

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

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

    @fullsend-ai-triage

    The earlier blockers are resolved, so this is ready for implementation. #9884 is closed and PR #9893 merged, and #9907 is closed with its normalization change on main. Nothing else is in flight for this issue.

    Where the work lands (confirmed to exist in this repo):

    • internal/repos/jira_poll.go: effectiveJiraPollState still keys poll state off the legacy tracker accessors. Move it to the resolved Jira source's discovery setting.
    • internal/cli/repos.go and internal/cli/repos_gitlab.go: poll-schedule convergence and the Jira flag help still reference tracker.jira.poll.enabled.
    • internal/config/managed_safety.go: the widening check is tracker-based. It should compare connection-scoped allowed_targets and endpoint identity.
    • internal/config/managed.go and internal/config/effective.go: managed-config rendering, fresh-install defaults and the effective-config view with provenance. effective.go already calls the canonical resolver, so check what Normalize legacy tracker config in memory to provider-named connections #9907 delivered before adding to it.

    Constraints to keep:

    Proposed test case:

    For explicit canonical Jira config and the equivalent legacy tracker.jira config,
    with discovery enabled / disabled / omitted:
    - poll resources are created or removed identically
    - Jira secret names and flags are unchanged; credentials are kept when polling is off
    - effective-config output shows canonical values and source layer, with no secret values
    - install/upgrade leave the user config file unchanged
    - an allowed_targets policy on host A is not applied or widened for a same-kind connection on host B
    

    This touches no workflow files. It is a refactor-style port rather than a bug fix, so it is not auto-promoted; a maintainer can dispatch the code agent.


    Labels: The blockers named in the prior triage (#9884 and #9907) are now closed, so the blocked label no longer applies. The work is now triaged and ready for implementation as an enhancement.


    Next steps:

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

    @csoceanu
    Contributor

    /fs-code

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

    @fullsend-ai-coder
    Contributor

    🤖 Finished Code · ✅ Success · Started 1:06 PM UTC · Completed 1:27 PM UTC

    Commit: cca0379 · View workflow run →

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

  15. added 3 commits that reference this issue on Dec 1, 2026
  16. ifireball commented on Dec 1, 2026

    @ifireball
    MemberAuthor

    /fs-triage what is left to do here?

  17. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    🤖 Finished Triage · ✅ Success · Started 12:21 PM UTC · Completed 12:23 PM UTC

    Commit: 66d7918 · View workflow run →

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

  18. added
    question
    and removed
    triaged
    on Dec 1, 2026
  19. fullsend-ai-triage commented on Dec 1, 2026

    @fullsend-ai-triage

    Most of this issue appears to have landed on main already, though no PR references it. The earlier /fs-code run reported success, but no PR or branch for #9903 exists. The earlier triage comment, which said the poll state and safety check still key off legacy tracker values, is out of date.

    Already in place (from reading main, not from running tests):

    • Jira poll state in internal/repos/jira_poll.go resolves through the canonical entity-source model and takes enablement from the resolved Jira source's discovery setting. Legacy tracker.jira is normalized in memory.
    • The managed safety check in internal/config/managed_safety.go compares connection-scoped allowed_targets by connection name, kind and endpoint. A policy is not carried over to a different host just because the provider kind matches.
    • The effective-config view in internal/config/effective.go shows connections, entity_sources and a normalized_tracker block with the layer that set it.
    • Install defaults skip the legacy tracker default when entity config is declared.

    Likely still open (not exhaustively verified):

    1. Provenance for explicit config. Only the translated legacy tracker entries carry a source layer. Explicit connections and entity_sources entries are shown without one. The issue asks for provenance on both.
    2. Fresh-install defaults. EnsureManagedConfigDefaults in internal/repos/managed_config_writeback.go still writes the default as a legacy tracker.<provider>.allowed_targets block. Check whether it should write canonical connections instead. If so, this must not conflict with the no-silent-rewrite rule, which is tracked in Add an in-place migration command for legacy tracker configuration #9885.
    3. Harness overlays. internal/harness/forge.go exposes only the legacy tracker mapping to overlay CEL. Provider-named connections and entity sources are not represented there.
    4. CLI help text and comments. The Jira flag help in internal/cli/repos.go and the comments in internal/cli/repos_gitlab_test.go and internal/repos/converge.go still lead with tracker.jira.poll.enabled.
    5. Explicit Jira connections. checkJiraPollScopeSupported rejects discovery through explicit Jira connections until credential binding exists, which is tracked in Provision credentials for named Jira connections #9904 and is separate from this issue.

    The open items are 1–4, and a maintainer should confirm that 2 and 3 are in scope. Items 1, 3 and 4 look like small follow-ups. Item 2 may overlap with #9885 and #9886, which are still open. If you want the remaining work implemented, reply with /fs-code and name the items you want. If you consider the issue done, say so and it can be closed.

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

Metadata

Metadata

Assignees

Labels

questiontype/enhancement

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions