You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: git-sync write access is never validated — a read-only credential fails silently forever (ls-remote and the REST permissions.push field both lie) #2107
Nothing on the platform validates that an agent's git credential can write. A credential with
read-only scope fails every sync forever, and every health surface reports the agent as fine.
Observed
An agent hard-failed 64 consecutive auto-sync cycles from the moment it was created, with
9 unpushed commits, and the only surface that ever noticed was a single operator-queue item.
last_sync_status : failed
consecutive_failures : 64
last_error_summary : remote: Write access to repository not granted.
The credential is a fine-grained PAT whose Contents permission is read-only on that repo.
Why every existing check passes
git ls-remote probes succeed. Read access short-circuits before write is ever exercised, so
a reachability probe is not an access probe.
The REST API says push: true.GET /repos/{owner}/{repo} returns a permissions object
reflecting the authenticated user's role on the repo, not the token's granted permission set.
For a fine-grained PAT those are different things, and the field reads like proof of write access
while the push returns 403. Anything that checks permissions.push will be wrong here.
The compatibility checker has no push check — the git-related checks read .gitignore text.
Sync health reports the failure count but nothing acts on it, so 64 identical failures produce
the same signal as one.
Suggested fix
A write-access probe that exercises the actual operation, at agent creation and in the sync loop's
health reporting:
--dry-run performs the full auth/permission negotiation and creates nothing. Failing it at
creation time turns "silently broken forever" into "broken before the agent ever ran". A compat
catalogue check would surface the same thing on the panel.
Related: nothing distinguishes "sync failing for 1 cycle" from "sync has never once succeeded".
The second is a provisioning bug and deserves a different signal from a transient failure.
Operator ruling (relayed by corbin): the repository is the agent; the container is a cache of it — and a working agent freezes on >24h divergence, not only after three failed pushes. Why this one moves: with auto-sync and freeze defaulted on for agents created as agents (abilityai/trinity-enterprise#705), a read-only credential would freeze an agent's schedules for what looks like sync failure — named blocker 3 of 3 on that issue. Membership label project:tandem added; the full set is listed on #3010 / #3011.
Activity
vybe commentedon Sep 24, 2026
Re-prioritised P2 → P1 · Trinity 1.0 · 2026-09-24
Operator ruling (relayed by corbin): the repository is the agent; the container is a cache of it — and a working agent freezes on >24h divergence, not only after three failed pushes. Why this one moves: with auto-sync and freeze defaulted on for agents created as agents (abilityai/trinity-enterprise#705), a read-only credential would freeze an agent's schedules for what looks like sync failure — named blocker 3 of 3 on that issue. Membership label
project:tandemadded; the full set is listed on #3010 / #3011.dolho commentedon Sep 25, 2026
/claim
github-actions commentedon Sep 25, 2026
Claimed by @dolho. Label
status-in-progressadded.Next steps:
feature/2107-<short-slug>Fixes #2107fix(git-sync): keep the probe's git stderr out of the platform log (#…
fix(git-sync): validate push access where GitHub enforces it (#2107) (#…
fix(git-sync): validate push access where GitHub enforces it (Ability…
feat(git-sync): an agent created as an agent owns its repository (tri…