fix: read paths never fetch — info and session-start hook go purely local - #35
Merged
Merged
Conversation
…ocal - orbcli#29's touchpoint fetch made every `orbit info` and every session start with worktrees pay N serial remote round-trips (default branch + each tracked branch, one fetch each), multiplying with scoped-branch residue; measured baselines: `orbit info` 4.83s wall / ~0.4s CPU on a repo with 4 tracked branches, 19.7s on a pool carrying more scoped-branch residue, `context --startup` 24.5s with two repos added - ruling: without an async daemon, auto-fetch on a main path taxes a synchronous caller for advisory freshness — low friction outranks it (cf. VSCode's background autofetch never blocking startup); auto-fetch may return only off the main path - info and the context --startup reignite block drop the touchpoint fetch and keep config maintenance (local writes); remoteAhead now reads last-fetched refs, refreshed by sync / prune or the user's own fetch/pull; fetching touchpoints narrow to sync / prune - skill contract (SKILL.md + CONSTRAINTS.md): steps 3/5 state the last-fetched-refs semantics; cold-start sync becomes a two-trigger rule (remoteAhead > 0, or a stale last fetch when the task depends on fresh code) - spec-docs, USAGE, ROADMAP, CHANGELOG and the two info-fetch bats cases sync to the new contract; full suite 367/367 on latest main Signed-off-by: Zheng Weihao <zheng-weihao@outlook.com>
zheng-weihao
force-pushed
the
info-no-fetch
branch
from
August 13, 2026 15:19
bcf46e4 to
f244d1b
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.
What changed
orbit infoand theorbit context --startupreignite block no longer fetch — read paths are purely local again (zero network).#29's touchpoint fetch made every
infoand every session start with worktrees pay N serial remote round-trips (the default branch plus each tracked branch, one fetch each), multiplying with scoped-branch residue. Measured:orbit info4.83s wall / ~0.4s CPU → 0.51s on a repo with 4 tracked branches; 19.7s → 0.55s on a pool carrying more scoped-branch residue;context --startup24.5s → 1.8s with two repos added.Ruling: without an async daemon, auto-fetch on a main path taxes a synchronous caller for advisory freshness — low friction outranks it (cf. VSCode's background autofetch never blocking startup). Auto-fetch may return only off the main path.
orbit_infoandorbit_context_reignite(text + JSON) droporbit_touchpoint_fetch, keeping config maintenance (local writes); fetching touchpoints narrow toorbit sync/orbit pruneSKILL.md+CONSTRAINTS.md) steps 3/5 state the last-fetched-refs semantics; cold-start sync becomes a two-trigger rule (remoteAhead > 0, or a stale last fetch when the task depends on fresh code)Checklist
shellcheck orbit.sh install.shpassesbats tests/passes (367/367, rebased on latest main incl. fix: prune pool-maintenance reaps live unborn-branch upstream config #33/docs: auto-approve tier contract — judgment-based restatement, framework-neutral done/new #34)tests/18_sync.bats)