Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
a87022d
docs(plans): planning corpus ADR, todo-state and remote-workspace pla…
Nov 28, 2026
31fa026
docs(adrs): accept ADR-0067, ADR-0068 and ADR-0069
Nov 28, 2026
958010a
feat(core): workspace execution target and the remote-root type bound…
Nov 28, 2026
c1a8a79
feat(remote): ssh transport foundation, trust store and probe (R002)
Nov 29, 2026
a3a2e2b
feat(todo): one truthful owner, durable identity and a 512-item check…
Nov 29, 2026
3423a29
chore(guards): bank the comment budget for R001, R002 and M001
Nov 29, 2026
6c288a1
test: thread the workspace target and todo identity through the families
Nov 29, 2026
63c53c9
fix(migrations): make v97 replayable and the v69 fixture representative
Nov 29, 2026
fedd6f1
docs(closure): record R001, R002 and M001, and update the roadmaps an…
Nov 29, 2026
f350826
plans: pin P001 at v98 and P002 at v99, and record P001 as active
Nov 29, 2026
9fd983f
style: rustfmt the v97 replayability fix, which shipped unformatted
Nov 29, 2026
07978d9
plans: P001 is active, not blocked — both raised blockers were false
Nov 29, 2026
58c55d1
docs(plans): agent roster M001-M005 and advisor consultation M001-M003
Nov 29, 2026
dbc8e25
feat(agent,advisor): agent roster M001-M005 and advisor consultation …
Nov 29, 2026
4c60579
feat(node): land R003a — local execution node role and stdio proxy
Nov 29, 2026
fd8d6b9
feat(planning-corpus): P001 packages A and B — resolver, corpus ident…
Nov 29, 2026
a9a291e
docs(plans): advisor live-provider receipt; M001 and M002 closed
Nov 29, 2026
545a6e7
docs(closure): close R003a and make R003 eligible
Nov 29, 2026
49f2eab
feat(planning-corpus): P001 packages C-F — lifecycle, linked items, d…
Nov 29, 2026
8e4a53e
docs(closure): close P001 conditionally on its one unmet criterion
Nov 29, 2026
6715734
feat(claims): P002 — make the workstream claim store the delegation c…
Nov 29, 2026
e172841
docs(closure): close P002 and record the claim surface as the delegat…
Nov 29, 2026
daab7cf
docs(plans): notification surface roadmap, six implementation plans a…
Nov 29, 2026
af16323
feat(tui,scripts): notification surface M001-M006 — disposition guard…
Nov 29, 2026
fbf299f
style(clippy): repair this line's clippy findings
Nov 29, 2026
b32c7dd
feat(git): admit certified staging and commit the planning corpus
Nov 29, 2026
35d6a41
docs(closure): close P004 and discharge P001's criterion 6
Nov 29, 2026
48442a1
docs(adr): accept ADR-0070 on the owner's direction
Nov 29, 2026
bab7cb8
fix(lint): clear the pre-existing findings that keep the workspace ga…
Nov 29, 2026
94f0676
feat(egggit): create managed repositories on the trusted route
Nov 29, 2026
56ae2d1
feat(planning-corpus): create the corpus repository at first use
Nov 29, 2026
fd98158
docs(closure): close P005 and the planning-corpus roadmap
Nov 29, 2026
9d5e5ec
docs(plans): P003 is superseded, not deferred — the Eggplan adoption …
Nov 29, 2026
79e1f70
fix(planning-corpus): a detail read does not create the corpus reposi…
Nov 29, 2026
df7bf1b
fix(tool-advisor): reconstruct the pre-M003 task schema with the clai…
Nov 29, 2026
1d5fd74
docs(closure): record the full sweep and reconcile the record with th…
Nov 29, 2026
28e3143
docs(closure): name the claim event ordering the sweep disproves
Nov 29, 2026
352b378
Merge feat/auto-20261126-cae46b00 into the planning-corpus line
Nov 29, 2026
55b9a95
fix(merge): complete the reconciliation with the upstream lane
Nov 29, 2026
4182150
fix(merge): give the advisor M003 fixture the workspace target field
Nov 29, 2026
df4bd8e
docs(closure): record the merged-tree sweep and the hosted qualificat…
Nov 29, 2026
1fd9307
fix(reds): repair 35 of the 36 post-merge sweep failures
Nov 30, 2026
1458db7
docs(closure): record the 35/36 red repair in P005
Nov 30, 2026
803cc43
docs(closure): bound the remaining red's stack requirement
Nov 30, 2026
0217dc6
fix(agent): box the delegated task's future so its poll frame leaves …
Nov 30, 2026
a2462a4
docs(closure): record the green workspace sweep at 0217dc6ab
Nov 30, 2026
0bcb8ab
docs(closure): record the completed M004 hosted result in P005
Nov 30, 2026
7d8958f
docs(closure): correct the sweep sentence the green sweep superseded
Nov 30, 2026
2a770bb
fix(lint): clear the nine clippy findings the hosted toolchain rejects
Nov 30, 2026
215d5b7
fix(desktop): regenerate the stale desktop lock
Nov 30, 2026
3b4212b
fix(desktop): point the host checks at the extracted TUI crate
Nov 30, 2026
fc53128
merge: reconcile the notification-surface line with origin/main 4f46a…
Nov 30, 2026
9a0bd3a
docs(plans): register the hosted CI signal recovery line and its M001…
Nov 30, 2026
ba4a526
fix(sandbox): gate the helper descriptor re-exports to unix
Nov 30, 2026
1b18723
fix(remote): name the group signal by intent, not by a unix constant
Nov 30, 2026
debb6b7
ci: retire the eight closed Windows research lanes
Nov 30, 2026
b352ed4
ci: one invocation per suite, no dead branches, retire the macOS comp…
Nov 30, 2026
c7f28b7
test(ci): decide the queue and lease fixtures on facts, not elapsed time
Nov 30, 2026
1ea6107
docs(plans): record the hosted CI line's measurement and five closure…
Nov 30, 2026
ba3462d
docs(plans): record that a later push cancels the in-flight lane set
Nov 30, 2026
07a1bb3
docs(plans): settle the hosted CI line's closure on the final run set
Dec 1, 2026
a480e75
ci(desktop): reduce the hosted lane to a compile and lint gate while …
Dec 1, 2026
16a43c9
ci(linux): drop M004's duplicated protected-mount step and correct th…
Dec 1, 2026
925ff5d
ci(desktop): restore ripgrep, which the boundary guard greps with
Dec 1, 2026
524bccf
docs(desktop): record the reduced lane's first green run and settle b…
Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ jobs:
- name: Frontend action set guard
run: python3 scripts/check_frontend_action_set.py

# The notification surface: every toast-emitting call site carries a
# recorded disposition, and a stale record fails as loudly as an
# unrecorded site.
- name: Toast disposition guard (self-test)
run: python3 scripts/check_toast_disposition.py --self-test

- name: Toast disposition guard
run: python3 scripts/check_toast_disposition.py

- name: Storage catalog guard (self-test)
run: python3 scripts/check_storage_catalog.py --self-test

Expand All @@ -170,6 +179,18 @@ jobs:
- name: Project catalog invariants guard
run: python3 scripts/check_project_catalog_invariants.py

- name: Planning corpus read-authority guard (self-test)
run: python3 scripts/check_plan_corpus_read_authority.py --self-test

- name: Planning corpus read-authority guard
run: python3 scripts/check_plan_corpus_read_authority.py

- name: Planning corpus disposition guard (self-test)
run: python3 scripts/check_planning_corpus_authority.py --self-test

- name: Planning corpus disposition guard
run: python3 scripts/check_planning_corpus_authority.py

- name: ADR identity and link guard
run: python3 scripts/check_adr_integrity.py

Expand All @@ -181,6 +202,24 @@ jobs:

- name: Tool broker boundary guard
run: python3 scripts/check_tool_broker_boundary.py

- name: Advisor consultation isolation guard (self-test)
run: python3 scripts/check_advisor_consultation.py --self-test

- name: Advisor consultation isolation guard
run: python3 scripts/check_advisor_consultation.py

- name: Agent roster consistency guard (self-test)
run: python3 scripts/check_agent_roster_consistency.py --self-test

- name: Agent roster consistency guard
run: python3 scripts/check_agent_roster_consistency.py
- name: Agent identity literal guard (self-test)
run: python3 scripts/check_agent_identity_literals.py --self-test

- name: Agent identity literal guard
run: python3 scripts/check_agent_identity_literals.py

# The daemon's turn code resolves its workspace root from the
# execution context, never from the process working directory. The
# guard covers `src/core/**` and the turn-code surfaces, plus the
Expand Down
41 changes: 0 additions & 41 deletions .github/workflows/command-authorization-macos-compile.yml

This file was deleted.

175 changes: 88 additions & 87 deletions .github/workflows/desktop-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,63 @@
name: Desktop E2E
name: Desktop compile and lint gate

# Built-app visible-window qualification for the desktop foundation (C003).
# Runs the real Tauri window (embedded WebDriver provider) against an
# isolated daemon: rendered state, real IPC Channel invalidation, visible
# reconnect, renderer reload, native close, TUI coexistence, explicit
# autostart, and daemon survival.
# Compile-and-lint gate for the desktop host while the desktop line is paused
# (owner-directed 2026-12-01).
#
# Root `CI / verify` intentionally has no Tauri/Node/WebKit dependency; this
# path-gated workflow owns the display-backed qualification instead. Linux
# (WebKitGTK + xvfb) is the routine hosted qualification. Windows remains
# M002-gated; macOS runs stay valuable local evidence.
# This workflow used to run the whole desktop gate: the production boundary
# guard, the renderer (npm) checks, the host's own test/fmt/clippy suite, and
# the built-app visible-window trajectory under xvfb. The desktop product's
# development is paused, so the lane was reduced rather than spending ~20
# minutes of runner time per pull request on a product nobody is changing.
# Measured on run 46534026619: 1190 s total, of which 375 s was the root daemon
# build, 718 s the host step (which failed) and 34 s the renderer; the
# visible-window trajectory itself was *skipped* because the host step failed
# first, so it had not run on any recent push.
#
# ── RESTORED 2026-10-24 ─────────────────────────────────────────────────────
# The lane was paused on 2026-10-23 because it was red on `main`: run
# 39679968444 at 53d9fc9fd failed with
# Measured again on run 46590280230, this reduced lane's first green run: 596 s
# total, of which 280 s the root daemon build, 205 s the host lint, 26 s the
# Tauri system dependencies, 22 s the renderer and 1 s the boundary guard.
#
# element ("[data-testid="permission-list"]") still not existing after 120000ms
# at apps/desktop/e2e/specs/m004-session.e2e.ts:169:5
# ── What still runs, and why it is not nothing ─────────────────────────────
#
# The cause was a stale *fixture* premise, not a product defect. The desktop
# fixture's mock model answered the first `write` call with its final text,
# but since 39e1445b6 the daemon answers a temp-root write with an actionable
# scratch-path redirect *before* asking the human, and only reaches the human
# when the model repeats the same restricted path. The fixture therefore never
# produced the `PermissionPending` the spec asserts, so the spec waited out
# its timeout on a permission that was never going to arrive.
# - the production boundary guard, which the desktop's authority split rests
# on, and which costs no build;
# - the renderer checks (`verify-desktop.sh renderer`: npm ci, typecheck,
# unit tests, bindings:check, build). They are **not** optional here even
# though the renderer is not what the lint checks: `tauri.conf.json` sets
# `frontendDist: "../dist"`, and `tauri::generate_context!()` embeds that
# directory at compile time — `dist/` is gitignored, so without the
# renderer build the desktop host does not compile at all. Measured at
# 34 s, and it keeps the renderer's own typecheck/tests/bindings checks;
# - `cargo clippy --all-targets` against `apps/desktop/src-tauri` in the
# pinned 1.90.0 toolchain. The desktop is a separate Cargo workspace that
# the root `cargo check` never compiles, and it consumes
# `codegg-client`, `codegg-protocol` and `codegg-core` storage and
# projection, all of which keep changing. This is the one check that will
# notice the desktop no longer building against them. `--all-targets`
# keeps the host's test and bench code compiling even though nothing runs
# it.
#
# The fixture now repeats the same denied write on its second request, which
# exercises the intended one-offer-per-target rule: the first attempt is
# answered with the redirect, the repeat reaches the human, and the spec's
# `permission-list` assertion holds. The product behaviour is unchanged.
# ── What deliberately does not run any more, with the loss stated ──────────
#
# The triggers are restored with the path filters preserved at the pause.
# - the host test suite (`verify-desktop.sh host` runs `cargo test --lib`,
# `fmt --check`, and the same clippy this file states literally);
# - the built-app WebDriver trajectory (`verify-desktop.sh e2e`) and the
# xvfb display it needed.
#
# The checks below run through apps/desktop/scripts/verify-desktop.sh — the
# one local entry point that owns the desktop step list — so the hosted lane
# and the maintainer's machine cannot drift. The script is what a contributor
# runs before pushing; this workflow is what runs it for them. The lane's
# lint gate is also stated literally in the host-checks step, because that
# is where the gate guard reads it from; the script proves the two copies
# still agree.
# The desktop's
# `tests::production_tui_and_desktop_adapters_share_one_live_lsp_service`
# (`apps/desktop/src-tauri/src/lib.rs:1712`, "opening a Rust document must
# warm the configured fixture server") is red on this repository — inherited,
# and red on `main` as well — and it is now executed by nothing. That is
# recorded in `architecture/desktop.md` §"The hosted lane is reduced while the
# desktop is paused", not hidden here.
#
# `apps/desktop/scripts/verify-desktop.sh` still owns every phase, so
# restoring the lane means calling `renderer`, `host` and `e2e` again, not
# rewriting tests. `scripts/check_desktop_gate_wiring.py` fails closed if this
# workflow stops existing, loses its push/pull_request path filters, loses the
# host lint, or stops calling the entry point; the reduced lane keeps all four,
# which is why the guard is not weakened by the pause.

on:
push:
Expand Down Expand Up @@ -82,12 +100,14 @@ env:
CARGO_TERM_COLOR: always

jobs:
e2e:
gate:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

# Node is pinned to a currently supported LTS, not inherited ambient.
# Node is pinned to a currently supported LTS, not inherited ambient. The
# renderer build below is what produces `apps/desktop/dist`, which the
# Tauri build script embeds.
- name: Node 24
uses: actions/setup-node@v4
with:
Expand All @@ -100,6 +120,13 @@ jobs:
with:
toolchain: 1.90.0

# The system libraries the Tauri host links against, plus `ripgrep`: the
# production boundary guard is a shell script that greps the desktop tree
# with `rg`, so the lane does not run at all without it. (`xvfb` went with
# the trajectory: nothing left in this lane opens a display.) Removing
# `ripgrep` here failed the lane in 49 s on 2026-12-01 with
# `rg: command not found`, which is why the list is commented rather than
# assumed.
- name: Tauri Linux dependencies
run: |
sudo apt-get update
Expand All @@ -113,7 +140,6 @@ jobs:
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
xvfb \
ripgrep

- uses: Swatinem/rust-cache@v2
Expand All @@ -122,64 +148,39 @@ jobs:
. -> target
apps/desktop/src-tauri -> target

- name: Configure git identity for tests
run: |
git config --global user.name "CI Test"
git config --global user.email "ci@test.example.com"

# ── The desktop gate ────────────────────────────────────────────────
# The checks below run through apps/desktop/scripts/verify-desktop.sh:
# one entry point owns the step list, so the hosted lane and the
# maintainer's machine (the same script, run locally) cannot drift.
# The script prints its own step-by-step log and says which steps it
# skipped and why.

# The production boundary guard is cheap and answers its question
# without a build, so it runs first: a boundary violation should fail in
# seconds rather than after compiling the Tauri stack.
- name: Desktop production boundary guard
run: apps/desktop/scripts/verify-desktop.sh boundary

- name: Build root daemon binary
# The root workspace strips debuginfo in BOTH the dev and test cargo
# profiles so the two resolve identically and the dependency graph is
# compiled once (scripts/check_cargo_profile_alignment.py). This binary
# is bundled into the desktop app, so keep its debug info for crash
# symbolication: override the profile for this one invocation.
run: cargo build --locked --config 'profile.dev.strip="none"'

- name: Desktop renderer checks
run: apps/desktop/scripts/verify-desktop.sh renderer

# tauri.conf.json bundles binaries/codegg as a resource; the Tauri
# build script requires it to exist. Stage this revision's binary
# (gitignored; C001 operator contract).
- name: Build root daemon binary
# The Tauri build script requires the bundled daemon resource to exist
# before the host compiles (`tauri.conf.json` bundles binaries/codegg),
# so even a lint-only gate needs this binary. The root workspace strips
# debuginfo in both the dev and test profiles so the two resolve
# identically (scripts/check_cargo_profile_alignment.py); this binary is
# shipped inside the desktop app, so keep its debug info for crash
# symbolication by overriding the profile for this one invocation.
run: cargo build --locked --config 'profile.dev.strip="none"'

- name: Stage daemon resource for the desktop bundle
env:
CODEGG_DAEMON_EXECUTABLE: ${{ github.workspace }}/target/debug/codegg
run: apps/desktop/scripts/verify-desktop.sh stage-daemon

- name: Desktop host checks (production configuration)
run: |
# This lane's lint gate, in the pinned toolchain. The script's
# `host` phase runs the same three host commands (test, fmt and
# this lint) and proves they still agree with this file, so the
# local gate and this lane cannot drift.
rustup run 1.90.0 cargo clippy --manifest-path apps/desktop/src-tauri/Cargo.toml --all-targets --locked -- -D warnings
apps/desktop/scripts/verify-desktop.sh host

# Builds the fixture helper plus the desktop-e2e feature app binary
# (the only configuration containing the embedded WebDriver server),
# then runs the visible-window trajectory under a fake display (the
# script uses xvfb when the runner has no display of its own, and
# skips the step with the reason when it has none at all).
# CODEGG_DAEMON_EXECUTABLE pins the daemon to this revision.
- name: Built-app WebDriver trajectory
env:
CODEGG_DAEMON_EXECUTABLE: ${{ github.workspace }}/target/debug/codegg
run: apps/desktop/scripts/verify-desktop.sh e2e

- name: Upload E2E logs
if: always()
uses: actions/upload-artifact@v4
with:
name: desktop-e2e-logs
path: apps/desktop/e2e/logs/
if-no-files-found: warn
# Formatting needs no build and no daemon resource, so it costs seconds
# and survives the reduction even though the rest of the host phase does
# not.
- name: Desktop host formatting
run: rustup run 1.90.0 cargo fmt --manifest-path apps/desktop/src-tauri/Cargo.toml -- --check

# This lane's lint gate, in the pinned toolchain. It is stated literally
# here because that is where scripts/check_desktop_gate_wiring.py reads it
# from, and because a local `verify-desktop.sh host` run must agree with
# it (the script proves the two copies still match).
- name: Desktop host lint
run: rustup run 1.90.0 cargo clippy --manifest-path apps/desktop/src-tauri/Cargo.toml --all-targets --locked -- -D warnings
32 changes: 19 additions & 13 deletions .github/workflows/linux-m004-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ jobs:
CARGO_BUILD_JOBS: 4
CODEGG_RUN_M004_BWRAP_NATIVE: '1'
CODEGG_RUN_C009_BWRAP_NATIVE: '1'
# The "Protected mount and Git regressions" step runs the
# `protected_mount_` filter, which also selects the two protected-mount
# regressions gated on the C006 native qualification — the real managed
# process handoff and the PTY first hop. Without this gate those two
# tests skipped here, and one of them skipped *silently*, so the step
# reported a green run that had qualified only 9 of its 11 selected
# tests. This job installs Bubblewrap and enables user namespaces, the
# same setup the C006 job has, so the gate's preconditions hold.
# The C006/C009 gates stay even though the "Protected mount and Git
# regressions" step that motivated them moved out on 2026-12-01 (C006's
# own lane runs those three commands under the same gates). Tests inside
# this job's other steps are gated on them too, and a selected test whose
# gate is missing self-skips — one of them silently — so a step can
# otherwise report green over fewer tests than its filter selected. This
# job installs Bubblewrap and enables user namespaces, the same setup the
# C006 job has, so the gates' preconditions hold.
CODEGG_RUN_C006_BWRAP_NATIVE: '1'
CODEGG_RUN_M004_CARGO_NATIVE: '1'
CODEGG_RUN_M004_PTY_NATIVE: '1'
Expand Down Expand Up @@ -252,11 +252,17 @@ jobs:
- name: M004 daemon-owned constrained LSP duplex and procfs qualification
run: python3 scripts/check_test_filter_execution.py --run -- cargo test --locked -p codegg --lib lsp::m004::tests::constrained_lsp_process_is_owned_by_m004_scope --features lsp-test-support -- --test-threads=1 --nocapture

- name: Protected mount and Git regressions
run: |
python3 scripts/check_test_filter_execution.py --run -- cargo test --locked -p codegg --lib protected_mount_ -- --nocapture
python3 scripts/check_test_filter_execution.py --run -- cargo test --locked -p codegg-sandbox --lib protected_mount_refuses_bare_repository_as_workspace -- --nocapture
python3 scripts/check_test_filter_execution.py --run -- cargo test -p egggit --locked trusted_git -- --test-threads=1
# The "Protected mount and Git regressions" step that used to sit here ran
# three commands — `protected_mount_` in codegg, the bare-repository
# guard in codegg-sandbox, and `trusted_git` in egggit — under
# CODEGG_RUN_C006_BWRAP_NATIVE/CODEGG_RUN_C009_BWRAP_NATIVE. It was
# removed on 2026-12-01 because `linux-c006-native.yml` runs exactly
# those three commands under exactly those gates in its
# "ManagedProcessService protected-mount qualification" and "Trusted Git
# repository-config qualification" steps, and that lane was green
# (46534026556, 359 s) on the same head. Running them twice per push
# bought no coverage. The env gates above stay: other tests in this job's
# suites are gated on them too.

restricted-userns-fails-closed:
if: ${{ github.event_name != 'workflow_dispatch' || github.ref_name != 'planning/linux-sandbox-next-admission-and-adr-cleanup' }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/shared-checkout-macos-qualification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ on:
push:
branches:
- main
- work/agent-workstream-m005-writer-audit
paths:
- '.github/workflows/shared-checkout-macos-qualification.yml'
- 'Cargo.toml'
Expand Down
Loading
Loading