Skip to content

Tracker links are read per org, and the operator's map links only the operator's repositories - #331

Merged
zlareb1 merged 22 commits into
mainfrom
sec/tracker-links-per-org
Nov 7, 2026
Merged

zlareb1 merged 22 commits into
mainfrom
sec/tracker-links-per-org

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in a release)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

A repository's tracker links are read per org: a link set with code.repo.set_source applies only to the repository in the org that set it, never to another org's code namespace of the same name. LOOM_TRACKER_CODE_NAMESPACE_BINDINGS_JSON links only the operator's own repositories (LOOM_CODE_REPOS_JSON or LOOM_CODE_REPO); a self-service repository is linked by its maintainer. A branch added with code.repo.add_branch from an operator repository reads that repository's links.

Why

The tracker-link snapshot (server/tracker/app/binding.py) was keyed by code namespace name alone. CodeRepo.state_values_for_key read every qa_binding row of code_index_state across orgs into {namespace: value}, so rows from two orgs with the same namespace name collided and the last row read won. Code namespace names are derived from the repository and branch, so two orgs indexing repositories of the same name share one. Tracker namespaces exist only in LOOM_TRACKER_ORG, and the read gate resolves a linked tracker in the caller's org, so another org's readers could not read the linked tracker through the collision. What crossed orgs:

  • The link names: another org's repository of the same name reported the tracker org's links in code.repos (to its admins) and in the token setup's restricted-tracker walk.
  • Clearing: code.repo.set_source with [] needs no tracker namespace, so an admin of a same-named repository in any org wrote an empty row that could replace the tracker org's links for its repository.

The read exposure was the operator map. It has no org and matched any code namespace by glob, including one added through self-service code.repo.add. A repository in the tracker org whose name matched a glob the operator wrote for its own repositories got that link, and its readers read the linked standard tracker through it. The other path to the same read is code.repo.set_source linking any standard tracker without the tracker's admin; #310 (_tracker_or_refuse needs ADMIN on the tracker for a new link) closes it and is not repeated here. The two changes together close the read exposure.

Design

  • CodeRepo.state_values_for_keys reads the qa_binding and qa_branch_of rows of every org in one statement and returns {key: {(org, namespace): value}}; the snapshot, override_for, tracker_namespaces_for, tracker_namespace_for and code_namespaces_linking all take the org. Every caller already had the org from the request or the indexed entry: resolve_binding, authorized_tracker_namespace(s), code.repo.set_source (one line, the previous links it reports), code.repos, the token setup's restricted-tracker walk, the pack and brief tracker sections, and the risk fit.
  • The operator map applies only when (org, namespace) is in operator_repositories(), the entries of configured_repos() with source == "config": an operator entry, including one whose access a maintainer changed. A self-service entry (source == "registry"), or a name with no entry in that org, gets nothing from the map. That includes a namespace written only through code.scip_ingest or another writer op with no repository entry: it is not operator-declared, and a writer could pick a name that matches a glob, so it loses a glob link; its admin can link it with code.repo.set_source once it is a registered repository. This fails closed: a namespace the configuration does not know is not linked. A requirement that each glob name its org was the other option; it changes the setting's format for every deployment and still links a self-service repository in the operator's own org, so it was not taken.
  • code.repo.add_branch registers the new branch as a registry entry, which the operator map does not link by name. The branch records the repository it descends from in a qa_branch_of row of code_index_state (no schema change; N-1 ignores the key): the source, or the source's own qa_branch_of when the source is itself a self-service branch, so a branch of a branch names the root. The row is written only when that root is an operator entry at add time: a branch of a self-service repository gets no qa_branch_of row, so if the operator later configures the self-service root's name, its branch, whose admin never needed the operator entry's admin, does not start reading the map. An operator source is always its own root, whatever row a removed namespace of its name left there. The snapshot reads those rows beside qa_binding, and a branch with no qa_binding row of its own whose root is an operator entry reads the root's links at read time (one level, same org). Only a branch with a self-service entry follows its row (repos.registry_namespaces(), a set set_registry_repos builds with each registry snapshot): a qa_branch_of row a removal, a late copy or a switched-off self-service plane left behind is not followed. A glob the operator changes or removes reaches the branch as it reaches the repository, and so does a maintainer's link set or cleared on the operator repository later. An operator source's own qa_binding row is never copied, because a copy would win over following and a later clear there would not reach the branch. For any other source, its own qa_binding row, read from the store rather than the snapshot (get_state_or_none, which tells no row from an empty one), is copied as the branch's as it is, a cleared ("") row included. Whether the source and the root are operator entries comes from one read of operator_repositories(). Both reads come first, the copy is written next and qa_branch_of last, so a failure at any step leaves the branch following nothing rather than the operator root: a branch of a branch whose maintainer cleared it stays cleared instead of following the root again. No row writes nothing. At add time no reader gains a tracker: the caller is admin on the source and could grant the same reads there, and the branch keeps the source's classification, its join policy is open for a public source and approval otherwise, and its admin approves every joiner. Because the branch reads its operator root's links when read, a link a tracker admin sets on the root later also reaches the branch's readers, whose joins the branch's admins decide; the tracker overview's delegation paragraph says so, code.repo.set_source names those branches in its warning when it sets links on such a repository (the dashboard's Trackers confirmation shows that warning and stays on screen long enough to read it, linkedToast) (binding.branches_following, which applies the same _followed_root test tracker_namespaces_for does: registered, naming it in qa_branch_of, with no qa_binding of their own and not operator entries themselves), and test_a_link_set_on_an_operator_repository_later_reaches_its_branches pins it. That is the repository-wide reading of a tracker (numbers are the repository's), as the glob already gave branches by name on main; copying the root's links at add time instead would leave a later clear on the root unable to reach the branch. The branch is registered before these writes; a failed write is logged and leaves the branch following nothing rather than the operator root; a qa_binding row copied before the failure stays, and wins over following anyway. Its maintainer sets the rest with code.repo.set_source.
  • code.repo.remove empties whichever of the namespace's qa_branch_of and qa_binding rows holds a value under the document-source lease, before it deactivates anything: a removal refused for the lease writes nothing, and a failed write stops the removal while it can be retried. The purge that deletes the rows is detached, and a namespace registered again under the same name before it runs would otherwise follow the removed branch's root or links. A row that is absent stays absent: an empty qa_binding reads as cleared, so writing one for a namespace that never had links would hold back the operator map from an operator entry configured under that name before the purge runs. A removal that fails after the clear leaves the repository unlinked until a retry, or until an admin of the tracker links it with code.repo.set_source.
  • Registering a namespace (code.repo.add and code.repo.add_branch, in _register, before the entry is visible) empties a qa_branch_of or qa_binding row a removed namespace of the same name left: a removal on build N-1 writes no clear, and the purge is detached. A fresh name has no rows and writes nothing. An emptied qa_binding reads as cleared, so a branch of an operator repository re-added under the name of a removed namespace that had a maintainer's links, before its purge runs, reads no tracker until an admin of the tracker links it (fail closed): the emptied row holds none of the root's trackers, so code.repo.set_source counts them as new links. Removal and registration share one helper (_empty_tracker_links). Other processes (other replicas, and other web workers or the worker process on the same host) keep the snapshot they read for up to LOOM_CODE_REPOS_REFRESH_SECONDS (30 by default), the same bound every link and access change (code.repo.set_source, code.repo.set_access) already has: a name removed on one replica and re-added on another can read the removed namespace's links on a third replica for at most that long. Closing it would need a cross-replica signal or a per-row age check against the registry entry, which is not part of this change; the process that registers drops the name from its own snapshot (binding.forget_links), so a removal on another replica, whose rows are emptied or already purged, leaves no old row there. A snapshot refresh whose read was in flight when forget_links ran keeps nothing and resets its timestamp, so the next call reads again and the old rows cannot come back; a forced refresh, whose caller reads the snapshot at once, reads once more instead. The link reads that follow a write read their own writes (own_write_reads, as other point reads after a write do, since the client pool spans ClickHouse replicas): the stale-row check and the source reads in _empty_tracker_links and _inherit_tracker_links, the repository's own stored links in code.repo.set_source, every forced refresh, and the first refresh after forget_links. Every reader of the links refreshes the snapshot first (cached for the refresh interval): the pack and review-brief tracker sections, the risk fit and the token setup's restricted-tracker walk now do too, so a process that has served no admin op reads a branch's qa_branch_of and stays within that interval.
  • The purge covers these rows: code_tables_keyed_by_namespace lists every non-view loom.code_* table with org and namespace columns, which includes code_index_state, and the census names it as a step-only table. No other code_index_state writer produces these keys: taxonomy_state_key always starts with taxonomy.v2@.
  • operator_repositories() reads the repository list once. code_namespaces_linking builds it once for its whole list, tracker_namespaces_for takes it as an optional argument, and readable_tracker_namespaces builds it once per duplicate check and passes it to every tracker's gate (operator=None reads it in the gate), the code.repos listing binds it once with functools.partial, and the token setup's restricted-tracker walk reads it once for every name, so a check no longer re-parses LOOM_CODE_REPOS_JSON per (code namespace, tracker) pair; the requested-names path builds it once for every name (authorized_tracker_namespace and tracker_namespace_for take it too), and code_namespaces_linking returns at once for an empty list.
  • The duplicate check's tracker gate (dupcheck_fanout._may_read_tracker) matched the operator's globs itself beside code_namespaces_linking; it now uses code_namespaces_linking(org, ...) alone, so it follows the same rules, and a maintainer's cleared link is no longer reopened by a glob there.
  • Storage is unchanged: code_index_state rows already carry org, and build N writes the same rows. Until a rolling upgrade finishes, N-1 replicas keep the old reads: links keyed by name across orgs, and the operator map over every namespace. A request that lands on an N-1 replica answers as before, so the fix holds once every replica runs N. A branch added through an N-1 replica during the rollout writes no qa_branch_of row, so it gets no glob link after the rollout until its maintainer links it with code.repo.set_source.

Scope and risk

binding.py, dupcheck_fanout.py, CodeRepo.state_values_for_keys (replacing state_values_for_key) with the reads protocol, CodeRepo.get_state_or_none, code.repo.add_branch (the qa_branch_of row and the copied source row), code.repo.remove (emptying both rows under the lease), the one-line caller changes, the dashboard's Trackers confirmation showing set_source's warning (frontend/src/views/Code.tsx, tested in Code.linkedToast.test.ts), the setting's comment with its regenerated reference, schema and example, the tracker overview and the code-index architecture page, and the tests. No extractor-stamped module is touched, so nothing re-ingests. A self-service repository, or a namespace with no repository entry, that a deployment's glob linked before loses that link; restoring it takes an admin of the tracker with code.repo.set_source (a link the repository's own row does not hold is a new link), or the operator listing the namespace in LOOM_CODE_REPOS_JSON. That includes every self-service branch of an operator repository added before this change: it has no qa_branch_of row, so it loses its glob link at upgrade.

Not covered: code.repo.add of a repository the operator configured can mirror the creator's admin grant onto the operator entry through maintainer sync; that is handled in a separate pull request.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: a self-service repository that relied on a glob in LOOM_TRACKER_CODE_NAMESPACE_BINDINGS_JSON needs a link from its maintainer (code.repo.set_source or the repository card's Trackers section). A branch of a self-service repository gets that repository's maintainer link when it is added; a link set on the repository later is set on the branch by an admin of the tracker with code.repo.set_source. Every self-service branch of an operator repository added before this change has no qa_branch_of row and loses its glob link at upgrade. To find them: the registry entries (code.repos, source registry) in the same org and repository as an operator entry. To restore one, an admin of the tracker links it with code.repo.set_source, or the operator lists it in LOOM_CODE_REPOS_JSON; a repository maintainer who is not the tracker's admin is refused, as for any new link.
  • Not cleaned up: an operator entry configured under the name of a removed self-service namespace, before that namespace's purge runs, reads the removed namespace's qa_binding row: the old links after a removal on build N-1, none after one on N. Registration clears stale rows only for code.repo.add and code.repo.add_branch; a configuration change does not, and the purge removes the row. An operator who reuses a removed name waits for the purge, or a maintainer of the entry sets its links with code.repo.set_source.
  • A branch of an operator repository re-added under the name of a removed namespace that had a maintainer's links, before its purge runs, reads no tracker until an admin of the tracker links it with code.repo.set_source, or the old namespace's purge deletes the rows (and with them the new branch's qa_branch_of, so it reads nothing either); letting set_source drop the cleared row so the branch follows its root again would need a new request field, so it is not part of this change.
  • During the rollout only: a branch of an operator repository added on N, removed through an N-1 replica (which clears no row) and registered again under the same name through an N-1 replica (which empties no stale row) is a registered self-service entry with a live qa_branch_of row, so N replicas follow the operator root for it until the old namespace's detached purge deletes the row. It needs both steps on N-1 replicas. It lasts until that purge for the re-added namespace itself, but a branch added from it on N in that window copies qa_branch_of=R as its own row, which the purge does not delete; that branch keeps following R until its maintainer clears it with code.repo.set_source. The branch's admin is admin on the re-added namespace, which reads R's trackers in that window, so no reader gains a tracker its source did not already show.
  • Rollback: revert.

Tests

tests/unit/test_tracker_links_per_org.py (also: the registry set follows each snapshot; a refresh read in flight across forget_links keeps nothing and the next call reads again; the pack, brief, risk-fit and token-setup readers refresh before their lookup; main's lookups take no org, so the per-org cases cannot pass there): a link in one org does not apply to the other org's namespace of the same name, in tracker_namespaces_for and code_namespaces_linking; an empty link in one org leaves the other org's link; the stored rows keep their org; the operator's glob links the operator's entry, not a self-service repository whose name matches it, nor a same-name namespace in an org with no entry. A fifth test keeps the glob link of an operator entry whose access a maintainer changed (source config, access_source registry). tests/unit/test_tracker_dupcheck_fanout.py adds four: a maintainer-cleared link and a self-service repository matching the glob each leave the glob's tracker out of readable_tracker_namespaces, and one check calls configured_repos once for every tracker and code namespace it gates (test_one_check_reads_configured_repos_once_for_every_tracker), and once for every requested name (test_requested_names_read_configured_repos_once). tests/unit/test_code_repo_self_service.py adds tests, with the fixture recording each state row's org: a branch of an operator repository writes only its qa_branch_of row, reads the glob's tracker through it in its own org and not in another, and loses it when the operator removes the glob; a self-service source's maintainer link is copied; a cleared operator source copies no qa_binding and its branch reads nothing; a failed qa_binding write leaves the branch registered with no link rows; a failed read of a branch source's own row leaves the new branch off the operator root; a cleared self-service source copies its empty row; an operator source holding a qa_branch_of row of its own is still the new branch's root; a branch or a repository re-added under a removed name, whose old rows are still there, empties them and never reads the old link; a fresh name writes no clear; a branch of an unlinked repository copies no qa_binding; a link on an operator source is followed, not copied, so clearing it there leaves the branch with none; a branch of a branch names the root repository; a branch of a branch whose maintainer cleared it copies the empty row and reads nothing. tests/unit/test_code_repo_remove.py checks that both rows are emptied before the sources, the registry row and the purge saga are touched, that a removal refused for the lease writes no link row, that a failed link clear stops the removal before any source, registry row or purge is touched, and that a namespace with no qa_binding row gets none; tests/unit/test_code_state_values_for_keys.py checks that one refresh reads both keys in one statement and fills both snapshots, so a branch follows its operator root and a maintainer's row answers. tests/unit/test_tracker_links_per_org.py also checks that a branch follows only an operator source and that its own row wins, and another that a qa_branch_of row with no self-service entry beside it is not followed, self-service off included. A self-service test re-adds a name after a removal on another replica, with its rows emptied and with them purged, and checks that the snapshot keeps no old row. The self-service duplicate-check test configures an operator branch the glob links beside the readable registry entry, so it fails without the source filter. The existing binding, multi-binding, binding-op, duplicate-check fan-out, repository-access, source-form, dashboard listing, restricted-repository token and brief tests now pass the org and configure the operator's entries the map links. With every tests/unit/test_code_* and test_tracker_* file, the other touched tests, the settings, doc-link, public-copy, agent-instruction and package-contract tests, 4755 tests pass on the first commit; on the head, every unit file that touches tracker links, code index state or repository registration passes (5559 tests); the one file that stubs _register piecemeal now stubs the stale-row check too.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. I traced the snapshot from the stored rows to each reader and read the diff and its tests.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 22 commits November 7, 2026 16:48
… operator's repositories

The link snapshot was keyed by code namespace name across orgs; it is now read
and looked up by (org, namespace). LOOM_TRACKER_CODE_NAMESPACE_BINDINGS_JSON
applies only to repositories the operator configured. A branch added with
code.repo.add_branch records its root in a qa_branch_of row and follows an
operator root's links when read; any other source's own qa_binding row is
copied. code.repo.remove empties both rows under the lease, and registering a
namespace drops the rows a removed one of the same name left. The duplicate
check, the code.repos listing and the token setup read the repository list once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…shot test seeds another org's row

The operator-map case configures (org, code namespace) as an operator entry and
asserts the map's link is in force before showing it still counts as new; the
deployment-wide snapshot case seeds a row of another org.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…freshes on an emptied row

An empty qa_binding reads as cleared, so writing one for a namespace that never
had links hid the operator's map from a namespace of the same name until the
purge. Registering a name now refreshes the snapshot whenever a row exists,
emptied or not, since another replica's removal empties the store, not this
replica's snapshot.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…nd a branch row is followed only for a registered branch

A re-add after another replica's removal and purge found no rows, skipped the
refresh and kept the old qa_branch_of in this replica's snapshot. Registration
now refreshes every time and drops the name, so a failed refresh leaves no old
row either. A qa_branch_of row with no self-service entry beside it is no
longer followed. Removal and registration share one helper; binding's
__all__ names the keys and operator_repositories; the state-values test file
is named after state_values_for_keys.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ied link is restored by the tracker's admin

A branch lookup scanned the whole registry list on every call; it now reads a
set built once per registry snapshot. An emptied qa_binding holds none of the
root's trackers, so code.repo.set_source counts them as new and needs the
tracker's admin: the docs say so. The setting comment is two lines, the
cleanup helper's docstring keeps the rule with the reasons at its call sites,
and the architecture paragraph is split in three.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…egistry set is built by its writer

Registration and removal drop the name from the snapshot without a forced
cross-org refresh, which added nothing. A refresh whose read started before
forget_links no longer puts the emptied rows back: it keeps nothing and the
next call reads again. set_registry_repos builds the registry namespace set,
and the tests set the registry through it. The record contract says the
operator map links only the operator's repositories.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ed refresh reads again on the next call

The pack and review-brief tracker sections, the risk fit and the token
setup's tracker walk read the link snapshot without refreshing it, so a
process that served no admin op never saw a branch's qa_branch_of and kept
whatever it loaded last. Each now refreshes first (cached for the refresh
interval). A refresh discarded by forget_links resets its timestamp. The
tests set the registry through set_registry_repos, and tracker_namespaces_for
reads override, branch, operator map in that order with one import.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…des returns nothing

The reader test now runs the real refresh over a fake store and checks that
the pack, brief, risk-fit and token-setup readers each find a registered
branch's operator tracker. refresh_overrides no longer copies the whole
snapshot for callers that drop it. The setting comment says the globs match
the operator's repositories and a branch reads its repository's links; the
duplicate-check gate docstring says who reads the operator set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…s drops an unreachable except

refresh_overrides never raises, so the try around it in code.repos is gone.
resolve_binding builds the operator set once and passes it to both lookups;
authorized_tracker_namespaces takes it as authorized_tracker_namespace does.
Test stubs of refresh_overrides return None, and the shard weights name the
renamed state-values test file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…shot clock starts unread

A branch of a self-service repository wrote qa_branch_of naming its source,
so if the operator later configured the source's name the branch started
reading the map, its readers approved by an admin who never needed the
operator entry's admin. The row is now written only when the root is an
operator entry at add time; a self-service root's link is the copied row.
The snapshot timestamp starts at -inf and a discarded refresh resets to it,
so the next call reads whatever the monotonic clock reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
… is tested for absent versus empty

An absent qa_binding must stay absent on removal, so the store read that
tells None from "" now has its own test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…s the registered-branch condition

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…readers of its branches

A branch reads its operator root's links when read, so a link a tracker
admin sets on the root later reaches the branch's readers too, whose joins
the branch's admins decide. The tracker overview's delegation paragraph and
the set_source refusal text say so, and a test pins it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…ts branches through a tracker admin, and a test names its operator source

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…the branches its links reach

The client pool spans ClickHouse replicas, so a read right after a write can
return the old row: a link a maintainer cleared could be copied to a new
branch, or count as already held in set_source. The stale-row check, the
source reads of add_branch, set_source's stored links, every forced refresh
and the first refresh after forget_links now read with own_write_reads. The
set_source success warning names the registered branches that read the
links too (binding.branches_following), instead of the refusal text only a
refused caller saw. Removal is tested to drop the name from the snapshot,
and the architecture page says the map reaches an operator entry of the
same name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…acker_namespaces_for decides

A branch with its own qa_binding, or one whose root left the operator's
configuration, does not read the root's links, so the set_source warning no
longer names it. The refresh's two read paths are one call under a
conditional context, the warning is computed before the return, set_source's
sequential read is asserted, and a doc line is rewrapped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…nd branches_following skips a branch the operator configured

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…eads again when forget_links discards it

The Trackers section's confirmation now carries the server's warning, so a
maintainer linking a tracker on an operator repository from the card learns
which branches read it too. A forced refresh discarded by a concurrent
forget_links reads once more, so set_source's previous links and branch
list are current. The warning field's comment names both clauses; the
snapshot is per process, as the docs now say; the consistency test links
the root so it compares real links; __all__ is in order.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…g stays on screen long enough to read

tracker_namespaces_for and branches_following share _followed_root, so the
set_source warning cannot drift from the read. The dashboard's link
confirmation with a warning is an info toast that stays 15 s, built by
linkedToast and tested. _empty_tracker_links reads under one own_write_reads
block; binding's __all__ lists override_for and refresh_overrides; a test
pins that a failed link clear stops a removal before it deactivates
anything.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…hey mean

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 force-pushed the sec/tracker-links-per-org branch from ed14791 to fe94708 Compare November 7, 2026 17:00
@zlareb1
zlareb1 merged commit 5b851b2 into main Nov 7, 2026
36 checks passed
@zlareb1
zlareb1 deleted the sec/tracker-links-per-org branch November 7, 2026 19:55
@zlareb1 zlareb1 mentioned this pull request Nov 12, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant