Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(coverage): follow the core credential storage contract

Steven Enamakel4dc3d51b03e1
diff --git a/scripts/__tests__/rust-coverage-status.test.mjs b/scripts/__tests__/rust-coverage-status.test.mjs
index 50f290cf34..ec66603d7c 100644
--- a/scripts/__tests__/rust-coverage-status.test.mjs
+++ b/scripts/__tests__/rust-coverage-status.test.mjs
@@ -116,19 +116,19 @@ test("an integration target with all required product features runs", () => {
assert.match(result.output, /RAN-TARGET/);
});
-test("headless Embed coverage gets an isolated disposable encryption key", () => {
+test("headless Embed coverage forwards core features and preserves caller credentials", () => {
const result = withRunnerFunctions(
["llvm_cov_product_facade", "llvm_cov_embed"],
[
- 'PRODUCT_FEATURES="channels"',
+ 'CORE_PRODUCT_FEATURES="channels"',
"export OPENHUMAN_KEYRING_MASTER_KEY=operator-key",
"export OPENHUMAN_KEYRING_MASTER_KEY_FILE=operator-file",
- 'bash() { [[ "${OPENHUMAN_KEYRING_MASTER_KEY:-}" =~ ^[0-9a-f]{64}$ ]] || return 9; [[ -z "${OPENHUMAN_KEYRING_MASTER_KEY_FILE:-}" ]] || return 10; echo DISPOSABLE-KEY; }',
+ 'bash() { [[ "$OPENHUMAN_KEYRING_MASTER_KEY" == operator-key ]] || return 9; [[ "$OPENHUMAN_KEYRING_MASTER_KEY_FILE" == operator-file ]] || return 10; [[ "$*" == *"--features channels"* ]] || return 11; echo CORE-FEATURES; }',
].join("\n"),
'llvm_cov_embed --no-report -p openhuman-embed; [[ "$OPENHUMAN_KEYRING_MASTER_KEY" == operator-key ]]; [[ "$OPENHUMAN_KEYRING_MASTER_KEY_FILE" == operator-file ]]; echo PARENT-UNCHANGED',
);
assert.equal(result.status, 0, result.output);
- assert.match(result.output, /DISPOSABLE-KEY/);
+ assert.match(result.output, /CORE-FEATURES/);
assert.match(result.output, /PARENT-UNCHANGED/);
});