Repository navigation
chore: add .cora.yaml review config and document cora workflow - #30
Merged
Merged
Conversation
- .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
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
.${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.cora scancadence, and the CICora Reviewcheck.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.yamlwith focus areas (security, performance, rules), custom rules, ignore patterns, hook settings, output settings.Testing
python3 -c "import yaml; yaml.safe_load(open('.cora.yaml'))"— YAML valid.cora review --stagedloads the config without errors.Related Issues
Closes #29