Title: Revert content hash identity — use git ref instead · Issue #388 · EntityProcess/allagents · GitHub
Open Graph Title: Revert content hash identity — use git ref instead · Issue #388 · EntityProcess/allagents
X Title: Revert content hash identity — use git ref instead · Issue #388 · EntityProcess/allagents
Description: Summary The content hash identity system (PR #382) adds unnecessary complexity. Git repos already provide identity via url + ref (SHA/tag/branch). Computing content hashes of all skill files on every sync adds CPU overhead and code compl...
Open Graph Description: Summary The content hash identity system (PR #382) adds unnecessary complexity. Git repos already provide identity via url + ref (SHA/tag/branch). Computing content hashes of all skill files on eve...
X Description: Summary The content hash identity system (PR #382) adds unnecessary complexity. Git repos already provide identity via url + ref (SHA/tag/branch). Computing content hashes of all skill files on eve...
Opengraph URL: https://github.com/EntityProcess/allagents/issues/388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Revert content hash identity — use git ref instead","articleBody":"## Summary\n\nThe content hash identity system (PR #382) adds unnecessary complexity. Git repos already provide identity via `url + ref` (SHA/tag/branch). Computing content hashes of all skill files on every sync adds CPU overhead and code complexity for no practical benefit that `git rev-parse` doesn't already provide.\n\n## Problem\n\n- **Content hash = overkill for git-based plugins.** `git rev-parse HEAD` gives you the remote content SHA cheaply. Content hashes recompute on every sync.\n- **npm uses hashes for integrity, not identity.** npm's `package-lock.json` stores SHA-512 hashes to verify downloads weren't corrupted — it still identifies packages by name + version. allagents doesn't have the same supply chain attack surface (local git repos).\n- **gh CLI** uses a single binary with vendored deps — no runtime dependency resolution at all. Version = identity.\n- **Added complexity without practical benefit.** The `computeContentHash` function iterates all skill files and hashes them. This is wasted work when `git pull` + `git rev-parse HEAD` already tells you if content changed.\n\n## Proposal\n\nRevert the content hash system. The lock file should track:\n\n```typescript\ninterface PluginLockEntry {\n url: string; // plugin source\n ref: string; // git SHA/tag/branch (identity)\n lastSynced: number; // timestamp\n}\n```\n\n- `ref` (from `git rev-parse HEAD` after fetch) uniquely identifies content\n- `lastSynced` tells you when it was last fetched\n- No content hash computation needed\n\n## Scope\n\n- Remove `computeContentHash` from `sync.ts`\n- Remove `contentHash` from `LockFileEntry` interface\n- Simplify `updateLockEntry` to set `ref` + `lastSynced` only\n- Remove any hash comparison logic in `needsSync`\n- Update tests accordingly\n\n## Why\n\nThe content hash adds:\n- CPU overhead (hashing all skill files on every sync)\n- Code complexity (hash computation, comparison, migration)\n- No practical benefit over `git ref` identity\n\nVersion pinning (fixed git ref) + `git pull` is sufficient. This is what npm ultimately does (lock file = exact version, not hash-for-identity), and what git does natively (commit SHA = content identity).\n","author":{"url":"https://github.com/christso","@type":"Person","name":"christso"},"datePublished":"2026-05-12T21:35:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/388/allagents/issues/388"}
| 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:85946faa-7949-957a-4232-1829e82079a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B140:B5089:390281:5083D8:6A4E6AAE |
| html-safe-nonce | 91985fddfde25fa6b64fbe48645fc47e576d19397e17aa35a3d4e3b63677850d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQwOkI1MDg5OjM5MDI4MTo1MDgzRDg6NkE0RTZBQUUiLCJ2aXNpdG9yX2lkIjoiNTU0Njc2ODg0MDg1Mzk3MzY3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d670255978f74d09afedc06007d39a5a6627499cad10ae60cd12f976ec11d705 |
| hovercard-subject-tag | issue:4432804994 |
| 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/EntityProcess/allagents/388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77ca2da7bec342ac3b3f57cdd43c8da497ee758b4fd8efbd4eb6a5f1eb334c4d/EntityProcess/allagents/issues/388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77ca2da7bec342ac3b3f57cdd43c8da497ee758b4fd8efbd4eb6a5f1eb334c4d/EntityProcess/allagents/issues/388 |
| og:image:alt | Summary The content hash identity system (PR #382) adds unnecessary complexity. Git repos already provide identity via url + ref (SHA/tag/branch). Computing content hashes of all skill files on eve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | christso |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/EntityProcess/allagents git https://github.com/EntityProcess/allagents.git |
| octolytics-dimension-user_id | 8837957 |
| octolytics-dimension-user_login | EntityProcess |
| octolytics-dimension-repository_id | 1139437609 |
| octolytics-dimension-repository_nwo | EntityProcess/allagents |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1139437609 |
| octolytics-dimension-repository_network_root_nwo | EntityProcess/allagents |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width