Title: [EPIC] Phase 4B: Deterministic Context Retrieval & Cost Controls (forge-ai) · Issue #83 · elcode-id/elcode-forge · GitHub
Open Graph Title: [EPIC] Phase 4B: Deterministic Context Retrieval & Cost Controls (forge-ai) · Issue #83 · elcode-id/elcode-forge
X Title: [EPIC] Phase 4B: Deterministic Context Retrieval & Cost Controls (forge-ai) · Issue #83 · elcode-id/elcode-forge
Description: Context & Objective Implement deterministic, token-budgeted context retrieval (\ContextBuilder) wrapped in \UntrustedEnvelope\ with prompt-injection signal scanning, alongside strict cost controls: preflight token caps, BLAKE3 response c...
Open Graph Description: Context & Objective Implement deterministic, token-budgeted context retrieval (\ContextBuilder) wrapped in \UntrustedEnvelope\ with prompt-injection signal scanning, alongside strict cost controls:...
X Description: Context & Objective Implement deterministic, token-budgeted context retrieval (\ContextBuilder) wrapped in \UntrustedEnvelope\ with prompt-injection signal scanning, alongside strict cost contr...
Opengraph URL: https://github.com/elcode-id/elcode-forge/issues/83
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[EPIC] Phase 4B: Deterministic Context Retrieval & Cost Controls (forge-ai)","articleBody":"## Context & Objective\nImplement deterministic, token-budgeted context retrieval (\\ContextBuilder\\) wrapped in \\UntrustedEnvelope\\ with prompt-injection signal scanning, alongside strict cost controls: preflight token caps, BLAKE3 response caching in \\.eforge/ai-cache/\\, daily USD budget enforcement, and \\.eforge/ai-usage.jsonl\\ ledger tracking (PRD §20, §36, §39).\n\n## Architectural Invariants\n- Identical repository state + identical task and token budget must produce byte-for-byte identical \\ContextPack\\.\n- Repository source snippets and metadata are always wrapped inside \\UntrustedEnvelope\\ and scanned for prompt injection signals.\n- Cache files in \\.eforge/ai-cache/\\ never store API keys or auth headers.\n\n## Atomic Sub-Issues Checklist\n- [x] #89 (\\wave-11\\): \\\feat(forge-ai): deterministic token-budgeted context builder with untrusted envelope\\ (Completed via PR #99)\n- [x] #90 (\\wave-11\\): \\\feat(forge-ai): cost controls with budget enforcement, response cache, and usage ledger\\ (Completed via PR #100)","author":{"url":"https://github.com/luksluki","@type":"Person","name":"luksluki"},"datePublished":"2026-10-19T14:20:30Z","url":"https://github.com/elcode-id/elcode-forge/issues/83"}
| 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:60da142b-936e-c60b-4f25-edd7a8c7fbc8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9A6:103C51:1B3A703:25741B6:6B0593DB |
| html-safe-nonce | b22e875b63dd5b67aaff3fb1b7d11578a2d4557e308c3a917cf0c8e42ce9d97a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUE2OjEwM0M1MToxQjNBNzAzOjI1NzQxQjY6NkIwNTkzREIiLCJ2aXNpdG9yX2lkIjoiMjE4MTMxMTMyMzMxOTkzMTg2NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd14d6557d9453b12f42547a3493aaed2ff4c7e805ee2dceb14e470c00ca6d94 |
| hovercard-subject-tag | issue:5925632855 |
| 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/83/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2797938cb020119785d30fa9277f59ec2e385d806455ff6f2febc21c2af30168/elcode-id/elcode-forge/issues/83 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2797938cb020119785d30fa9277f59ec2e385d806455ff6f2febc21c2af30168/elcode-id/elcode-forge/issues/83 |
| og:image:alt | Context & Objective Implement deterministic, token-budgeted context retrieval (\ContextBuilder) wrapped in \UntrustedEnvelope\ with prompt-injection signal scanning, alongside strict cost controls:... |
| 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 | canary-1 |
| 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