docs(engine): add TSDoc to goal-model.ts - #5981
Conversation
Document the pure lane-fit scorer that MinerGoalSpec's path/label preferences compile down to: a module header, TSDoc on GoalModelInput's fields, a computeLaneFit block spelling out the exact precedence (blocked = hard veto -> no criteria = 0.5 neutral -> no match = 0 -> matched/active partial credit), and a compileGlobMatcher note on the supported glob tokens (*, **, ** + /, ?) and the unsupported ones (character classes, brace expansion). Comment-only; no behavior change. Closes JSONbored#5819
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-15 05:45:38 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Closes #5819.
Adds documentation to
packages/loopover-engine/src/goal-model.ts, which had zero doc comments despitecomputeLaneFitbeing referenced by name in the package README.Comment-only — +38 lines, all TSDoc/comments, zero executable lines changed or removed. No new lines/branches, so it does not add to Codecov's
src/**patch-coverage surface; behavior is unchanged.Deliverable
MinerGoalSpecpath/label preferences compile down to, consumed byminer-goal-lane-fit.tsandopportunity-metadata.ts'scomputeMetadataLaneFit.GoalModelInput— TSDoc on each field.computeLaneFit— spells out the exact precedence:blockedPaths/blockedLabelshard-veto →0; nowantedPaths/preferredLabelsconfigured → neutral0.5; configured but no match →0; otherwisematchedDimensions / activeDimensionspartial credit (incl. the note that0.5is reachable two ways).compileGlobMatcher— documents supported glob tokens (*,**,**+/,?) and unsupported ones (character classes, brace expansion), plus its case-insensitive / backslash-normalized matching.Validation
tsxagainst the current source: the documented rules were verified against actual output (neutral0.5, veto0, both-match1, one-of-two0.5, no-match0).test/goal-model.test.tsimports the builtdist/(comments are stripped at build), so runtime behavior is unaffected.