test(miner-plan): add prompt-packet builder and adversarial redaction suite (#2321) - #4061
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-07 20:18:05 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 4 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 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 Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4061 +/- ##
=======================================
Coverage 93.59% 93.59%
=======================================
Files 379 380 +1
Lines 35582 35594 +12
Branches 13049 13049
=======================================
+ Hits 33302 33314 +12
Misses 1618 1618
Partials 662 662
🚀 New features to boost your workflow:
|
Summary
packages/gittensory-engine/src/prompt-packet.ts— metadata-only analyze-phase prompt-packet builder (four text fields) with redaction/allowlist filtering over the canonicalPUBLIC_UNSAFE_TERMSandPUBLIC_LOCAL_PATH_INLINEvocabulary.test/unit/prompt-packet-redaction.test.ts— 93 parametrized adversarial tests: every unsafe-term family and local-path prefix (parsed from the regex sources, not hand-copied), injected into each packet field; double-jeopardy; byte-identical clean pass-through.@jsonbored/gittensory-enginebarrel.Closes #2321
Scope
PUBLIC_UNSAFE_TERMS× four packet fieldsPUBLIC_LOCAL_PATH_INLINE× four fieldsbuildPromptPacketprompt-packet.tswas not onmainyetChanged files
packages/gittensory-engine/src/prompt-packet.tsbuildPromptPacket,sanitizePromptPacketField, four-field packet shapepackages/gittensory-engine/src/index.tstest/unit/prompt-packet-redaction.test.tsValidation