You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found during a 2026-07-08 miner-roadmap audit. src/signals/local-scorer.ts's computeLocalScorerTokens is a 35-line pure function already documented (#782) as needing to run "in every surface (stdio package AND hosted Worker)" — the exact situation gittensory-engine exists to solve, but it was never actually moved there.
It depends only on the already-portable isCodeFile/isTestFile (extracted) plus 3 narrow type shapes currently defined in local-branch.ts, which is itself far too large and Node-coupled to move wholesale.
Deliverables
Extract computeLocalScorerTokens to packages/gittensory-engine/src/local-scorer.ts (or a suitable existing module)
Lift or narrowly duplicate the 3 type shapes it needs from local-branch.ts into the engine package's types/ — do not attempt to move local-branch.ts itself
src/signals/local-scorer.ts becomes a thin re-export shim
Export from the package's public entrypoint
Existing tests for this function pass unmodified against the moved implementation
Found during a 2026-07-08 miner-roadmap audit.
src/signals/local-scorer.ts'scomputeLocalScorerTokensis a 35-line pure function already documented (#782) as needing to run "in every surface (stdio package AND hosted Worker)" — the exact situationgittensory-engineexists to solve, but it was never actually moved there.It depends only on the already-portable
isCodeFile/isTestFile(extracted) plus 3 narrow type shapes currently defined inlocal-branch.ts, which is itself far too large and Node-coupled to move wholesale.Deliverables
computeLocalScorerTokenstopackages/gittensory-engine/src/local-scorer.ts(or a suitable existing module)local-branch.tsinto the engine package'stypes/— do not attempt to movelocal-branch.tsitselfsrc/signals/local-scorer.tsbecomes a thin re-export shimReferences
src/signals/local-scorer.ts(source function, feat(agent): local gittensor-root scorer MCP wrapper #782)src/signals/local-branch.ts(source of the 3 dependent type shapes — do not move this file itself)packages/gittensory-engine/src/signals/test-evidence.ts(extraction pattern to mirror)