Repository navigation
v0.2.2: the HUD's controls work again
On v0.2.1, once a browser was signed in with c4 farm open, every control in the HUD was refused: hold, boost, setting a deadline, answering a Needs-you question, withdrawing, approving a burst, grants and people. The server required a header the bundled HUD didn't send yet. Reading the farm worked. v0.2.2 bundles the current HUD, which sends it, so every control works from the browser again.
Also in this release:
c4 farm statusandupname a command, not a link. They sayc4 farm open --as ROLEinstead of bare?as=addresses, which a browser without the sign-in cookie can't open.c4 farm open --as ROLEis new.c4 farm downno longer guesses. With no--name,statusanddownmean the current local farm, or the only one. With several and none current, they list them and refuse.downnames the farm it deleted.upkeeps a farm's own ports. Runningupagain over an existing farm reads its real ports from the farm and records those, instead of assuming the defaults. A new farm takes the next free port when the default is in use, and says which farm holds it.statussays when the recorded address and the farm disagree.upwaits for the farm's manager to really run. If the HUD never comes up,upends on the HUD's last answer and names the pod in trouble (this landed in v0.2.1).- Tool tests stay out of your way.
c4 farm lsleaves the farm's own tool tests out, andupremoves a failed tool test once a newer test of the same tool has replaced it, saying so in one line. A person's job is never touched. - Clearer first run.
up's farm line explains its pools, including the burst pool.opensays it opened the HUD. A store that isn't ready yet is retried. With no Docker installed,upsays so and names where to get one, instead of saying Docker isn't running. - The stand-in tracker is named as a command:
c4 farm open, then /sandbox/ in that window. samples loadwaits for a project it just added, andgranttakes the tracker's project when only one has it.
If you're on v0.2.1, upgrade (brew upgrade mrjoshuak/tap/c4) and run c4 farm up again. It keeps your farm and its ports.
Upgrading from v0.1.0
v0.2.0 closed security gaps that v0.1.0 has. Upgrade any farm running v0.1.0.
- A local farm's HUD now needs this machine's installer token. On v0.1.0, anything that could reach a local farm's HUD, job code included, could act as its owner.
c4 farm upmakes the token, andc4 farm opensigns the browser in. - Units have no network unless a tool declares one. Jobs that name no tool lose all network, DNS included. Such a job says "this job names no tool, so it has no network: name a tool that declares one". Whatever a unit must reach goes in a tool's
needs.network. - Re-apply the egress proxy's manifest,
config/egress/egress.yaml, which is part ofinstall.yaml. - Apply the CRDs. A WorkJob's
spec.toolnow carries the version's tree and can't change after the job is made. - Tool jobs made before the upgrade that claim a network are held until they're submitted again through the tool (
c4 farm submit).
RELEASING.md has the full upgrade notes.
Changelog
- 7eabf6c A block whose session is lost before its summary fails (SessionLost) instead of ending Completed; its next attempt resumes the session
- 7c7b864 A block's branch starts from the commit its pod names (C4_BLOCK_BASE), refused unless it is a commit in the repository
- 20df630 A failed tool test goes only where its tool has a newer published version, and each removal is said with both versions
- 284d446 A test that the embedded HUD marks every write with X-C4-HUD, which a stale HUD sync fails
- b21c13f A tree's card, c4: card/1 at .c4/card.yaml: name, format, base, its source at a pinned commit or the job that made it, its licence; ParseCard and GET /schema/card
- 4dcb85b A unit's job's verdict that expands into agent units is refused and its signed record names the agent units, the fix and the policy, as a generator's expand does; tested
- 69e0f56 A worker's result in status: a block's .c4/done summary is stored, named on its pod and kept in unitSummaries; hosts require it as pods do
- 630126d An agent working from a whole disk or home is told so and where to run it from, not that its folder is outside
- 9b9c5e9 First-run words: up's farm line from its pools with the burst pool explained, ls leaves tool tests out, open says it opened, a store not ready is retried, no assumed 30080
- c23cdeb HUD sync to c4-hud 2c2f3d3: the HUD's writes carry X-C4-HUD, which the installer rule requires of a cookie's writes; a 401 says to run c4 farm open
- 974f302 PROGRESS: agent-words
- 2581ba4 PROGRESS: current-farm
- 6009d30 PROGRESS: docker-missing
- e12cabb PROGRESS: first-run-cli
- 71189f6 PROGRESS: hud-links
- cc0dfd0 PROGRESS: hud-port
- 5419d0d PROGRESS: no-brews
- ebf6987 PROGRESS: samples-first-run
- 936f40f PROGRESS: sandbox-line
- a78ae42 PROGRESS: tidy-tests
- f7600ff Steers reach a block at its next tool call: the PostToolUse hook hands unseen messages to the model, once, and starts no process when there are none
- 253c582 Summaries in status have a whole-job budget: excerpts within 64 KiB and the 2,000 newest units, older ones keeping their document's ID
- 74357db Summaries in status keep an excerpt and the document's ID; only an unreachable store holds a pod; the unit page reads the whole text
- 38248a8 The release generates no Homebrew formulas: the tap holds one, the C4 suite's c4, which carries the farm tools
- 5d1410e The stand-in tracker is named as a command, c4 farm open then /sandbox/ in that window, not a bare ?as= link
- 7d826e8 c4 farm status and up name c4 farm open --as ROLE, not bare ?as= links, which a browser without the installer cookie cannot open
- 32a7c31 samples load sends a job again while its just-added project reaches the farm; grant takes the tracker's project when only one has it; 1 job, not 1 jobs
- e49de45 status and down mean the current local farm, never a guess at c4-local, and say which; status fails when the HUD does not answer
- c959e17 up keeps an existing farm's own ports, read from its node, and a new farm takes the next free port; status checks the mapping and names a port another farm holds
- f27bac5 up removes a failed tool test a newer test of the same tool has replaced, saying so in one line; a person's job is never touched
- 2aef61d up tells Docker missing from Docker stopped, naming the engines; a ci plan says it runs with no network, and the quickstart and README say so
Install: kubectl apply -f https://github.com/Avalanche-io/c4-operator/releases/download/v0.2.2/install.yaml
Image: ghcr.io/avalanche-io/c4-operator:v0.2.2
Tracker sync (experimental): kubectl apply -f https://github.com/Avalanche-io/c4-operator/releases/download/v0.2.2/c4-sync.yaml, image ghcr.io/avalanche-io/c4-sync:v0.2.2