Skip to content

chore: add .cora.yaml review config and document cora workflow - #30

Merged
ajianaz merged 1 commit into
developfrom
chore/cora-config
Aug 27, 2026
Merged

ajianaz merged 1 commit into
developfrom
chore/cora-config

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds .${cora}.yaml` review configuration modeled on the org standard (uteke), with Tole-specific rules that encode intentional patterns (env-resolved credentials, argv-validated subprocess tools, wire-only redaction, loop-guard budget) and ignore rules for known FP categories.
  • Documents the three-level cora workflow in CONTRIBUTING.md: pre-commit hook with exit codes, manual cora scan cadence, and the CI Cora Review check.

Why

The repo runs cora review in CI and via the pre-commit hook, but has no .cora.yaml. Reviews run with default settings, so Tole-specific patterns that are safe by design risk false positives. The workflow was also undocumented beyond one line.

How

  • .cora.yaml with focus areas (security, performance, rules), custom rules, ignore patterns, hook settings, output settings.
  • CONTRIBUTING.md gains a "Cora Workflow" section.

Testing

  • python3 -c "import yaml; yaml.safe_load(open('.cora.yaml'))" — YAML valid.
  • cora review --staged loads the config without errors.
  • CI green on this PR.

Related Issues

Closes #29

- .cora.yaml modeled on the org standard (uteke): focus areas,
  Tole-specific rules encoding intentional patterns (env-resolved
  credentials, argv-validated subprocess tools, wire-only redaction,
  loop-guard budget), ignore rules for known FP categories
- CONTRIBUTING.md: document the three-level cora workflow (pre-commit
  hook, manual scan, CI check) with exit-code reference

Closes #29
@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 ff7053f into develop Aug 27, 2026
11 checks passed
@ajianaz
ajianaz deleted the chore/cora-config branch August 27, 2026 04:15
ajianaz added a commit that referenced this pull request Sep 22, 2026
…n families (#115)

Full cora scan on develop @116461c found 3 MAJORs; all fixed:
- #23 storage: a header line persisted WITHOUT its trailing newline
  (crash mid-header-write) parsed fine and open() handed back a live
  append writer — the next append glued a body line onto the
  newline-less header and bricked the session. open() now fails
  explicitly with a Corrupt error naming the recovery path
  (create_with()); regression test drives the real fixture (header
  bytes minus newline) through fail-open + recreate.
- #30 evals/replay: the incumbent-prompt extractor skipped escape
  sequences instead of decoding them (\n, \t, \", \\ vanished;
  \<newline> continuations mishandled), so the replay corpus would
  drift from the runtime prompt the moment the default prompt gains
  any escape. Decodes now follow Rust string-literal semantics;
  verified live: incumbent still scores 1.0 on the trace corpus.
- #31 evals/tier2 redaction: extends the secret families to GitHub
  ghs_/ghu_/ghr_ + GitLab glpat- + Slack xoxa- + AWS AKIA ids, with
  the stub helper kept in sync; verified all new families stub out
  with zero leakage and prose untouched.
Also: CODE_OF_CONDUCT.md still said 'Uteke' — de-vestigialized to tole.

Co-authored-by: ajianaz <[email protected]>
ajianaz added a commit that referenced this pull request Sep 22, 2026
…119) (#124)

- openai complete(): a non-2xx response is now surfaced as
  'http status: N — <scrubbed body snippet>' instead of being mangled
  by read_json into a misleading 'malformed response'. The phrasing
  is load-bearing: the turn loop's transient-retry classification
  (#66) matches 'http status:' so 429/5xx keep auto-retrying.
- git add lexical jail: reject Windows drive-letter absolute paths
  (C:\..., C:/...) that slipped past the '/'/'\\' checks (cora
  full-scan #30); colon at position 1 only, 'weird:name.txt' stays
  legal. Unit tests cover all four absolute shapes + relative pass.

Co-authored-by: ajianaz <[email protected]>
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: add .cora.yaml review config and document cora workflow in CONTRIBUTING

1 participant