Title: feat(forge-git): collect commit log and HEAD revision for hotspot analysis · Issue #56 · elcode-id/elcode-forge · GitHub
Open Graph Title: feat(forge-git): collect commit log and HEAD revision for hotspot analysis · Issue #56 · elcode-id/elcode-forge
X Title: feat(forge-git): collect commit log and HEAD revision for hotspot analysis · Issue #56 · elcode-id/elcode-forge
Description: Context & Objective Provide deterministic git metadata for the ReportBundle: HEAD revision (sha + commit timestamp) and a commit log compatible with compute_hotspots_from_log. Branch Name: feat/forge-056-git-log-and-revision Parent Epic:...
Open Graph Description: Context & Objective Provide deterministic git metadata for the ReportBundle: HEAD revision (sha + commit timestamp) and a commit log compatible with compute_hotspots_from_log. Branch Name: feat/for...
X Description: Context & Objective Provide deterministic git metadata for the ReportBundle: HEAD revision (sha + commit timestamp) and a commit log compatible with compute_hotspots_from_log. Branch Name: feat...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/56
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(forge-git): collect commit log and HEAD revision for hotspot analysis","articleBody":"## Context & Objective\nProvide deterministic git metadata for the `ReportBundle`: HEAD revision (sha + commit timestamp) and a commit log compatible with `compute_hotspots_from_log`.\n\n- **Branch Name:** `feat/forge-056-git-log-and-revision`\n- **Parent Epic:** EPIC #53 (Phase 3A)\n- **DAG Dependencies:** None (entry point of Phase 3)\n- **Estimated Size:** \u003c 200 LOC\n\n## Crate & File Target\n- `crates/forge-git/src/log.rs` *(NEW)*\n- `crates/forge-git/src/lib.rs` *(MODIFY)*\n\n## Strict Input/Output Rust Type Contract\n```rust\n#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]\npub struct GitRevision {\n pub head_sha: String,\n pub commit_unix_ts: i64,\n}\n\npub fn read_head_revision(repo_root: &Path) -> Result\u003cOption\u003cGitRevision>, ForgeError>;\npub fn collect_commit_log(repo_root: &Path, max_commits: usize) -> Result\u003cString, ForgeError>;\n```\n\n## Security & Determinism Notes\n- Invoke the `git` binary directly with fixed argument vectors (no shell, no repository scripts).\n- Return `Ok(None)` / empty log when `repo_root` is not a git repository or `git` is unavailable.\n\n## Definition of Done (Tier 1 Verification Gate)\n```bash\ncargo fmt --package forge-git -- --check\ncargo clippy --package forge-git --all-targets -- -D warnings\ncargo test --package forge-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:02Z","url":"https://github.com/elcode-id/elcode-forge/issues/56"}
| 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:aeb5c6e1-c61a-6b57-c7b7-01a76984b9a9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E970:1F9C:1379944:1A9E481:6B059818 |
| html-safe-nonce | b4d3ddd36fa17c112cdd147ac0017078637257937d32d9a924e104c9b361e362 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTcwOjFGOUM6MTM3OTk0NDoxQTlFNDgxOjZCMDU5ODE4IiwidmlzaXRvcl9pZCI6IjI1MzUwNTI1NDc4NzQ3MjM4NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 20a91ed7e474ca57e98fa7f8eb3370d6f2cc8ee975f26db0588d6cceb0cfc15d |
| hovercard-subject-tag | issue:5919650051 |
| 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/56/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fbd044e037ec2da04e2a2506c9e014bcbc06c444d319e02b03cf608e542ab61a/elcode-id/elcode-forge/issues/56 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fbd044e037ec2da04e2a2506c9e014bcbc06c444d319e02b03cf608e542ab61a/elcode-id/elcode-forge/issues/56 |
| og:image:alt | Context & Objective Provide deterministic git metadata for the ReportBundle: HEAD revision (sha + commit timestamp) and a commit log compatible with compute_hotspots_from_log. Branch Name: feat/for... |
| 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