Repository navigation
Tracker links are read per org, and the operator's map links only the operator's repositories - #331
Merged
Merged
Conversation
9 tasks done
zlareb1
force-pushed
the
sec/tracker-links-per-org
branch
5 times, most recently
from
November 7, 2026 14:41
8f01d12 to
c2b03cc
Compare
… 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]>
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]>
…he org 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
force-pushed
the
sec/tracker-links-per-org
branch
from
November 7, 2026 17:00
ed14791 to
fe94708
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
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_sourceapplies 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_JSONlinks only the operator's own repositories (LOOM_CODE_REPOS_JSONorLOOM_CODE_REPO); a self-service repository is linked by its maintainer. A branch added withcode.repo.add_branchfrom 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_keyread everyqa_bindingrow ofcode_index_stateacross 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 inLOOM_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:code.repos(to its admins) and in the token setup's restricted-tracker walk.code.repo.set_sourcewith[]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 iscode.repo.set_sourcelinking any standard tracker without the tracker's admin; #310 (_tracker_or_refuseneeds 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_keysreads theqa_bindingandqa_branch_ofrows of every org in one statement and returns{key: {(org, namespace): value}}; the snapshot,override_for,tracker_namespaces_for,tracker_namespace_forandcode_namespaces_linkingall 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.(org, namespace)is inoperator_repositories(), the entries ofconfigured_repos()withsource == "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 throughcode.scip_ingestor 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 withcode.repo.set_sourceonce 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_branchregisters 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 aqa_branch_ofrow ofcode_index_state(no schema change; N-1 ignores the key): the source, or the source's ownqa_branch_ofwhen 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 noqa_branch_ofrow, 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 besideqa_binding, and a branch with noqa_bindingrow 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 setset_registry_reposbuilds with each registry snapshot): aqa_branch_ofrow 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 ownqa_bindingrow 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 ownqa_bindingrow, 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 ofoperator_repositories(). Both reads come first, the copy is written next andqa_branch_oflast, 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 isopenfor a public source andapprovalotherwise, 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_sourcenames those branches in itswarningwhen 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_roottesttracker_namespaces_fordoes: registered, naming it inqa_branch_of, with noqa_bindingof their own and not operator entries themselves), andtest_a_link_set_on_an_operator_repository_later_reaches_its_branchespins it. That is the repository-wide reading of a tracker (numbers are the repository's), as the glob already gave branches by name onmain; 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; aqa_bindingrow copied before the failure stays, and wins over following anyway. Its maintainer sets the rest withcode.repo.set_source.code.repo.removeempties whichever of the namespace'sqa_branch_ofandqa_bindingrows 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 emptyqa_bindingreads 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 withcode.repo.set_source.code.repo.addandcode.repo.add_branch, in_register, before the entry is visible) empties aqa_branch_oforqa_bindingrow 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 emptiedqa_bindingreads 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, socode.repo.set_sourcecounts 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 toLOOM_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 whenforget_linksran 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_linksand_inherit_tracker_links, the repository's own stored links incode.repo.set_source, every forced refresh, and the first refresh afterforget_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'sqa_branch_ofand stays within that interval.code_tables_keyed_by_namespacelists every non-viewloom.code_*table withorgandnamespacecolumns, which includescode_index_state, and the census names it as a step-only table. No othercode_index_statewriter produces these keys:taxonomy_state_keyalways starts withtaxonomy.v2@.operator_repositories()reads the repository list once.code_namespaces_linkingbuilds it once for its whole list,tracker_namespaces_fortakes it as an optional argument, andreadable_tracker_namespacesbuilds it once per duplicate check and passes it to every tracker's gate (operator=Nonereads it in the gate), thecode.reposlisting binds it once withfunctools.partial, and the token setup's restricted-tracker walk reads it once for every name, so a check no longer re-parsesLOOM_CODE_REPOS_JSONper (code namespace, tracker) pair; the requested-names path builds it once for every name (authorized_tracker_namespaceandtracker_namespace_fortake it too), andcode_namespaces_linkingreturns at once for an empty list.dupcheck_fanout._may_read_tracker) matched the operator's globs itself besidecode_namespaces_linking; it now usescode_namespaces_linking(org, ...)alone, so it follows the same rules, and a maintainer's cleared link is no longer reopened by a glob there.code_index_staterows already carryorg, 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 noqa_branch_ofrow, so it gets no glob link after the rollout until its maintainer links it withcode.repo.set_source.Scope and risk
binding.py,dupcheck_fanout.py,CodeRepo.state_values_for_keys(replacingstate_values_for_key) with the reads protocol,CodeRepo.get_state_or_none,code.repo.add_branch(theqa_branch_ofrow and the copied source row),code.repo.remove(emptying both rows under the lease), the one-line caller changes, the dashboard's Trackers confirmation showingset_source's warning (frontend/src/views/Code.tsx, tested inCode.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 withcode.repo.set_source(a link the repository's own row does not hold is a new link), or the operator listing the namespace inLOOM_CODE_REPOS_JSON. That includes every self-service branch of an operator repository added before this change: it has noqa_branch_ofrow, so it loses its glob link at upgrade.Not covered:
code.repo.addof 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
LOOM_TRACKER_CODE_NAMESPACE_BINDINGS_JSONneeds a link from its maintainer (code.repo.set_sourceor 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 withcode.repo.set_source. Every self-service branch of an operator repository added before this change has noqa_branch_ofrow and loses its glob link at upgrade. To find them: the registry entries (code.repos, sourceregistry) in the same org and repository as an operator entry. To restore one, an admin of the tracker links it withcode.repo.set_source, or the operator lists it inLOOM_CODE_REPOS_JSON; a repository maintainer who is not the tracker's admin is refused, as for any new link.qa_bindingrow: the old links after a removal on build N-1, none after one on N. Registration clears stale rows only forcode.repo.addandcode.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 withcode.repo.set_source.code.repo.set_source, or the old namespace's purge deletes the rows (and with them the new branch'sqa_branch_of, so it reads nothing either); lettingset_sourcedrop the cleared row so the branch follows its root again would need a new request field, so it is not part of this change.qa_branch_ofrow, 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 copiesqa_branch_of=Ras its own row, which the purge does not delete; that branch keeps following R until its maintainer clears it withcode.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.Tests
tests/unit/test_tracker_links_per_org.py(also: the registry set follows each snapshot; a refresh read in flight acrossforget_linkskeeps 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, intracker_namespaces_forandcode_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 (sourceconfig,access_sourceregistry).tests/unit/test_tracker_dupcheck_fanout.pyadds four: a maintainer-cleared link and a self-service repository matching the glob each leave the glob's tracker out ofreadable_tracker_namespaces, and one check callsconfigured_reposonce 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.pyadds tests, with the fixture recording each state row's org: a branch of an operator repository writes only itsqa_branch_ofrow, 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 noqa_bindingand its branch reads nothing; a failedqa_bindingwrite 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 aqa_branch_ofrow 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 noqa_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.pychecks 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 noqa_bindingrow gets none;tests/unit/test_code_state_values_for_keys.pychecks 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.pyalso checks that a branch follows only an operator source and that its own row wins, and another that aqa_branch_ofrow 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 everytests/unit/test_code_*andtest_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_registerpiecemeal 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 typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/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).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code