No description
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
speedi57 a411bd5cf6
All checks were successful
Validate rules / validate (push) Successful in 25s
Update nexus/kodus-config.yml
2026-09-10 23:42:41 +00:00
.gitea/workflows Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
.kody-rules/review refactor: reduce low-value Hermes review findings (#8) 2026-09-04 09:49:04 +00:00
docs refactor: align review ruleset with Hermes and reduce false positives (#6) 2026-09-04 08:54:01 +00:00
nexus Update nexus/kodus-config.yml 2026-09-10 23:42:41 +00:00
schema refactor: align review ruleset with Hermes and reduce false positives (#6) 2026-09-04 08:54:01 +00:00
scripts Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
test test: add semantic regression corpus for Hermes rules (#9) 2026-09-04 10:07:20 +00:00
.gitignore Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
CONTRIBUTING.md Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
default-kodus-config.yml Initialize Centralized Config for Kodus Code Review 2026-08-14 17:52:00 +00:00
kodus-config.yml Initialize Centralized Config for Kodus Code Review 2026-08-14 17:52:00 +00:00
MANIFEST.json refactor: reduce low-value Hermes review findings (#8) 2026-09-04 09:49:04 +00:00
package-lock.json Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
package.json Rule schema, validation, docs, and new security rules (#3) (#4) 2026-08-31 22:04:44 +00:00
README.md refactor: align review ruleset with Hermes and reduce false positives (#6) 2026-09-04 08:54:01 +00:00

Kodus-rules

Machine-readable code-review policy consumed by Hermes when reviewing repositories and pull requests. The repository name reflects the Kodus-style review model and configuration, but Hermes is the review engine that loads and interprets these rules.

The goal is high-signal review: prioritize demonstrable security, correctness, reliability and performance defects; avoid speculative findings and avoid turning stylistic or project-specific preferences into blocking issues.

Repository layout

  • .kody-rules/review/*.yml — atomic review rules validated against schema/kody-rule.schema.json.
  • schema/ — schemas for rules and MANIFEST.json.
  • MANIFEST.json — ruleset/schema version and rule count.
  • docs/HERMES_REVIEW_CONTRACT.md — mandatory interpretation and anti-false-positive contract for Hermes.
  • docs/SEVERITY.md — severity and review-verdict semantics.
  • docs/FINDING_FORMAT.md — canonical finding format.
  • docs/CONTEXT_CONTRACT.md — precedence of repository/project context over the base ruleset.
  • docs/VERSIONING.md — pinning, compatibility and failure behaviour.
  • scripts/ and test/ — schema/invariant validation and manifest checks.
  • default-kodus-config.yml — upstream/reference Kodus configuration; it is context/reference material, not the identity of the review engine.

Hermes review principles

  1. Review changed code first and use surrounding repository context only to prove or disprove a finding.
  2. Emit a finding only when a concrete code path and impact can be demonstrated from available evidence.
  3. Do not infer missing architecture, authorization, deployment or runtime behaviour when the repository does not provide evidence for it.
  4. Deduplicate findings that describe the same root cause; prefer the most specific applicable rule.
  5. Security/correctness/reliability rules may block when evidence and severity justify it. Architecture, maintainability and style preferences are non-blocking unless repository context explicitly promotes them.
  6. Project-specific instructions override generic architecture/style preferences but cannot downgrade a demonstrated critical security defect without an explicit, documented exception.

See docs/HERMES_REVIEW_CONTRACT.md for the complete contract.

Consuming this rule set

  1. Pin a specific commit SHA or annotated tag; never consume a floating branch for a reproducible review.
  2. Verify MANIFEST.json, its schemaVersion, and ruleCount.
  3. Validate every rule against schema/kody-rule.schema.json.
  4. Apply docs/HERMES_REVIEW_CONTRACT.md before emitting findings.
  5. Apply project context according to docs/CONTEXT_CONTRACT.md.
  6. Render accepted findings according to docs/FINDING_FORMAT.md and severity semantics.

For security-sensitive reviews, invalid or unavailable policy must fail closed as described in docs/VERSIONING.md.

Contributing

See CONTRIBUTING.md. Local validation:

npm install
npm run validate-rules
npm run check-manifest
npm test