Title: feat(forge-rules): declarative custom rule schema, IR models, and rule loader · Issue #110 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-rules): declarative custom rule schema, IR models, and rule loader · Issue #110 · elcode-id/elcode-forge
X Title: feat(forge-rules): declarative custom rule schema, IR models, and rule loader · Issue #110 · elcode-id/elcode-forge
Description: Part of Epic #109 (Phase 5A). Description Implement the core declarative rule data structures and loader in crates/forge-rules (src/declarative.rs) and extend ForgeConfig in crates/forge-core. Requirements Data Model: DeclarativeRule: id...
Open Graph Description: Part of Epic #109 (Phase 5A). Description Implement the core declarative rule data structures and loader in crates/forge-rules (src/declarative.rs) and extend ForgeConfig in crates/forge-core. Requ...
X Description: Part of Epic #109 (Phase 5A). Description Implement the core declarative rule data structures and loader in crates/forge-rules (src/declarative.rs) and extend ForgeConfig in crates/forge-core. Requ...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/110
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-rules): declarative custom rule schema, IR models, and rule loader","articleBody":"Part of Epic #109 (Phase 5A).\n\n### Description\nImplement the core declarative rule data structures and loader in crates/forge-rules (src/declarative.rs) and extend ForgeConfig in crates/forge-core.\n\n### Requirements\n1. **Data Model:**\n - DeclarativeRule: id, name, category (Architecture|Quality|Security|Dependencies), severity (Critical|High|Medium|Low|Info), confidence, description, matcher, remediation, source (Builtin|Pack|Custom).\n - Canonical rule ID format: \u003ccategory>/\u003ckebab-case> (e.g. \u0007rch/no-db-in-handlers).\n2. **Rule Loader:**\n - Scan and parse .eforge/rules/*.yaml and .eforge/rules/*.json.\n - Support configured custom rule paths from eforge.config.yaml (\rules.custom_packs).\n - Enforce canonical path resolution (path_guard) to prevent path traversal.\n - Propagate clear, descriptive parsing errors (ForgeError::Config) with zero unwrap/panic.\n3. **Unit Tests:**\n - Valid rule loading, syntax validation errors, malformed YAML handling, and path traversal rejection.","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-20T06:08:33Z","url":"https://github.com/elcode-id/elcode-forge/issues/110"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55bfebc1-f511-3c08-eb1d-4d1b742390d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8BA:A0366:1D0E03:280006:6B05999C |
| html-safe-nonce | c4e96ca820544f04da62674b92c8cdd5f39bcec960ba2e36efd3ac7def78d092 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEJBOkEwMzY2OjFEMEUwMzoyODAwMDY6NkIwNTk5OUMiLCJ2aXNpdG9yX2lkIjoiNjU2ODUzMjE5MzI2MDcwNjIwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 623cd220f9d2d7bbe5eccdcaad654dc15fdc0ecc12453506c2518985d4b96d8b |
| hovercard-subject-tag | issue:5936844271 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/elcode-id/elcode-forge/110/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ad8215d1fc294b8a2ec7bc6d5e5ce43b4938fccdae5efcc89a862991876ce6d/elcode-id/elcode-forge/issues/110 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ad8215d1fc294b8a2ec7bc6d5e5ce43b4938fccdae5efcc89a862991876ce6d/elcode-id/elcode-forge/issues/110 |
| og:image:alt | Part of Epic #109 (Phase 5A). Description Implement the core declarative rule data structures and loader in crates/forge-rules (src/declarative.rs) and extend ForgeConfig in crates/forge-core. Requ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | luksluki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8bd54b96ae4db60ce608a145a6b2fb16216749fbdb431d9879aabfa7459f1139 |
| turbo-cache-control | no-preview |
| go-import | github.com/elcode-id/elcode-forge git https://github.com/elcode-id/elcode-forge.git |
| octolytics-dimension-user_id | 337957755 |
| octolytics-dimension-user_login | elcode-id |
| octolytics-dimension-repository_id | 1423983661 |
| octolytics-dimension-repository_nwo | elcode-id/elcode-forge |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1423983661 |
| octolytics-dimension-repository_network_root_nwo | elcode-id/elcode-forge |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cda4791073b4da3005eb3d470dc0aef3956bbe34 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width