Title: feat(forge-cli): implement deterministic ReportBundle and eforge report command · Issue #57 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-cli): implement deterministic ReportBundle and eforge report command · Issue #57 · elcode-id/elcode-forge
X Title: feat(forge-cli): implement deterministic ReportBundle and eforge report command · Issue #57 · elcode-id/elcode-forge
Description: Context & Objective Introduce the versioned ReportBundle (schema v1) — the single data contract consumed by the dashboard in both static (file) and live (eforge serve) modes — plus the eforge report command. Branch Name: feat/forge-0...
Open Graph Description: Context & Objective Introduce the versioned ReportBundle (schema v1) — the single data contract consumed by the dashboard in both static (file) and live (eforge serve) modes — plus the eforge r...
X Description: Context & Objective Introduce the versioned ReportBundle (schema v1) — the single data contract consumed by the dashboard in both static (file) and live (eforge serve) modes — plus the efor...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/57
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-cli): implement deterministic ReportBundle and eforge report command","articleBody":"## Context & Objective\nIntroduce the versioned `ReportBundle` (schema v1) — the single data contract consumed by the dashboard in both static (file) and live (`eforge serve`) modes — plus the `eforge report` command.\n\n- **Branch Name:** `feat/forge-057-cmd-report-bundle`\n- **Parent Epic:** EPIC #53 (Phase 3A)\n- **DAG Dependencies:** Requires #56 (Sub-Issue 3.1)\n- **Estimated Size:** \u003c 350 LOC\n\n## Crate & File Target\n- `crates/forge-cli/src/commands/report.rs` *(NEW)*\n- `crates/forge-cli/src/cli.rs` *(MODIFY)*\n- `crates/forge-cli/src/commands/mod.rs` *(MODIFY)*\n- `crates/forge-cli/src/lib.rs` *(MODIFY)*\n\n## Strict Input/Output Rust Type Contract\n```rust\npub const REPORT_SCHEMA_VERSION: u32 = 1;\n\n#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]\npub struct ReportBundle {\n pub schema_version: u32,\n pub tool_version: String,\n pub revision: Option\u003cGitRevision>,\n pub repository: Repository,\n pub architecture: ArchitectureSummary,\n pub hotspots: Vec\u003cHotspotEntry>,\n pub change_impact: Option\u003cChangeImpactReport>,\n pub change_risk: Option\u003cRiskReport>,\n}\n\n#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]\npub struct ArchitectureSummary {\n pub circular_dependencies: Vec\u003cVec\u003cString>>,\n pub high_centrality_modules: Vec\u003cString>,\n}\n\npub struct ReportOptions { pub hotspots_top_n: usize, pub include_git: bool }\n\npub fn build_report_bundle(repo_root: &Path, opts: &ReportOptions) -> Result\u003cReportBundle, ForgeError>;\n```\nCLI: `eforge report [--path \u003cDIR>] [-o \u003cFILE>] [--hotspots \u003cN>] [--no-git]` (JSON only).\n\n## Tests\n- Golden determinism test: building the bundle twice for `fixtures/next-app` yields byte-identical JSON.\n- Bundle contains the `src/services \u003c-> src/db` cycle and no wall-clock timestamp.\n\n## Definition of Done (Tier 2 Verification Gate)\n```bash\ncargo fmt --package forge-cli -- --check\ncargo clippy --package forge-cli --all-targets -- -D warnings\ncargo test --package forge-cli -- commands::report::tests\ncargo run --bin eforge -- report --path fixtures/next-app --no-git\n```\n## Global Invariants (AGENTS.md)\n- GitFlow: branch off `develop`, PR targets `develop`, squash-merge, update `docs/ARCHITECTURE_STATE.md`.\n- Zero-panic in `crates/forge-*` (no `unwrap/expect/panic/todo/unimplemented`); Rust core stays 100% UI-agnostic.\n- Determinism: identical repo state + config => byte-identical output (no wall-clock timestamps).\n- Repository text is hostile input: never rendered via `{@html}`, never executed.\n- Plan reference: Phase 3 Dashboard Plan (approved 2026-10-19).\r\n","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-19T07:23:06Z","url":"https://github.com/elcode-id/elcode-forge/issues/57"}
| 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:70c37735-baf8-326b-02bc-40eb12fd5852 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E998:3BA519:178B85:1FF9C3:6B05981B |
| html-safe-nonce | 50c15c04334f01220aa7c38840edc18be2ecbacc7a2fb086dd4e12fa3b07b46a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTk4OjNCQTUxOToxNzhCODU6MUZGOUMzOjZCMDU5ODFCIiwidmlzaXRvcl9pZCI6IjE2MTU3OTEwNTk2MDUyMzE2NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f4bb5a00a32bf627ae5daaf6b49d878212447b473ce8ffd5ca7a2742d21edcee |
| hovercard-subject-tag | issue:5919650745 |
| 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/57/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d704609424052a79676dcb377d316c8810396c9ebb58220bcee7ac43cec4e601/elcode-id/elcode-forge/issues/57 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d704609424052a79676dcb377d316c8810396c9ebb58220bcee7ac43cec4e601/elcode-id/elcode-forge/issues/57 |
| og:image:alt | Context & Objective Introduce the versioned ReportBundle (schema v1) — the single data contract consumed by the dashboard in both static (file) and live (eforge serve) modes — plus the eforge r... |
| 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