Skip to content

chore(cora): drop the stale durable-log rule and fix a file name in .cora.yaml - #673

Merged
ajianaz merged 2 commits into
developfrom
chore/cora-yaml-rules
Nov 13, 2026
Merged

ajianaz merged 2 commits into
developfrom
chore/cora-yaml-rules

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

What

Updates two of the four reviewer rules in .cora.yaml. Closes #668.

Depends on: nothing; based on develop.

Why

  • The durable-log rule was stale and hid real findings. It said "the durable log intentionally keeps the original text locally; redaction is wire-only by design. Do not flag missing redaction on durable log writes." Since feat(storage): store the redacted form in the session log #596 and feat(storage)!: the session log stores the redacted form #634 the session log stores the redacted form: storage.rs redacts every entry payload and the pinned system prompt with the process SecretSet before the line is written. The old rule told the reviewer to ignore exactly the class of bug that is now a regression.
  • The subprocess rule named a file that no longer exists: uteke_search.rs, which is uteke.rs today.

Changes

  • The durable-log rule now asks for findings instead of suppressing them: a durable write (session log, ledger, usage record) that can carry a secret without going through the redaction is a real finding.
  • The subprocess rule lists uteke.rs instead of uteke_search.rs.
  • I checked the other two rules and left them unchanged:
    • The api_key fields rule still holds: OpenAiConfig.api_key (crates/tole-core/src/openai.rs:111) is filled from TOLE_API_KEY / OPENAI_API_KEY at runtime, never hardcoded.
    • The loop-guard rule still holds: LOOP_TRIP_AFTER = 3 in crates/tole-core/src/turn.rs:33, and the guard trips after 3 identical consecutive calls.
  • The rest of the subprocess rule still matches the code: Command::new with argv arrays in cora_search.rs, gh.rs, uteke.rs and subprocess.rs.

Testing

  • cora review --no-llm --staged: ran clean; the config parses and no deterministic finding is raised.
  • No code changes, so the cargo gates are unaffected; CI runs them on this PR.

…cora.yaml

The rule said the durable log keeps the original text and told the
reviewer not to flag missing redaction on durable writes. Since #596 and
#634 the session log stores the redacted form, so the rule hid real
findings; it now asks for them instead. The subprocess rule named
uteke_search.rs, which is uteke.rs today. Closes #668
@github-actions

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit faebec4 into develop Nov 13, 2026
15 checks passed
@ajianaz
ajianaz deleted the chore/cora-yaml-rules branch November 20, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants