Title: fix(forge-core): quote-aware YAML comment stripping & per-file findings cache contract · Issue #257 · elcode-id/elcode-forge · GitHub
Open Graph Title: fix(forge-core): quote-aware YAML comment stripping & per-file findings cache contract · Issue #257 · elcode-id/elcode-forge
X Title: fix(forge-core): quote-aware YAML comment stripping & per-file findings cache contract · Issue #257 · elcode-id/elcode-forge
Description: Part of #256. Scope Fix inline # comment stripping in crates/forge-core/src/config.rs (parse_config_yaml) so # characters inside single-quoted or double-quoted strings (such as URLs, globs, or regex patterns) are preserved intact. Add Ca...
Open Graph Description: Part of #256. Scope Fix inline # comment stripping in crates/forge-core/src/config.rs (parse_config_yaml) so # characters inside single-quoted or double-quoted strings (such as URLs, globs, or rege...
X Description: Part of #256. Scope Fix inline # comment stripping in crates/forge-core/src/config.rs (parse_config_yaml) so # characters inside single-quoted or double-quoted strings (such as URLs, globs, or rege...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/257
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(forge-core): quote-aware YAML comment stripping & per-file findings cache contract","articleBody":"Part of #256.\n\n## Scope\n- Fix inline `#` comment stripping in `crates/forge-core/src/config.rs` (`parse_config_yaml`) so `#` characters inside single-quoted or double-quoted strings (such as URLs, globs, or regex patterns) are preserved intact.\n- Add `CachedFileFindings`, `FileFindingsCache`, and `FILE_FINDINGS_CACHE_FILENAME` (`\"file_findings_index.json\"`) to `crates/forge-core/src/cache.rs` and re-export them from `crates/forge-core/src/lib.rs`.\n- Ensure `FileFindingsCache` tracks `config_hash` and `analyzer_version` and invalidates cleanly when configuration or engine version changes.\n\n## Out of scope\n- Replacing the custom YAML parser with external `serde_yaml` (which is deprecated in the Rust ecosystem).\n- Altering existing `eforge.config.yaml` schema fields or precedence.\n\n## Acceptance criteria\n- Quoted configuration values containing `#` (e.g. `allowlist: [\"src/test#1.ts\", \"docs/url#anchor.md\"]`) parse completely without truncation.\n- `FileFindingsCache::load`, `save`, and `retain_files` serialize/deserialize deterministically via `.eforge/cache/file_findings_index.json`.\n- Zero compiler or clippy warnings across the workspace (`-- -D warnings`).\n\n## Technical notes\n- Implement `strip_yaml_inline_comment(raw_line: &str) -> &str` tracking `in_single_quote`, `in_double_quote`, and `\\` escapes inside double quotes, stripping `#` only outside quotes when at start-of-line or preceded by whitespace.\n- Ensure `FileFindingsCache::save` creates parent `.eforge/cache` directories atomically without `.unwrap()` or `.expect()`.\n\n## Dependencies\n- Blocked by: none (Wave 0 root foundation for Phase 11 #256).\n\n## Definition of Done\n- [ ] Code implemented in `crates/forge-core/src/{config.rs,cache.rs,lib.rs}`.\n- [ ] Unit tests added for `#` inside quoted YAML strings and `FileFindingsCache` roundtrip & invalidation.\n- [ ] Tier 3 local CI verification passes (`cargo fmt --all -- --check`, `cargo clippy --workspace --all-targets -- -D warnings`, `cargo test --workspace --lib --bins`).\n- [ ] `docs/ARCHITECTURE_STATE.md` updated and PR squash-merged to `develop` after 100% green CI.\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-11-17T05:25:47Z","url":"https://github.com/elcode-id/elcode-forge/issues/257"}
| 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:a91008c9-0612-8c56-cc60-e26e04a10a52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E2E:3B6A24:1B104E4:2550115:6B0596C8 |
| html-safe-nonce | 1ea82dd7f1369ea302a35d9abe660e2eeda99cf478e1900b05b4dcdd530d44fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTJFOjNCNkEyNDoxQjEwNEU0OjI1NTAxMTU6NkIwNTk2QzgiLCJ2aXNpdG9yX2lkIjoiNjg0MjA2NDgzMDU0ODI1MjM2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f9083b0ad27a03e8924f44ad98c67d857320b605ff595fc7c2effd9e99f94892 |
| hovercard-subject-tag | issue:6438043352 |
| 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/257/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97c4cab18c4a0d826730ddb29fde9eb067d6db8af543c5ca9bbffe8118daa143/elcode-id/elcode-forge/issues/257 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97c4cab18c4a0d826730ddb29fde9eb067d6db8af543c5ca9bbffe8118daa143/elcode-id/elcode-forge/issues/257 |
| og:image:alt | Part of #256. Scope Fix inline # comment stripping in crates/forge-core/src/config.rs (parse_config_yaml) so # characters inside single-quoted or double-quoted strings (such as URLs, globs, or rege... |
| 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 | 3b72fd2385d76a50ce0fe937d50bb4a81434432c4fd47866074a26f6cd03623f |
| 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 | 58e2bd32336f3dcee343ec627a4d09c7c444e214 |
| 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