Skip to content

Latest commit

 

History

History
303 lines (262 loc) · 21.7 KB

homegit-freeze.md

File metadata and controls

303 lines (262 loc) · 21.7 KB

homegit is frozen

This text is LLM generated.

cgwalters-bot/homegit ran the bot from one workstation. It is frozen: nothing is added to it, and it will be archived once the steps below are done. This is cutover line 6 of tracker#528, from its 14 Oct research comment. The configuration move was re-checked on 17 Oct 2026 against actions 9342b3e, agenthome 9f0461b and agent-board 1ef37df.

What still used it, and what replaces it

homegit piece Replacement State
bin/bot-runs (dispatch, watching runs, pool choice) dispatch.yml and pools.json here, agent-board dispatch and request dispatch (bring-up.md) moved
bin/bot-board (status updates, item edits, questions) agent-board's project status-update, item add/edit, ask create/resolve moved; archive-done, handback and state-get/put dropped
bin/bot-capacity, bin/bot-heartbeat pass.json pacing here and agent-board's pass, which publishes usage moved
dotfiles/.config/opencode/ and dotfiles/.config/AGENTS.md, which every opencode run reads agenthome's opencode/ (agenthome#9, #10, #13) and the wrapper default (cgwalters-forge/actions#55, PR cgwalters-forge/actions#56) moved
bot-supervisor.service, bot-sweep.service/.timer on the workstation, running bin/bot-supervisor and bin/bot-sweep from a homegit checkout poll.yml here: its board job and agent-board's poll done 22 Oct: stopped and disabled (unit files kept)
praxis-credential-broker quadlets in dotfiles/.config/containers/systemd/praxis-credential-broker/ the broker repository's contrib/quadlet done 20 Oct: the broker runs from its own deployment; the old copies are stopped and disabled
.github/workflows/controller-report.yml and crates/sched, a read-only report scheduled hourly (last run 15 Oct 13:23 UTC) none: agent-board took the scheduler over (operator notes, 7 Oct) dropped; archiving stops it (3)
everything else: the local workers, bot-reconcile, bot-pr, notifications, the skills, docs and personal dotfiles listed in the research comment dropped

The operator's steps, in order

The operator-action schema is in cgwalters-forge/agent-board's docs/operator-actions.md; these steps remain listed for the operator to run by hand.

1. Stop the workstation controller. Done on 22 Oct 2026: the units are stopped and disabled, with their files kept. The operator decided there will be no machine-specific supervisor; hosted polling and the review app's on-demand runs replace it. The original step: once the hosted poll has run a day without failing. While both run, the sweep's bot-watch --apply and the poll act on the same pull requests. This prints the conclusions of the last day's polls; go ahead only if it shows nothing but success and cancelled:

gh run list -R cgwalters-forge/tracker --workflow poll.yml -L 1000 \
    --created ">=$(date -u -d '24 hours ago' +%FT%TZ)" \
    --json conclusion --jq 'group_by(.conclusion) | map({(.[0].conclusion): length}) | add'

Then continue on the workstation. The supervisor's unit kills every process in its cgroup, including local bot-claude jobs, so first check that none is running:

systemd-cgls --user -u bot-supervisor.service
systemctl --user disable --now bot-supervisor.service bot-sweep.timer
systemctl --user stop bot-sweep.service
systemctl --user list-units --all 'bot-*'   # nothing active

Keep ~/.config/bot-supervisor.env and the token file it names: bring-up.md starts every shell from them.

2. Run the broker from its own repository's quadlets. Done on 20 Oct 2026: the broker runs from its own deployment and serves all inference; the old host's quadlets are stopped and disabled, with their volumes kept for rollback. The original step: The two copies differ. homegit's (last changed 1 Oct) runs the upstream ghcr.io/praxis-proxy/ai image pinned by digest with a praxis.yaml mounted from the broker checkout, publishes ports 18080 and 18083 on $BROKER_ADDR itself and is limited to ConditionHost= the old host. The broker's (12 Oct) runs its own -gateway:main image with the Claude token as a Podman secret, follows :main with AutoUpdate=registry, and publishes only 127.0.0.1:18080: the tailnet address and the run registration policy are drop-ins. 18083 is gone, replaced by the /anthropic routes on 18080. The broker's INTERNALS.md ("Quadlet") is the reference. See which copy is running:

systemctl --user cat praxis-credential-broker-pod.service praxis-credential-broker-praxis.service |
    grep -E 'SourcePath|PublishPort|Image=|run-token-policy'

If SourcePath is under the broker checkout's contrib/quadlet, and the output has PublishPort=$BROKER_ADDR:18080:8081 and the policy's Volume=, its copy is running: skip to the check at the end. Otherwise homegit's copy is running, installed in ~/.config/containers/systemd/praxis-credential-broker/ (if SourcePath names another directory, set OLD to it). Pull the broker checkout only now: homegit's gateway reads its praxis.yaml. Write ~/.config/praxis-credential-broker/run-token-policy.yaml first, listing this repository's dispatch workflow as the broker's "Run tokens" section says, without unproven. Then stop the pod, store the secrets podman secret ls does not list yet, swap the units and start it:

Set BROKER_ADDR to the broker host's tailnet address, which is kept in the operator's private notes rather than here.

B=~/src/github/cgwalters-bot/praxis-credential-broker
OLD=~/.config/containers/systemd/praxis-credential-broker
git -C $B pull --ff-only
diff -ru "$OLD" $B/contrib/quadlet
systemctl --user stop praxis-credential-broker-pod.service
podman secret ls
bash $B/scripts/init-secrets               # if praxis-credential-broker-agent-channel is missing
bash $B/scripts/init-anthropic-token       # if praxis-credential-broker-anthropic-oauth is missing
bash $B/scripts/init-mistral-key           # if praxis-credential-broker-mistral-api-key is missing
rm "$OLD"/praxis-credential-broker*.pod "$OLD"/praxis-credential-broker*.container \
    "$OLD"/praxis-credential-broker*.volume && rmdir "$OLD"
cd ~/.config/containers/systemd
ln -s $B/contrib/quadlet/* .
mkdir -p praxis-credential-broker.pod.d praxis-credential-broker-praxis.container.d
cat > praxis-credential-broker.pod.d/tailnet.conf <<EOF
[Pod]
PublishPort=$BROKER_ADDR:18080:8081

[Service]
ExecStartPre=/usr/bin/tailscale wait --timeout=30s
ExecStartPre=/usr/bin/tailscale ip --4 --assert=$BROKER_ADDR
EOF
cat > praxis-credential-broker-praxis.container.d/run-token-policy.conf <<'EOF'
[Container]
Volume=%h/.config/praxis-credential-broker/run-token-policy.yaml:/etc/praxis-credential-broker/run-token-policy.yaml:ro,Z
EOF
# The mistral pool uses /mistral.
cat > praxis-credential-broker-praxis.container.d/mistral-api-key.conf <<'EOF'
[Container]
Secret=praxis-credential-broker-mistral-api-key,target=/run/secrets/mistral/api-key,uid=65532,gid=65532,mode=0400
EOF
QUADLET_UNIT_DIRS=~/.config/containers/systemd /usr/libexec/podman/quadlet -dryrun -user
systemctl --user daemon-reload
systemctl --user start praxis-credential-broker-pod.service

Check: curl -fsS http://$BROKER_ADDR:18080/healthz, then a dispatched run that reaches inference.

Deferred broker admission inventory — 5 Nov 2026

This is the public-source inventory slice of tracker#452, not a restoration of hardening. The 4 Nov decision context keeps the work deferred and calls for readable evidence without host-policy changes. The concrete threat a later restriction would stop is another workflow or changed branch/commit, on a runner able to reach the broker, registering a run and spending the shared subscription. OIDC identity verification alone does not restrict that set to reviewed workflows. No control or option is added here.

The earlier deployment completion note above is historical, not verification of admission hardening. In particular, the old instruction to list dispatch alone is not a current policy recipe. Deployment remains unverified: the mounted policy, running image/commit, enabled registration routes, consumer assignments and host restart state were not inspected. The broker's Quadlet documentation describes operator-mounted policy; its repository example is not that policy. No workflows, pins, admission configuration, host policy, services or board priority change in this inventory. No host credentials, live registration or new runs were requested or accessed; tokens and private addresses are not reproduced. The hardening issue stays open.

Observed callers and registering jobs

Observation is bounded to tracker at d679a3d26c5fc169f47fabf867eaddd2eb2e85ba, actions main resolving to 02d0342d682cf1c265668d7823009ae1936c4061, and agentic-job main resolving to 225c16a8ee911350a2477c5d1de7b0f60a12a562. These are source snapshots on 5 Nov, not claims about every run's resolution. In the table, actions/… abbreviates the literal prefix cgwalters-forge/actions/.github/workflows/; the registering workflow paths use that same prefix unless specified otherwise.

Entry caller (immutable source) Literal wrapper ref Resolved wrapper commit Actual registering workflow/job Event sources in the caller
tracker dispatch.yml, job run actions/cgwalters-agentic-job.yml@main 02d0342d682cf1c265668d7823009ae1936c4061 cgwalters-agentic-job.yml, job agent (run / agent) workflow_dispatch; includes dispatch kind review, not just implementation
tracker session.yml, job run actions/cgwalters-agentic-job.yml@main 02d0342d682cf1c265668d7823009ae1936c4061 cgwalters-agentic-job.yml, job agent (run / agent) workflow_dispatch
tracker supervisor.yml, job agent actions/cgwalters-agentic-job.yml@main 02d0342d682cf1c265668d7823009ae1936c4061 cgwalters-agentic-job.yml, job agent (agent / agent) schedule, workflow_dispatch, issue_comment (created); health/due/config gates decide whether an agent runs
tracker review.yml, job review actions/cgwalters-review.yml@02d0342d682cf1c265668d7823009ae1936c4061 02d0342d682cf1c265668d7823009ae1936c4061 cgwalters-review.yml, job agent (review / agent) pull_request_target (opened, synchronize, reopened, ready_for_review); issue_comment (created, PR /review gate); no dispatch trigger

For all four tracker entries the caller is cgwalters-forge/tracker, repository ID 1389152030, owner cgwalters-forge, owner ID 333055778 (public repository metadata, observed 5 Nov). These are the calling repository's IDs, not actions' IDs and not the task's target repository. Event names above are possible source events, not proof that each passed admission or consumed inference. Tracker's dispatch trigger and kinds and the other linked callers supply those event definitions.

Both actions wrappers were read at the resolved commit: general wrapper and review wrapper. Their agent jobs hold id-token: write and invoke the local ./.agentic-job-source/run action after checkout of policy's source. Both nest policy.yml, check.yml and apply.yml from agentic-job at 3f9f6425119b97bb3620a38fe0adc8e79be7dc8e (v0.6.11); those pins select implementation, not the registering job's reusable-workflow identity. The pinned run action can accept an earlier run token or register itself; these wrapper jobs do not pass an earlier token. Broker matching must therefore consider the actions wrapper, not simply allow agentic-job's agent.yml at the nested pin. The wrapper's owner gate is separate from broker admission and does not establish deployed policy.

Agentic-job's own review path is different. At the observed main commit, review.yml registers in job register of review.yml, with id-token: write and agentic-job register, then passes the token as a secret to the locally called ./.github/workflows/agent.yml. That agent job has no identity-token grant. Thus its registration identity is agentic-job's review.yml, not agent.yml and not either actions wrapper. This is a local workflow, so there is no external literal wrapper ref to record. Its own repository caller is cgwalters-forge/agentic-job, repository ID 1390855724, owner ID 333055778 (public repository metadata, observed 5 Nov). Its event declarations include the same PR/comment event types plus workflow_dispatch and workflow_call; reusable callers retain their own repository IDs/events, not agentic-job's. The network action joins separately for registration and the agent. This source snapshot does not establish the ref/SHA claims of a particular runtime invocation.

Additional callers, repositories, detection jobs and other registration paths are unknown/not inventoried, not absent. In particular the general wrapper calls agentic-job's check workflow, whose optional detector is a separate potential inference caller; whether it is enabled/reachable is not established here. This is not a complete fleet audit or an allowlist ready to deploy.

Matching, attribution and existing evidence

At broker b57ff815cfd68196ead02adf4db047f41a704088, the called-workflow matcher separates job_workflow_ref (workflow path and ref) from job_workflow_sha (resolved commit). A policy ref: refs/heads/main follows moving code; a sha condition fixes the commit. A SHA-only entry accepts a full refs/... or SHA ref spelling but still checks the SHA claim; specifying both requires both. Tracker's literal @main is therefore not a commit pin even though this observation resolved it. The pinned review caller has a different ref spelling from the three main callers, even when their resolved commits coincide. Called-workflow caller restrictions use repository/owner IDs from the calling repository; events are unrestricted unless explicitly restricted.

The admission alternatives and consumer selection try workflows, called_workflows, then any_workflow. workflows checks an exact job workflow ref and by default requires the entry workflow to match it (or checks configured entry_workflows). any_workflow can admit every workflow and ref from selected owner/repository IDs, or any repository. These are OR paths: adding a narrow entry does not override broader admission. The example policy also describes unproven registration without OIDC, where network access is the gate. None of these source capabilities proves which route is deployed.

The admitting entry selects the consumer, so overlapping broad/narrow entries can change budget attribution as well as admission. The broker retains admission and identity claims. Relevant existing tests (read, not executed in this documentation change) are an_entry_must_say_what_it_admits, each_form_of_entry_admits_what_it_names_and_nothing_else (ref/SHA/caller/event rejection, broad alternatives and overlap precedence), and an_identity_carries_the_claims_it_was_admitted_on (identity and consumer attribution).

The 4 Nov status comment links already-readable dispatch run 41816225404. Its run metadata reports workflow_dispatch, success, tracker head 03110a8f269021a83ccfd5f7dfeadd338cb4f93d, and the general wrapper @main resolved then to 02a5daadde0f8ee12fa85407e985195ca0ce1457, with nested agentic-job calls at 57119eeffa17ea41b383cfdaf8370b8abeba8868. The agent job also reports success. This is historical run/job metadata, not inspected OIDC claims, broker allow/deny evidence, or proof of current deployed restrictions. It also demonstrates why today's main resolution cannot be substituted for a historical run's. No logs containing capabilities were needed.

A later, separately authorized rollout would first finish the caller inventory and decide reviewed immutable wrapper pins and the registering workflow identities (including agentic-job's separate review registration). It would coordinate caller pin updates with broker and tailnet admission, caller IDs and event sets; remove any overlapping broad/unproven paths that defeat the intended restriction; preserve consumer/budget attribution; and arrange an idle host policy activation with rollback. Only then would allowed legitimate callers and denied unlisted workflows, changed commits and disallowed callers be verified against that deployment. Those are future rollout requirements, not requests for runs or host changes now. The recorded deferral is unchanged.

3. Point homegit's README here, then archive it. Nothing in agenthome or the wrapper still blocks archiving. Archiving makes it read-only and stops controller-report. Close homegit's open pull requests, put the text below at the top of its README.md and push it, then:

gh pr list -R cgwalters-bot/homegit
gh pr close N -R cgwalters-bot/homegit --comment 'homegit is frozen: see cgwalters-forge/tracker#528.'
gh repo archive cgwalters-bot/homegit --yes

After that, dispatch a run here to drop cgwalters-bot/homegit from .github/agentic-job/dispatch.toml and fix.toml: no run can push to it. That is done (#641): homegit is frozen, so it is no longer a dispatch or fix target.

The README pointer

**Frozen.** This repository no longer runs anything and is archived.
cgwalters-bot's work is coordinated from
[cgwalters-forge/tracker](https://github.com/cgwalters-forge/tracker); the
cutover is [tracker#528](https://github.com/cgwalters-forge/tracker/issues/528),
and [docs/homegit-freeze.md](https://github.com/cgwalters-forge/tracker/blob/main/docs/homegit-freeze.md)
says what replaced each part of this repository:

- [agent-board](https://github.com/cgwalters-forge/agent-board), the board's
  CLI, for `bin/bot-board`, `bot-reconcile` and the scheduler;
- [agentic-job](https://github.com/cgwalters-forge/agentic-job), runs in CI
  with safe outputs, for `bin/bot-runs` and the local workers;
- [agenthome](https://github.com/cgwalters-forge/agenthome), the agents'
  configuration and standing rules, for `dotfiles/.config/opencode` and
  `AGENTS.md`.

The broker's Quadlet units are in
[praxis-credential-broker](https://github.com/cgwalters-bot/praxis-credential-broker/tree/main/contrib/quadlet).
cgwalters' own dotfiles stay in [cgwalters/homegit](https://github.com/cgwalters/homegit).