Skip to content

chore(cora): .cora.yaml tells the reviewer the durable log keeps raw text, stale since #634 #668

Closed

Description

@ajianaz

What happened

.cora.yaml has a reviewer rule saying: "The scrub() function in openai.rs replaces the provider API key in outgoing wire content (E11 redaction). The durable log intentionally keeps the original text locally; redaction is wire-only by design. Do not flag missing redaction on durable log writes."

That stopped being true with #634 (feat(storage): store the redacted form in the session log): JsonlStorage::commit now redacts every entry payload with the process SecretSet before the line is encoded, and the entry names what it hid. The rule now tells the CI reviewer to ignore exactly the class of finding that matters most for the log (a write path that forgets to redact), so it can hide a real regression.

Expected

The rule reflects the current design, or is removed. Suggested wording: the durable session log stores the redacted form (#596, #634); do flag any new write to the session log, the ledger, the plugin ledger or an export that does not go through the SecretSet; scrub() in openai.rs is the wire-side redaction and is a second pass.

Notes

While there, check the other three rules in .cora.yaml for the same kind of drift (api_key identifiers, subprocess argv arrays, the loop guard) against the code as it is now, and note in the PR which ones were re-verified.

Found while testing Cora's code intelligence on develop (see the tracking issue for Cora evaluation findings).

Before submitting

  • I searched existing issues and didn't find a duplicate

Activity

  1. added
    bug
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions