Commit graph

321 commits

Author SHA1 Message Date
Meta Vens
4442e1acd9 Stewardship reinstatement: the repo already has a steward is one refusal, earlier or later rival
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 22:27:00 +02:00
Meta Vens
e1332fbd30 Stewardship: rival_in_force is the one owner of one-in-force; admission and reinstatement ask it
AlreadyStewarded and the withdrawal-over-later check each decided it with their own comparison, and disagreed when a later record was reinstated beside an earlier one. later_than's stewardship arm is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 21:58:06 +02:00
Meta Vens
383600c234 Lineage: a follow-up's line is global, as a ruling's; re-homing work across campaigns supersedes (ruling supersession-lineage-3)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 21:56:58 +02:00
Meta Vens
d289fcb09a Restore LF line endings in admission.rs and docs.rs (my edits wrote CRLF)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:44:51 +02:00
Meta Vens
e4f8434f61 Supersession tests: every kind on its line, foreign lines refused, prefix-sharing campaigns at revisions above 1
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:12:10 +02:00
Meta Vens
5d9a845e69 Supersession: line_of(record) is the one lineage; same_lineage and later_than call it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:04:43 +02:00
Meta Vens
adda2bf9ae same_lineage: name PipelineDocument locally (528a7f7 does not build)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 18:40:19 +02:00
Meta Vens
528a7f7e5f Supersession: one lineage rule for targets, cut_specs and rulings; tests pin every path
same_lineage replaces the Target and CutSpec arms. A target is superseded only within its campaign, a cut_spec within its campaign and cut, a ruling by any ruling (ruling supersession-lineage). Tests cover same-batch, first/last supersessor, subject in batch, cut_spec cross-campaign, and ruling cross-campaign.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 18:38:22 +02:00
Meta Vens
86adbc85bd repos_in_force: tests pin the campaign filter and the in-force filter
Docs-level image holds a closed higher revision and another campaign's higher target; admission-level test for the foreign target. HM3 (min revision) is equivalent and noted in the test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 18:16:26 +02:00
Meta Vens
bb4ef404dc Resolution matrix: a target is superseded only by a target of its own campaign
A lone foreign supersession closed a repo-naming target and narrowed membership to the opening set. Refuses IncompatibleResolution, as the cut_spec supersession rule does. Includes the admission tests (not yet verified).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 18:16:25 +02:00
Meta Vens
6e5fb9153c Regenerate golden and schemas for target.repos
One appended golden line (target.repos) dumped by golden_dump, one header
comment line; the target, mind_request and mind_response schemas regenerated
from the derivation. No existing golden line changed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 17:40:14 +02:00
Meta Vens
9298371f95 Target gains repos: a campaign's repo set changes by target revision
PipelineTarget.repos (additive, `= absent`, epoch stays v2) names the
campaign's whole repo set from that revision on; repos_in_force is the one
owner of cut_spec membership and replaces the direct campaign.repos check;
a revision past the first may not empty the set its predecessor named
(EmptyRepos on the target id). Golden line and regenerated schemas follow
in the next commit (ruling campaign-repo-set-home).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 17:38:04 +02:00
Meta Vens
c0a1f2c958 eureka-body map: cut sequence refreshed (Self-run and Persona critical paths), body facts F23-F25 (Claude Code session and usage probes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 17:34:05 +02:00
Meta Vens
70d0cef421 Research: fork desk prior art and substrate (Eyes facts)
Serves eureka-body:ruling:fork-desk-web-ui-on-huginn (session
sp-reentry-2026-10-20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 15:33:51 +02:00
Meta Vens
c51a6043d2 mind-body README: host() lives in src/bin/mind-wake.rs; glob reaches it
Fixes eureka-body:finding:cut-mind-wake.s3.readme-places-host-in-wake-rs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 14:09:36 +02:00
Meta Vens
0c5669ed85 mind-wake: pin the cadence at the dial's maximum and document the container lane
Adds the row (heat 0.05, base cooldown u32::MAX, 85,899,345,900 s) to the
wait test so any ceiling on the wait fails, and gives the ignored host test its
command in a crate README (the lane that kills the host() mutants). Tests and
docs only; builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 13:53:14 +02:00
Meta Vens
6f4f970c1a mind-wake process tests: HUGINN_ENDPOINT is the fallback, and in a container the real bin and daemon record this machine's host
The env test pins the variable's name and that the flag wins over it. The ignored container test seeds a mind, serves it with the real huginn-daemon, writes the brake at its real root and runs the real mind-wake with an empty PATH (so no unit is reached): the run it opens must carry /proc/sys/kernel/hostname as host and mind-wake as agent, which kills the three host() mutants of finding host-survivors-reachable.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:57:34 +02:00
Meta Vens
61766cab17 mind-wake tests: the cadence is pinned below one second and above a day; the agent name and every Declined code are literals
Closes the test gaps of findings cadence-clamp-unpinned and codes-and-agent-unpinned: a floor of 1 s or a ceiling of 80000 s on the wait now fails the cadence test, and the receipt's agent and the printed code of every refusal are compared with the spelling, not with the constant that produced them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:57:24 +02:00
Meta Vens
84d3aee02a mind-body wake tests: finding the newest Persona turn reads one row
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:28:51 +02:00
Meta Vens
10077f186c mind-body wake tests: a type alias for the held cases (clippy type_complexity)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:18:33 +02:00
Meta Vens
6e19e1a4c8 mind-body public surface: wake
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:17:17 +02:00
Meta Vens
937293d351 mind-body: the waker, one cycle that reads the brake once, waits out the cadence since the newest Persona turn, and hands its Grant to open_and_launch
wake::cycle reads the brake and dial through the one derivation behind
read_effective and the unit gate, returns Held before any query, admission or
unit call, finds the newest Persona turn of hers (any status) with one
descending single-row query, and launches through open_and_launch. The
mind-wake binary prints the outcome. control_path no longer echoes the
instance it refuses.

Does not build the public_surface snapshot yet (the next commit updates it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 08:16:10 +02:00
Meta Vens
94ced33419 mind-body: check tests: out-of-bounds dial pinned in-crate, store listing compared before and after
The writers refuse an out-of-bounds dial, so the DialOutOfBounds reading is
produced through the unchecked store the crate's own tests already use. The
store directory holds a second file besides control.cc, so the no-write test
compares listings rather than counting one.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:39:55 +02:00
Meta Vens
f1f36d5ff1 mind-body: mind-control check, the brake gate a unit runs before it starts
Exit 0 only when the one derivation reads Released; every other reading
(absent, held, no dial, dial out of bounds, undecodable store) is an error
and exits 2, which systemd's ExecCondition reads as skip. A pure read through
FileSource: no writer, no created file or directory.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 07:33:20 +02:00
Meta Vens
bcda08b8cd mind-body: brake hold stops the exact units unit() names, and the stop path is pinned
stop_args now builds each name through unit(), the one name path start and
alive use, so the stop argv cannot disagree with the units that run (the
:* glob matched none of them on real systemd). A launch test ties stop_args
to what start passes systemctl for several instances; two binary tests run
mind-control brake hold with a fake systemctl first on PATH, so main's
stopper wiring is pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 06:43:48 +02:00
Meta Vens
5323167555 mind-body public surface: cli::run takes stop_units
4d48aba still fails the public_surface test on this line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:56:24 +02:00
Meta Vens
4d48aba4a6 mind-body public surface: stop_all and SystemctlReply.code
The previous commit (df21694) builds but fails the public_surface test: it did
not update the committed snapshot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 04:32:38 +02:00
Meta Vens
df21694e14 mind-body: brake hold stops her running units after writing the brake held
SystemdLauncher::stop_all runs one synchronous systemctl stop over the
instance's mind-self and mind-persona units (stop_args, built from the same
templates as start and alive). cli::run gains a stop_units parameter that only
brake hold calls, after the write whatever its outcome. The window probe uses
dial set instead of brake hold, since a real hold now runs systemctl.

Builds not yet verified on the stopgap at this commit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 03:48:49 +02:00
Meta Vens
0b3cac3b45 mind-body launch tests: borrow fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 23:03:30 +02:00
Meta Vens
8e8fb0d17d mind-body: types, forbid(unsafe_code) and pair-wise gate properties carry the Grant rule
Per ruling mind-launch-forge-scanner-bound: compile_fail doctests for the
struct literal and each derive-provided path on Grant; forbid(unsafe_code) in
the library; the gate property draws the mind's own instance from the same
slug generator as the Grant's and tests pairs; Persona claim shapes are drawn
and rotated by seed; the path-literal and static-keyword scanners are deleted
from the public-surface test, whose limits are written at its top.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 22:59:21 +02:00
Meta Vens
7f70bbda13 mind-body launch tests: instance names up to 36 KB
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:50:20 +02:00
Meta Vens
b95837872e mind-body launch tests: Persona claim sets up to 100000
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:21:17 +02:00
Meta Vens
b6d5acca7d mind-body public surface test: every static keyword is in the snapshot
A process-global is the one channel through which an existing public
function's body, whose signature the snapshot does not change, could carry a
root from one call to another. The library has none today; a new one is a
line the snapshot does not have.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:21:16 +02:00
Meta Vens
85d3aad47b mind-body launch tests: the gates are observed by property, not by example
The instance gate is checked against names generated from the real one:
every single-character substitution, deletion and insertion, every
transposition and permutation, rotations, prefixes and suffixes, case flips,
NUL and whitespace padding, repetitions, and seeded random names of the same
and other lengths. The Persona refusal is checked at every claim-set size
from one to 300 in four shapes, duplicates included, and for every kind
alone. A compare or bound weaker than equality passes neither.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:15:20 +02:00
Meta Vens
19e6c050ed mind-body: pin the library's public surface as a whole
tests/public_surface.rs reads the library source the way a consumer sees it
and compares every pub item with its signature, pub fields, derives, impl
headers and every path-looking string literal to tests/public_surface.txt.
A new pub static or pub fn under any name, a derive onto Grant, or a root
read from another path fails it. It replaces the three compile_fail
doctests that named with_root, TEST_ROOT and control_root. Dev-dependencies
syn, quote and proc-macro2, already in the graph through serde's derive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:15:19 +02:00
Meta Vens
47d9a35fcd mind-body: the process environment is unreadable by library code, by lint
clippy.toml lists the std::env readers (var, var_os, vars, vars_os,
set_var, remove_var, args, args_os, current_exe, temp_dir, home_dir) and
libc::getenv as disallowed methods, and lib.rs forbids allowing them back.
main.rs and the self-spawning integration test carry the only allows.
The forge probe's environment sweep and its 22 guessed variable names go:
the lint covers a variable of any name, so the list was a second, weaker
path for the same rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:15:18 +02:00
Meta Vens
cb6f1a5a4e mind-body dependency graph test: read every target, not the host's
cargo unifies features per target, so a target-specific line that restores
eureka-state's default features left a Linux graph clean while a Windows
build compiled the huginn CLI's parser. The test asks cargo tree for
--target all, for the control and for mind-body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 20:15:18 +02:00
Meta Vens
7be2261d0c mind-body launch tests: a Persona request of every claim kind at once is refused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:20:11 +02:00
Meta Vens
199790739d mind-body launch tests: case and suffix forgeries of the instance, Persona requests with several claims
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:19:14 +02:00
Meta Vens
5f38ac74be mind-body forge probe: a root from the environment, and the test seam in the library build
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:19:14 +02:00
Meta Vens
e9809d3134 mind-body: take eureka-state without its default features; a test pins clap out of the graph
Builds (merge head 5da8b06 is green; this commit adds the manifest change and
the cargo tree test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 19:19:14 +02:00
Meta Vens
5da8b06a6d Merge remote-tracking branch 'origin/main' into eureka-body/mind-launch 2026-10-10 19:16:19 +02:00
Meta Vens
766cba4c3a Merge eureka-substrate/huginn-persona-state: Huginn holds an instance's Persona state
eureka-substrate:cut_report:cut-huginn-persona-state.h1-h3, held by Soul
(eureka-substrate:verdict:cut-huginn-persona-state.s3). Validated against the
published schema, replaced whole under CAS with a receipt. Not deployed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 12:44:28 +02:00
Meta Vens
126a914abb Restore LF line endings in the files my last three commits rewrote as CRLF
The repo stores LF; a scripted edit on Windows wrote CRLF. No content change:
git diff -w d5fddc3 shows only the three commits' real edits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:58:14 +02:00
Meta Vens
40fd220d16 mind-body: fix the moved tests' paths, the seam's comment and unused imports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:21:25 +02:00
Meta Vens
6df2a684ef one_persona_per_mind test: a planted row is unreadable on status and door alike
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:20:39 +02:00
Meta Vens
27e8d58757 huginn CLI whoami prints the persona door state
One bounded line: absent, stored updatedAt=<stamp>, or unreadable; no value
of the document. Test over canned Whoami answers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:15:44 +02:00
Meta Vens
6f483bbe02 Persona status goes through persona(): one decision of readability
whoami's persona field derived from stored_updated_at, which ignores the
writing receipt, while persona_get requires one. Status now matches on
persona(), so a receiptless row is Unreadable on both. The test asserts
agreement for every planted row and for a put-written row (restoring the
is_err equality weakened in c5af029).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:15:44 +02:00
Meta Vens
d5fddc3a58 Merge origin/main (huginn CLI) into huginn-persona-state
Resolves the eureka-state Cargo.toml comment block to main's, regenerates
Cargo.lock from main's with cargo update -w, adds the Persona and PersonaPut
arms to the CLI's unexpected-answer match and the persona field to the CLI
test MindStatus literals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 10:15:12 +02:00
Meta Vens
3fac90076d mind-body: the reader takes the instance only; the control root is a constant a caller cannot supply
read_effective(instance) reads CONTROL_ROOT/<instance>/control.cc. The root override is a thread-local under cfg(test) inside the crate; the reader tests and the Grant launch tests move in-crate to use it. The operator CLI's show derives its display line from the store it already read. An external forge probe and compile_fail examples pin the rule; the instance gate is pinned with same-length, prefix and extension forgeries, and the Persona refusal with a claim of every kind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 09:05:22 +02:00