ReadonlydirReadonlydisplayThe short name an interface shows. Presentation only: never in a URL, a
cache key or a commit. Optional so a driver or a test double need not say;
read it through displayNameOf, which falls back to the id's last segment.
ReadonlyformerNames this repository was reached by before its current id, so a link
made under one still resolves (§6.3, §6.4): the config's former_ids:,
and the ids a deployment used before #494 — the config name, the
directory's basename, and either with a -2 suffix. Absent means none.
ReadonlyframeworkResolved core-layer roots, cached for the life of this source and shared with any other consumer resolving paths against this same repo (the orchestrator's Engine, #95) so the layout is probed once.
ReadonlygitReadonlyidThe repository's id (docs/MULTI-REPO.md §6): <host>/<owner>/<name> from
its origin, or local/<name> when it has none. What URLs, cache keys and
logs carry. Two ids that differ only in case name the same repository;
compare them with sameRepositoryId.
ReadonlylocalTrue when this source is running in local-only mode — no push, no origin
fetch. A plain own field rather than a prototype accessor: sync.ts's
planSyncForSource test (task 02) stubs a source via
Object.assign(Object.create(getPrototypeOf(real)), real, { localOnly: true }),
which throws against a getter-only prototype accessor (no setter) but
assigns cleanly onto a plain own data property.
ReadonlymodeWhat this deployment may do here (§7.3), as resolved for this process:
a config entry's mode, except that a dispatch entry reads as
decide where no engine runs (ui, the CLI); a repository given by
--repo or the working directory is dispatch under up and decide
otherwise. Optional so a driver or a test double need not say, and
absent means no restriction — how the engine's own source is built.
A view source refuses every write (writeState, stageRun), which
is where the rule is enforced so that no caller can forget it.
ReadonlytemplatesContract templates of this repo, for R3 validation.
Seconds between remote syncs, when this source is configured to poll.
Whether a write from this source is pushed to origin, as resolved by
loadSources (TOPOLOGY.md §3.6) — false whenever localOnly is.
Commits on the run branch that origin does not yet have — unpushed writes (#149): the lineage Gatehouse renders and the lineage origin consumers see have silently diverged. Absent method or null result means "not knowable" (no origin tracking, remote-kind run) — display nothing, never zero.
Commits origin has that the local run branch does not (#99). Non-zero together with aheadOfOrigin means the branch has genuinely diverged — local-wins observation is then a deliberate choice that must be visible, never silent. Absent method or null means "not knowable".
The commit a branch points at now, or null when it names none. What the remote runner's intents are pinned to (runner-api.ts). Absent means the driver cannot resolve names.
The heartbeat an engine on this machine keeps under this clone's git directory (#100).
Most recent commit touching any of the given run-relative paths.
Most recent commit touching anything in the run directory except the given run-relative paths — the delta guard (#188): state.yaml alone moving (bookkeeping, a resolution note) is not "something landed".
The origin URL as git resolves it (git remote get-url origin, so an
insteadOf rewrite applies — the same string the id is derived from), or
null when there is nothing to link out to (#267). Local-only
short-circuits before asking git, the same way syncFromRemote
short-circuits before fetching: a local-only source has no origin by
designation, whatever a stale config line says.
Unified diff of the run branch against the default branch, runs/ excluded.
Every commit on the run branch touching the run's own directory, newest
first — the branch's own order, which is what "after" means when the
clocks that stamped the facts disagree (#346, branch-order.ts). One log,
no per-commit reads: stateHistory is the expensive walk, this is the
cheap index that places its commits alongside the artifact landings.
Optional, like the origin-divergence counts: a driver with no history to offer omits it, and its callers fall back to timestamps.
The only branch-minting path (plan ADR-3, R1): sequence per plan §"sources
deltas" —
0. mode precondition: a view source mints nothing (§7.3)
writeTreeWithBlob once per scaffold filePull remote state into this clone. Remote-tracking refs always update (listRuns already reads refs/remotes/*); existing local branches are fast-forwarded only when the same branch exists on origin, so a branch holding an unpushed decision commit is never clobbered — the decision's own push reconciles it. New remote branches are not materialized locally; writeState does that lazily on the first decision.
Local-only mode (AC2.4) short-circuits before any git invocation — the one guard covering both the engine's heartbeat sync and the server's interval sync.
The refs this source's views read, as comparable strings (#461): what a cache validates an entry against, and what decides whether a change is worth announcing. Optional: a driver that cannot say omits it, and its views are refreshed on a timer instead.
Watches this clone's ref storage (watch-refs.ts); the default debounce is 300 ms.
This clone's top directory, where gh and an engine run (RunSource.workingDirectory).
The single write path (rule R2): apply a mutation to state.yaml and commit
it to the run branch, compare-and-swap semantics. expectedTip extends
the CAS window back to the caller's read: when given and the branch no
longer points there, the write refuses with ref-moved — the machine
co-writer's derive-then-write guard (ORCHESTRATOR.md §4.4). Human
surfaces omit it: their reads happen inside this call.
options.identitypins the author of every write from this source — the v1 orchestrator's bot identity (ORCHESTRATOR.md §4.3). Human surfaces omit it and write asgit config user.name/email, so machine bookkeeping and human decisions stay distinguishable at a glance.options.frameworkPrefixoverrides the default.gatelineprobe location for a host integrated with a customgateline init --prefix(#94).options.localOnlyforces push off (belt-and-braces —loadSourcesalready resolvespush: falseunder local-only) and is whatsyncFromRemotereads to skip fetching origin entirely. Direct construction without this option behaves exactly as before it existed: no source-level auto-detect.idis taken as given (#494):loadSourcesderives it from the origin and checks it, and a direct constructor — the engine, a test — names its source as it likes.options.displayNamedefaults to the id's last segment;options.formerIdsto none.options.modeis whatloadSourcesresolved (§7.3). Aviewsource refuseswriteStateandstageRunbefore anything else; absent — the engine's own source, a test — refuses nothing, as before modes existed.