Repository navigation
Corrective batch: nine repository-interrogation milestones, ADR-0007 accepted, and a Windows service host - #3
Merged
Conversation
added 30 commits
October 23, 2026 14:34
Five subsystem corrective addenda and nine implementation milestones, plus ADR-0007 (proposed) and the registry/roadmap registrations. Planning-only change: no source, script, manifest, or workflow is touched. plans/000-003 are unmodified.
A best-effort isolation or resource request that could not be enforced now produces a bounded, grammar-conforming diagnostic event in the execution's event stream, emitted by the runner before the target spawns and therefore delivered before any target output and before the terminal event. The diagnostic grammar is owned by eggwork-core so the runner (producer) and the server (forwarder) share one definition. The runner's public OutputChunk becomes an enum carrying a Diagnostic variant. No wire representation, authorization, lease, generation, fencing, or digest bound changed. The Required path is untouched and still fails closed before the target starts.
…R-0008 plans/003-planning-process.md section 8 requires an ADR or canonical amendment before an ownership-boundary change lands. Control-plane M004 section 12.3 names that condition as a stop condition. ADR-0008 records that eggwork-core owns the control-plane API schema version, the exec.argv.v1 capability name, and the terminal/non-terminal classification of ExecutionState, while the runner keeps producer ownership of the capability names it produces and of the sandbox profile name. No wire value, wire field, or capability byte changes. This clears M004's section 12.3 stop condition. The plan, the corrective addendum, and the registry are updated to point at the record.
… preview and store ownership Two independent milestones, corrected from the repository interrogation batch. Security M005b — the sandbox helper environment parity. The runner's launch specification started from a fixed baseline and appended every non-denied caller key, so a caller-supplied LANG produced a specification with two LANG entries; the helper refused it with status 12; and for a best-effort request the runner re-spawned the target with no Landlock ruleset at all. The environment policy now has one checked-in source of truth, a deterministic generator, and generated copies in each crate. The runner drops denied keys and lets the node's value win for node-owned keys; the helper refuses a policy violation with its own status byte, 13. One builder serves both the direct and the helper launch path. Workspace M005b — the operator's GC dry-run preview and the apply pass used different candidate predicates, in a module whose own doc comment states the two must be shared. The candidate predicate, the metadata filenames, and the blob path layout now each have one owner; the preview reaches owner code through a read-only, non-reconciling seam; the materializer verifies the bytes it writes against the manifest digest while copying; and the manifest owner-id composite has one producer. No wire value, stored format, SQLite schema, bound, or authorization, lease, generation, or fencing semantics changed.
…r-owned text Registry: Security M005a, Security M005b, and Workspace M005b are now registered as implemented with their closure-record pointers. The corrected execution graph and the batch table are updated to match. AGENTS.md invariant 4 now names the environment policy's single owner, as the Security M005b closure record recommends, so the runner and the sandbox helper cannot drift apart unnoticed. Workspace M005b's plan required non-vacuity evidence for a corrupt-principal case that cannot fail before the fix: the pre-fix inline format produced the identical composite, so the defect was duplication rather than a wrong release. The requirement is corrected to require the empirical result and the structural guard instead, rather than a claim that was never true. The workspace roadmap's M005b exit condition now names the store's verified-copy path, matching the implementation.
Three protocol contract facts were each stated by more than one owner, with the copies unrelated to each other. Both sides of every pair agreed by value today, so none of it was a live bug; the defect was structural, because a future rename or bump on the producing side desynchronised the consuming side silently and neither the compiler nor the test suite objected. eggwork-core now owns the control-plane API schema version, the exec.argv.v1 capability name, and the terminal/non-terminal classification of ExecutionState. The classification is an exhaustive match over all nine variants with no wildcard arm, so adding a tenth variant is three non-exhaustive-pattern errors in eggwork-core rather than a silent behaviour change downstream. The runner keeps producer ownership of the capability names it produces and of the sandbox profile name; the server imports the runner's constants rather than restating them. The artifact-capture eligibility predicate stays a distinct policy: exactly Succeeded and Failed, deliberately not the terminal set, now one named function with a doc comment saying why the two must not be folded together. No wire value, wire field, capability byte, stored format, or operator-visible output changed. The ownership change is recorded in plans/adrs/ADR-0008-core-protocol-contract-ownership.md.
On a platform that cannot open a file beneath the workspace root safely, the server refused the capture but left the execution in state Succeeded: a caller that declared outputs saw a successful execution with zero artifacts and no error, and the node advertised artifact.declared.v1 on every platform. The terminal result now carries a first-class capture disposition (ExecutionResult::artifact_capture, serde-defaulted to Unknown so an older snapshot stays silent rather than claiming NotRequested). The mapping from a capture attempt to the terminal facts is one public decision (eggwork_server::decide_artifact_capture); the platform's capture capability is one fact (artifact::capture_capability); the artifact.declared.v1 advertisement follows that fact; and the capture failure is published on the server's existing event-publishing path as a diagnostic of class artifact.capture.failed, before the terminal state event. The platform limitation itself remains and is now stated: declared artifacts are captured on a Unix platform only. The Windows claim is closed by a portable server integration target that the windows-runner CI job now runs, and by a hosted qualification step against the installed daemon. The capture eligibility rule, the capture path, the double hash, and every wire value are unchanged.
Workspace M005a -> 4258964.
Control-plane M004 and the three M005 milestones were still carrying a stale 'proposed' status in the registry's workstream and planned-work rows after their implementation landed. The batch's execution-graph label now reads [PARTLY IMPLEMENTED], which is what the batch actually is: five implemented, four proposed, one blocked on ADR-0007.
…re records The plan documents and closure records still read 'proposed' / 'implemented after the implementation landed, and the registry and roadmaps used a third word. One vocabulary now applies across all three surfaces, from plans/003-planning-process.md section 2. Three milestones are closed. Two are conditionally closed, and the distinction is the plan's own requirement rather than a judgement call: - Security M005a requires that a change to the runner's public OutputChunk type 'must also be exercised on the Windows and macOS targets the release matrix builds'. OutputChunk did change shape, and only Linux was exercised here. - Workspace M005a requires that the new portable test target 'compiles and passes on a non-unix host' and that the Windows hosted qualification asserts the truthful terminal disposition. The step and the wiring exist; neither has executed. Both name the outstanding evidence item in their closure record. Nothing is claimed about any platform that was not exercised.
Option A. The node gains a real per-resource authorization boundary instead of keeping an inert hook that only looks available. - GrantAuthorizer implements Authorizer::authorize_request so the typed ResourceId is consulted; ClientGrant gains an optional, additive, bounded resource-scope list. - The store's principal_id fences stay authoritative for Execution, Workspace and Artifact: the authorizer narrows, never widens. Blob has no owner, so a blob scope is an explicit digest list. - The scope applies to every operation whose resource is already resolved, including the five that resource_for_path resolves for dispatch. - Every configuration error class is refused at load time; the node refuses to start rather than degrade to a permissive decision. - No wire value, wire field, capability byte, or API_SCHEMA_VERSION changes. Unblocks Security M005c, which implements Branch A of its implementation plan.
…-0007 boundary ADR-0007 was accepted as Option A: the node gains a real per-resource authorization boundary instead of an inert hook that only looked available. - GrantAuthorizer implements Authorizer::authorize_request, so the typed ResourceId is consulted on the production path. The decision rule is the ADR's: the operation grant must be present; a scope configured for that (operation, resource kind) must contain the resource; otherwise the operation-level grant applies. The decision reads a configuration-derived set only — no store call, no lock, no ordering dependency. - ClientGrant gains an optional, bounded resource_scopes list (#[serde(default)], deny_unknown_fields kept). A grant without scopes keeps exactly today's operation-level meaning. - The store's principal_id fences stay authoritative for Execution, Workspace and Artifact: the authorizer narrows, never widens. Blob has no owner, so a blob scope is an explicit digest list — the residual boundary stays operation-wide and is stated as such. - Every configuration error class is refused at load time: unknown operation, unknown resource kind, malformed identifier, scope for an unheld operation, scope for a kind the operation never names, duplicate scope, and the per-grant and per-node caps. - A resource-scoped denial is indistinguishable from an operation-level denial and from a missing resource, in status code and body. - No wire value, wire field, capability byte, or API_SCHEMA_VERSION changes. The divergences row, the threat-model row, and both deep dives are updated to state the boundary as it now is.
…for the rules The runner re-spelled the eggwork-core domain validation rules in a private helper, and the two copies disagreed: the runner was stricter on empty argv entries and materially weaker on environment-entry syntax and duplicate environment names. The runner's copy is the one that gates the actual Command::env() call, and the public constructor and environment setter reached that gate without passing through core validation at all. - eggwork-core gains three public rule owners — validate_argv, validate_environment_entries, validate_timeout — and CommandSpec::validate delegates to them, so core keeps the single ownership. - The runner's duplicate checks are deleted; it consumes the core functions. Its own empty-argv-entry rule survives as a documented runner-level rule that is stricter than core, because it protects the child-process construction. - The runner's duplicate StdinPolicy enum is deleted; eggwork_core::StdinPolicy is imported directly and re-exported, keeping the public path alive. - The runner's re-stated output-policy bounds are replaced by the core OutputPolicy validation. - RunnerError::InvalidRequest now carries eggwork_core::ValidationError instead of String, so a validation failure stays attributable to the rule that produced it. - Option (b) of the plan was chosen over (a): the in-tree caller set is not empty — five callers across two crates, including the sandbox-helper integration tests — so removing the constructor would have broken the build rather than hardened it. The out-of-tree embedder position is unknown and is recorded as unknown. No wire protocol change, no stored-format change, no change to any core type's serde representation.
…and Foundation M005 dispositions - architecture/overview.md divergence #4 is closed by ADR-0007 (Option A): the resource-aware hook now decides, the store's principal_id fences remain authoritative for ownership, and the residual blob boundary is stated plainly rather than implied closed. - plans/registry.md records M005c as unblocked by the accepted ADR, and Foundation M005 as active.
…what it type-checks The release harness re-derived facts that already had one owner, and CI type-checked code it never executed. OP-4 — the rule the milestone establishes: multiple readers of one owner are fine; multiple owners are not. - The workspace version now has one Python reader. release_candidate_probe.py owns read_manifest/workspace_version with tomllib; check_release_tag.py and qualify_release.py obtain the version through it. The old regex reader in check_release_tag.py — which took the first 'version =' line in the file and worked only by accident of the manifest layout — is gone. - Cargo.lock is parsed with a real TOML reader, and the repository's own packages are selected structurally (no 'source'), not by a name prefix. - The two version authorities are reconciled and written down: the manifest is the build assertion (what the binaries report); the tag is the release gate, and check_release_tag.py is the only place a tag and a version are compared. The harness reads the manifest-derived version and delegates the tag comparison to the gate. - QUALIFIED_ASSET_COUNT is deleted, not re-synced: the expected asset set is derived from the contract and the receipt's count is computed from it. - The harness holds no literal install or service identity. Install identities come from release/eggpack/distribution.toml; the service identity is read from the candidate daemon. Target classification is derived from the contract's asset entries instead of a triple suffix. OP-6 — CI executes what it type-checks. - The qualification suite's ignored tests now execute in a dedicated job that has the environment they need, with --test-threads=1 (they fail concurrently on the daemon's state lock). The workflow and the CI narrative record why the default test step does not enable the qualification feature. - The capability probe no longer passes with zero assertions when it cannot find the helper: it fails loudly and names the paths it tried. It was exercised in both directions. The tag-dependent half of the guard still cannot run in CI — CI never knows the future tag, and the release workflow is generated by eggpack. That prerequisite is recorded rather than faked; the tag-independent half (the manifest against the lock) now runs on every push and pull request.
…s-ownership invariant - plans/registry.md and the operations-distribution roadmap record M008a and M008b as active. - AGENTS.md gains invariant 12: the release harness holds no remembered copy of a fact that has an owner, and the design record cites symbols, never line numbers.
…xecuted quickstart The design record carried 718 line-number citations; re-measured against the tree, 85% of the resolvable ones no longer resolved at the cited line, and a line number is a property of the text rather than of the symbol. The quickstart was not machine-verified at all, and its doctor output block was already false. - scripts/check_doc_citations.py is the durable gate. It accepts a repository-relative path, optionally with a symbol after '::'; it rejects the legacy 'file.rs:NNN' form outright, a path that does not exist, a symbol that is not in the named file, an ambiguous in-file symbol, and a bare basename that is not unique in the tree. Rust items are extracted by a scanner that blanks comments, strings and raw strings; Python items by ast. The checker fails closed, prints the documents it scanned, and exits non-zero on any finding. - --prove-negative-exit builds a fixture tree and proves the checker rejects a deliberately wrong citation while accepting a correct one — a checker that has never been shown to fail is not a gate. - scripts/quickstart.sh is the quickstart's machine-executed form: build, generate TLS material, install the helper under a trusted path, write the config and apply the documented modes, doctor/start/status/stop, then the two ignored qualification tests. Every step is named, and a failing step says which. - scripts/check_quickstart_sync.py compares the document's command blocks with the script's steps and compares the document's shown doctor check names with the node's real report — the comparison that catches the seven-versus-eight drift. Executed end to end against a pristine tree: the shown-output comparison failed at step 6 on the real mismatch, and after the correction all eight steps ran to completion with both qualification tests passing and outside_workspace_write_denied true. The run also found two defects in the script itself — a helper directory created with the ambient umask, and an inverted condition in the trust check — both now covered by executed tests. The checker deliberately fails over the live tree today: 627 legacy citations remain in six design-record documents, and the conversion is the next step. A gate that only turns on when the tree is already clean protects nothing.
…ator sees The operator surface presented three untruths: metrics that were silently dropped, one field name carrying two different facts, and every configuration fault collapsed into one unhelpful string. OP-1 — the metric vocabulary has a producer owner. A node_metrics! macro declares a typed Metric enumeration beside the producers that increment it, and increment_metric/increment_metrics accept nothing else, so an unregistered name is a compile error rather than a runtime drop. The hand-maintained METRIC_NAMES list is deleted; metrics_snapshot now inserts every stored row, so an unknown name is reported under its own name instead of vanishing. The five workspace counters that were invisible to the operator now appear. OP-2 — two facts, two names, one wire field. The operator side now reports execution_permits_held (the permits the running node holds) and non_terminal_executions (durable rows still in a non-terminal state) under distinct, self-describing names; the executions listing uses the same name as the status output. The wire field eggwork_core::NodeStatus::active_executions keeps its name and its meaning — renaming it would break every deployed client — and the node publishes its live permit count so the operator can see both facts. OP-3 — actionable configuration failures. OperationsError::Config now carries a typed ConfigFault: 60 stable, greppable rule ids, each naming the item that failed and the action to take. A secret-bearing item is named by role only — the private key, the certificate fingerprint — never by path or value, and no underlying io or serde_json text is interpolated. config print, config validate, doctor's configuration check and the daemon's startup refusal all report the same rule for the same fault. No wire field is renamed and no wire shape changes.
…ctive_executions - eggwork-core's NodeStatus now documents what active_executions counts (the permits the node holds) and why it differs from the number of durable non-terminal rows. The field name, the field set, and that meaning are published: a deployed client deserializes the type, so renaming the field would break every client that reads node status. - architecture/core-domain.md carries the same statement. - architecture/overview.md gains the two M008a divergence rows (23 and 24) in their own table, so the numbering stays monotonic and rows 1-22 keep the numbers other documents cite. Row 4, closed by ADR-0007, is preserved. - AGENTS.md's note that a configuration fault produced a single unhelpful string is no longer true: the fault now names a greppable rule and the offending item. The quickstart is now machine-verified by scripts/quickstart.sh, and scripts/check_quickstart_sync.py keeps the document and that script in agreement.
…ng-item rule The config loader's strictness is now reported as a stable rule identifier, the offending file or path, and the corrective action, and a secret-bearing item is named by its role rather than by its path.
…gate that keeps them converted The design record carried 718 line-number citations; re-measured against the tree, 85% of the resolvable ones no longer resolved at the cited line. A line number is a property of the text, not of the symbol, and every unrelated edit above the target invalidates it. The gate now exists and passes. - 651 citations converted to symbol form across ten documents. The resolution is historical: each citation was resolved against the file as it stood in the commit that introduced the citation, because the cited line was true when the document was written and the symbol's name survives when the line does not. Where the sentence's own subject named an item in the cited file, that subject won. - scripts/check_doc_citations.py is extended to recognise macro-generated Rust items, so a document can name an item a macro defines. The gate is extended, not weakened: every rejection rule is unchanged and the extension is covered in both directions by the gate's own fixture. A per-file symbol cache took the full-tree check from minutes to seconds. - The gate fails the build on every push and pull request, and its negative-exit proof runs there too. A new CI job runs scripts/quickstart.sh end to end, and the qualification job compares the node's real doctor report with the document's shown output. - The quickstart document now carries --locked on its cargo commands and shows all eight doctor checks. - The divergences table is re-verified entry by entry. Row 3 is corrected (it described a different file), row 20 is closed (the client bounds the decoded body and Eggfetch enforces the bound on both the compressed and the uncompressed path; the residual transport-wide boundary is recorded), and every other row was checked and left alone. No row was renumbered. - The checked-in line counts are gone; scripts/component_sizes.py prints the figures on demand, so the document states no number that can rot. The gate went from 680 findings to 0, and it is now wired so that it cannot go back.
… gates - Security M005c, Foundation M005, Operations M008a and Operations M008b move to closed in their plans, their closure records, the registry, and the three subsystem roadmaps. The implementation commit SHAs are recorded. - The registry records what each milestone actually did, so the control surface says the same thing the closure records say. - The two documentation gates join the pre-submit list in CONTRIBUTING.md, in the pre-submit skill, and in AGENTS.md's setup commands: a citation must name a symbol rather than a line number, and docs/quickstart.md must agree with the script that executes it. Two milestones from the earlier batch remain conditionally closed on a named evidence item rather than on a defect: Security M005a needs the runner's OutputChunk shape change exercised on the Windows and macOS release targets, and Workspace M005a needs the portable test target to compile and pass on a non-unix host. Neither has been executed here; only Linux x86_64 was.
The portable-ownership-guard CI corrective was implemented at 34ef081 and the registry records it closed; the plan document still read 'ready for handoff'. Corrected, with the implementation commit and the closure record named.
…es clippy sync_directory's directory-sync call is Unix-only, but std::fs::File was imported unconditionally. On Windows the import was therefore unused, and clippy's -D warnings turned that into a hard error — which stopped the hosted windows-runner job before it could prove anything, including the Windows evidence the two conditionally closed milestones still need. The defect is pre-existing on main and is not introduced by this branch; the hosted job had been failing on it. An audit of every crate for imports and functions whose only uses sit inside a platform-gated region found no further instances of this class.
… own spawn The test triggered cancellation from an out-of-band signal: the target wrote a pid file, the test polled for it, then cancelled. But the target can write that file before the helper's spawn-confirmation byte reaches the runner, so the cancellation could land in the window between the target starting and the runner observing it. The runner then correctly reported CancelledBeforeSpawn — correct behaviour, but a flaky test, and it failed the hosted Linux job. The test now waits for the target's stdout marker on the runner's output channel. A chunk on that channel is proof that the runner observed the spawn, which is strictly later than the pid file. 20 consecutive runs of the test pass, and the full helper suite is green across three consecutive runs.
…nd macOS builds reject Two more pre-existing defects of the same class as the File import, each one stopping a hosted job before it could prove anything. - crates/eggwork-runner/tests/environment_policy.rs: observed_environment and every import it needs are Unix-only, because only the Unix behavioural tests observe a child's environment. The helper and its imports were unconditional, so the Windows build failed clippy -D warnings on a dead-code error and on unused imports. The two list tests stay cross-platform. - crates/eggwork-runner/src/process_tree.rs: ProcessTree::start_kill is called only from the Linux sandbox handshake's refusal paths, so on the other Unix targets it was defined and never used, and the macOS build failed clippy -D warnings on it. Both defects predate this branch. An audit of every crate for imports and functions whose only uses sit inside a platform-gated region now finds no remaining instance of either class.
… macOS CI job Two things. The test a_caller_supplied_node_owned_key_does_not_replace_the_node_value asserted that LANG, LC_ALL and CI all carry the node's value. That is a Unix property: the node-owned class is the *platform* baseline, and the Windows baseline deliberately installs no locale keys, so on Windows LANG and LC_ALL are the caller's. The hosted Windows job failed on it. The test now asserts the rule that holds on every platform — for every key the node installs here, the node's value wins, the key appears exactly once, and a differently-cased spelling of it is discarded — and the Unix locale property stays where it belongs, in the Unix-gated test. The release matrix builds macos-x64 and macos-arm64, but nothing in CI exercised a macOS target, so a macOS-only regression could reach a candidate unobserved. The new job mirrors the Windows job's narrow scope: the shipped surface is linted on the macOS target, the runner's test targets run, and the one portable server integration target runs. It also gives the macOS half of Security M005a's outstanding evidence a place to be produced. The macOS job found and fixed a pre-existing dead-code defect first: ProcessTree::start_kill is called only from the Linux sandbox handshake's refusal paths, so on macOS it was defined and never used.
The macOS branch of product_service_manager ended in 'return Ok(...);', which is a needless return when the branch is the tail expression. Linux and Windows compile the branch out, so only a macOS build rejected it — and only once a macOS job existed to run. The new macos-runner CI job found it immediately. Pre-existing on main; the hosted macOS surface had never been exercised.
Operations M007. The daemon now joins the Windows service control dispatcher, reports truthful lifecycle state, and converges through the same shutdown-and-wait path the foreground `run` verb uses. The mode is explicit and chosen before an async runtime exists: `eggworkd service-host --config <absolute-path>` is the Windows entry, and nothing infers it from the parent process, the session, the environment, or a dispatcher error. The dispatcher owns the calling thread until the service exits, so the service main builds its own runtime on the service thread. `eggwork_server::service_host::serve_until_stopped` is now the one node lifecycle. Foreground `run` used to call `shutdown()` without `wait()`, so a foreground stop could return while an execution was still converging; both paths now stop admission, cancel and converge the active executions, close the listener, and wait for it. The state machine is platform-neutral: the current state and the stop latch live in one atomic byte, so claiming RUNNING and a stop request cannot interleave, and the watch channel is only the wake-up. A stop that arrives during startup is latched and produces no RUNNING claim. The Windows adapter is the only code that talks to the manager, it needs no unsafe, and its control callback only latches a stop. Eggup remains the sole service manager. The registered argv now names the platform's service host (`service-host` on Windows, `run` elsewhere), and the Windows refusal in `product_service_manager` is replaced by Eggup's typed adapter with a bounded start-type policy. A routine stop creates no persistent drain marker and never undrains an existing one; startup still honours one. Tests: seven service-host lifecycle tests in the binary target, a Windows-only service identity contract, and a Windows-only hosted suite that mutates a real registration. CI gains a `windows-service-host` job that builds the daemon from source and runs that suite. Also fixes two pre-existing macOS-shaped defects the new macOS CI job found: `/bin/true` does not exist on macOS, and the runner's confined working-directory expectation ignored the `/var` to `/private/var` symlink.
added 7 commits
October 25, 2026 17:11
The adapter module was private, so the daemon's service-host entry could not name it: every item in the adapter was unreachable and the Windows clippy rejected the crate. The adapter is now public, because the binary's entry point is what reaches it. Also adds a macos-x64 CI job. The release matrix builds macos-x64 and macos-arm64, and only the arm64 target was exercised, so the Security M005a condition that the runner's public `OutputChunk` change be exercised on the Windows and macOS targets the matrix builds was only half discharged. The new job mirrors `macos-runner` exactly.
…the run The hosted service lifecycle got through install, start, the authenticated readiness request, the stop with an active execution, the convergence, the restart, and the uninstall. The foreign-ownership negative failed because the registration it created was not one Eggup could classify: it quoted the whole command line as one token, so the ownership could not be proven and the classification was `Unknown`. The registration now uses a different executable with the same argv shape, which is what "same-name, different-executable" means in Eggup's ownership model. The assertion is on the property that matters -- Eggwork does not claim the registration and does not mutate it -- because the classification itself is owned by Eggup and is pinned by the service identity contract. The suite now prints a receipt for every phase, so the hosted run's log is the evidence rather than a pass/fail bit. The operational-qualification workflow's Windows step is now capability-driven. It reads the staged candidate's own process modes and qualifies whichever disposition the candidate actually has: the refusal for a candidate that predates the service host, and a real register/start/prove-Running/stop/uninstall lifecycle for one that carries it. Until a release carries the host, the step takes the refusal branch exactly as before. Also reconciles the design record with the service host: the Windows section of the deployment lifecycle, the release qualification's 1053 disposition, the overview's positive note, and the registry's M007 row. The historical receipts stay as they were observed; only the present-tense capability statements move.
`macos-13` is retired. A job pinned to a retired image does not fail — it queues forever, which is the worst possible failure for a gate: it looks like a slow runner rather than a broken one. `macos-15-intel` is the x64 image, and `macos-14` (which `macos-runner` uses) is the arm64 one.
The hosted service lifecycle passed. The job still failed, on the step that checks no registration survived: `sc.exe query` exits non-zero when the service does not exist, which is exactly the outcome the step wants, and the step inherited that code instead of exiting zero. This is the same trap the M004 record named for the Windows disposition step: a recorded disposition turning into a job failure because a native command's exit code leaked past the check. Also records the hosted evidence in the two closure records that were waiting for it. Security M005a's outstanding item — the Windows and macOS exercise of the runner's public `OutputChunk` change — is discharged by the `windows-runner`, `macos-runner`, and `macos-x64-runner` jobs. Workspace M005a's portable-target criterion is discharged by the same three jobs; its only remaining condition is the hosted Windows qualification's receipt, which needs a published release carrying the corrective.
The hosted run's log is the receipt, and it is now in the closure record phase by phase: the registration Eggwork owns, the service reaching Running while it answers an authenticated request, the stop, the active execution that had already converged when the service stopped, the second start, the restart, the removal, the same-name registration Eggwork does not touch, and the node whose configuration cannot be loaded never reporting Running. The record also names what the hosted run does not prove: a stop that arrives during startup is a race with two acceptable outcomes, and asserting one of them would make the gate flaky rather than strict. That half of the criterion is proven by the deterministic state-machine tests.
The hosted source-built Windows SCM lifecycle is green on run 40217353896: install, start, an authenticated request while the manager reports Running, a stop that converges an active execution, a second start, a restart, a removal, a same-name registration Eggwork does not touch, and a node whose configuration cannot be loaded never reporting Running. M007's plan and the operations roadmap now carry the final disposition. The one condition that remains is the installed-release Windows service receipt, which needs an immutable release carrying both Foundation M004 and M007 and is Operations M004's item 2.
…tems The hosted run is 40217353896: the Windows and both macOS targets the release matrix builds all run the runner's whole test suite there, so Security M005a's outstanding item is discharged and Workspace M005a's portable-target criterion is discharged. Security M005a is now closed. Workspace M005a stays conditionally closed on one item: the hosted Windows qualification's receipt for the truthful declared-artifact disposition, which needs a published release carrying the corrective.
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.
Implements the repository interrogation corrective batch in full — nine milestones — accepts ADR-0007, whose decision was the last blocker on the line, and adds Operations M007, the Windows service host, which was the last dependency-ready implementation handoff.
ADR-0007 (accepted)
plans/adrs/ADR-0007-resource-scoped-authorization.md→ Option A: implement resource-scoped grants. The node gains a real per-resource authorization boundary instead of an inert hook that only looked available.GrantAuthorizerimplements the existingauthorize_requesthook, so the typedResourceIdis consulted on the production path;ClientGrantgains an optional, additive, bounded resource-scope list; the store'sprincipal_idfences remain authoritative for ownership and the authorizer narrows, never widens; blobs are governed by an explicit digest list, because content-addressed blob storage has no owner. No wire value, wire field, capability byte, orAPI_SCHEMA_VERSIONchanges.Milestones
eggwork-coreownsAPI_SCHEMA_VERSION, theexec.argv.v1capability name, and the terminal/non-terminal classification (an exhaustive match, no wildcard arm).artifact.declared.v1advertisement.eggwork-coreowns the argv, environment-entry and timeout rules; the runner consumes them instead of re-spelling them; a validation failure stays attributable to the rule that produced it.active_executionsfacts apart while the published wire field keeps its name and meaning; a configuration fault reports a greppable rule id, the offending item, and the action, with secret-bearing items named by role.eggworkdis a real Windows SCM service host. The mode is explicit (service-host --config), chosen before any runtime exists; the foregroundrunpath and the service-hosted path now share one shutdown-and-wait lifecycle, so a foreground stop can no longer return while an execution is still converging; the platform-neutral state machine keeps the current state and the stop latch in one atomic byte, so aRUNNINGclaim and a stop request cannot interleave; the Windows adapter needs nounsafe; and Eggup remains the only service-manager owner.Hosted evidence
All eight hosted jobs are green on run 40217353896:
rust,windows-runner,macos-runner,macos-x64-runner,quickstart,installed-qualification,release-drift, andwindows-service-host.The
windows-service-hostjob is new. It builds the daemon from source, materialises the repository's own qualification fixture, and mutates a real service control manager registration:Getting there also fixed five pre-existing platform defects that only a hosted runner could find: an unused import and two platform-gated dead-code sites on Windows, a needless
returnand a node-owned-key expectation that only clippy on macOS rejected,/bin/truenot existing on macOS, and the runner's confined working-directory expectation ignoring the/varto/private/varsymlink. Themacos-runnerandmacos-x64-runnerjobs are new too — the release matrix builds both macOS targets and nothing exercised either.Security M005a is closed. Its outstanding item — the Windows and macOS exercise of the runner's public
OutputChunkchange — is discharged by those three jobs.Workspace M005a stays conditionally closed on one item: the hosted Windows qualification's receipt for the truthful declared-artifact disposition. The step is live in
.github/workflows/operational-qualification.yml, but that workflow is tag-gated and no published release carries the corrective. Its portable-target criterion is discharged by the same three jobs.Operations M007 is conditionally closed on the installed-release Windows service receipt, which needs an immutable release carrying both Foundation M004 and M007 and is Operations M004's item 2. The source-built hosted lifecycle above proves the capability; the installed bytes are M004's to prove.
Pre-submit gate
Ownership guard ✓ ·
--prove-negative-exit✓ ·cargo fmt --all -- --check✓ ·cargo clippy --locked --workspace --all-targets --all-features -- -D warnings✓ ·cargo test --locked --workspace --all-targets✓ 463 passed, 0 failed, 1 ignored ·cargo check --workspace✓ ·tests/releaseunittest ✓ 139 tests ·git diff --check✓ — plus the two new gates:check_doc_citations.py✓ (680 findings → 0, with its negative-exit proof) andcheck_quickstart_sync.py✓.Not verified here
The local gate executes Linux x86_64 only; the cross-target evidence comes from the hosted matrix named above. The release-path tag gate still needs an upstream Eggpack change, recorded in
architecture/release-qualification.mdrather than faked locally. No published release contains this work, so no installed-release receipt is claimed for it.plans/000–plans/003are byte-identical to the planning baseline.