Sync follow-ups: the report's sentence, and the fork's name in the OSV user agent with its skills-switch case (#21, #22) #23

Merged
pluto merged 3 commits from pluto/21-22-sync-followups into main 2026-11-27 13:15:22 +00:00
Member

Three commits, one branch, both issues. #22a is the last commit on purpose, so it can be dropped alone if the fork patch is ever not wanted.

#21, the report's sentence (one line). martha/sync/report_the_sync_for_a_pull_request.sh no longer says "Upstream's CI and the fork's checks passed"; since martha-ai/martha-engine#18 there is no upstream job, and this is the sentence a member reads at the moment they are told to open the sync's pull request. It now says the fork's checks passed on the tip, at the run id. Nothing else asserts that text.

#22, the OSV user agent (FORK PATCH, inside upstream's crate). crates/oi-kit-agent/src/mcp/malware_check.rs sends martha-engine-osv-check/1.1 (+https://osv.dev) again instead of upstream's goose-osv-check/1.1, and crates/oi-kit-agent/Cargo.toml carries martha-engine-name = { path = "../martha-engine-name" }, declared as goose-cli declares it, with the Cargo.lock edge. Both places carry a comment naming this fork patch and saying the next sync resolves a conflict here by keeping our line, not upstream's. It cannot live outside the crate: http_client() is private and the header is a static value.

#22, the skills switch (one fork-only test file). crates/oi-kit-agent/tests/martha_engine_switch.rs holds the one case the sync left unpinned: skills are offered by default, so load_skill reaches the model and the prompt names the skills. Of the seven cases deleted with advertised_tools.rs, three are already answered by upstream's own tests/skill_operation.rs and three rested on a metadata mechanism upstream removed with the state machine's move, which tests/unadvertised_tools.rs now covers differently; the file's header records that mapping.

Local proofs, all green: cargo fmt --check; cargo clippy -p oi-kit-agent --all-targets -- -D warnings; cargo test -p oi-kit-agent, 214 tests across 17 binaries; the gate's own build (--bin martha-engine --no-default-features --features portable-default) and martha/checks/run.sh, 7 of 7; cargo test -p goose --lib --no-default-features --features portable-default, 2432 passed; and the header read out of the built binary, martha-engine-osv-check present at 1 and goose-osv-check absent.

Not done here, by ruling: no new check for the names_carry_name.sh blind spot (it looks for martha-engine/<version> and goose/<version>, so a goose-osv-check/1.1 literal passes it); a new check needs the owner's yes.

Refs martha-ai/martha-engine#21
Refs martha-ai/martha-engine#22
Refs martha-ai/martha-engine#18

Three commits, one branch, both issues. #22a is the last commit on purpose, so it can be dropped alone if the fork patch is ever not wanted. **#21, the report's sentence (one line).** `martha/sync/report_the_sync_for_a_pull_request.sh` no longer says "Upstream's CI and the fork's checks passed"; since martha-ai/martha-engine#18 there is no upstream job, and this is the sentence a member reads at the moment they are told to open the sync's pull request. It now says the fork's checks passed on the tip, at the run id. Nothing else asserts that text. **#22, the OSV user agent (FORK PATCH, inside upstream's crate).** `crates/oi-kit-agent/src/mcp/malware_check.rs` sends `martha-engine-osv-check/1.1 (+https://osv.dev)` again instead of upstream's `goose-osv-check/1.1`, and `crates/oi-kit-agent/Cargo.toml` carries `martha-engine-name = { path = "../martha-engine-name" }`, declared as `goose-cli` declares it, with the Cargo.lock edge. Both places carry a comment naming this fork patch and saying the next sync resolves a conflict here by keeping our line, not upstream's. It cannot live outside the crate: `http_client()` is private and the header is a static value. **#22, the skills switch (one fork-only test file).** `crates/oi-kit-agent/tests/martha_engine_switch.rs` holds the one case the sync left unpinned: skills are offered by default, so `load_skill` reaches the model and the prompt names the skills. Of the seven cases deleted with `advertised_tools.rs`, three are already answered by upstream's own `tests/skill_operation.rs` and three rested on a metadata mechanism upstream removed with the state machine's move, which `tests/unadvertised_tools.rs` now covers differently; the file's header records that mapping. **Local proofs, all green:** `cargo fmt --check`; `cargo clippy -p oi-kit-agent --all-targets -- -D warnings`; `cargo test -p oi-kit-agent`, 214 tests across 17 binaries; the gate's own build (`--bin martha-engine --no-default-features --features portable-default`) and `martha/checks/run.sh`, 7 of 7; `cargo test -p goose --lib --no-default-features --features portable-default`, 2432 passed; and the header read out of the built binary, `martha-engine-osv-check` present at 1 and `goose-osv-check` absent. **Not done here, by ruling:** no new check for the `names_carry_name.sh` blind spot (it looks for `martha-engine/<version>` and `goose/<version>`, so a `goose-osv-check/1.1` literal passes it); a new check needs the owner's yes. Refs martha-ai/martha-engine#21 Refs martha-ai/martha-engine#22 Refs martha-ai/martha-engine#18
martha-engine#18 removed upstream's CI from the sync's gate, and the report job's summary kept
telling every member that "Upstream's CI and the fork's checks passed". It is the sentence a
person reads at the moment they are told to open the sync's pull request, and it has named a job
that no longer exists since #18 landed.

The report now says the fork's checks passed on the tip, at the run id, and nothing about a gate
that is gone. The rest of the summary stands as it was: the compare link, the command that opens
the pull request, and the merge job's warning about a workflow the merge adds.

Every other place that claimed upstream's CI was brought into line by #18: martha/sync/README.md
says the fork's checks are all that runs, its cost table drops upstream's CI, and the sync
workflow's header names the removal.

Refs martha-ai/martha-engine#21
The sync deleted crates/goose/src/agents/state_machine/tests/advertised_tools.rs with upstream's
state machine move. Three of its seven cases are still answered by upstream's own
tests/skill_operation.rs: skills switched off are not offered, a load_skill call is not answered,
and a skill the user types still runs. One was not covered anywhere: that skills are offered by
default, meaning load_skill reaches the model and the prompt names the skills.

That case lives here, in crates/oi-kit-agent/tests/martha_engine_switch.rs. The file is the fork's
own: upstream has no such path, integration tests are discovered by directory, so no manifest
changes and the next sync merges nothing here unless upstream restructures the crate.

The other three cases are not ported, and the file's header says why: they rested on the
advertised-tools note the deleted file read out of message metadata, upstream removed that
mechanism with the move, and its replacement (each reply judged against the tools of the request
that produced it) is already pinned by tests/unadvertised_tools.rs.

Refs martha-ai/martha-engine#22
The OSV user agent carries the fork's engine name, named as a fork patch
Some checks were skipped
CI / changes (pull_request) Has been skipped
CI / Check Rust Code Format (pull_request) Has been skipped
CI / Build and Test Rust Project (pull_request) Has been skipped
CI / Lint Rust Code (pull_request) Has been skipped
martha-engine checks / The evidence keeps the model server's log (pull_request) Has been skipped
martha-engine checks / Build the engine and run the fork's checks (pull_request) Has been skipped
357596945a
The sync put upstream's literal back: the OSV check sent "goose-osv-check/1.1 (+https://osv.dev)"
from the fork's own binary, because oi-kit-agent had no martha-engine-name dependency and the
branded line did not compile there. Every header the fork sends carries its engine's name, so this
one does again.

This is a fork patch inside upstream's crate, and it is marked as one in both places it lives:
a comment above the header in malware_check.rs and one above the dependency in Cargo.toml, each
naming this issue and saying the next sync resolves a conflict here by keeping our line.

It cannot live outside the crate: http_client() is private and the header is a static value, so
the fork has no other place to set it. The cost is one line in src, one in the manifest, and the
Cargo.lock edge that goose and goose-cli already carry.

What the gate cannot see: martha/checks/names_carry_name.sh looks for "martha-engine/<version>"
present and "goose/<version>" absent, so a "goose-osv-check/1.1" literal passes it. This commit's
proof is read out of the built binary instead: martha-engine-osv-check present, goose-osv-check
absent.

Refs martha-ai/martha-engine#22
pluto merged commit 893715e710 into main 2026-11-27 13:15:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
martha-ai/martha-engine!23
No description provided.