{"content":"[dev diary] commit 308fbb4 feat: harden ask master context packaging\n\nRound scope:\n- Phase-2 Task 2 for Ask Master context collector/packager/preview hardening\n- Keep work scoped; do not touch unrelated dirty files\n\nImplemented:\n- Added masterContextTypes, masterContextCollector, masterContextPackager, and shared masterContextSanitizer modules\n- Unified compact/standard context budget handling and public full_task -> standard mapping\n- Hardened preview and packager to share the same filtering rules for relevantFiles, artifacts, summaries, task text, and confirmation semantics\n- Fixed Windows backslash path handling and removed seed false positive in sensitive path detection\n- Redacted sensitive path snippets from userTask/question and blocked sensitive artifact labels/content/path leakage\n- Fixed daemon runtime so confirmationMode=never sends immediately instead of stalling at awaiting_confirmation\n- Added regression coverage for workspaceSummary leaks, raw preview sanitization, artifact char budget, full_task mapping, confirmationMode=never, runtime no-confirm send path, and task/artifact path redaction\n\nVerification:\n- npm run build\n- node --test tests/master/masterContextPackager.test.mjs tests/master/masterPreview.test.mjs tests/master/masterAskFlow.test.mjs\n- node --test tests/master/*.test.mjs\n- Final master suite status: 53/53 passing\n\nReview/testing:\n- Multiple gpt-5.4 review/test subagents were used during this round\n- Fixed findings around summary leaks, preview bypasses, Windows path handling, confirmationMode runtime behavior, question/goal/constraints leakage, artifact label/content leakage, and task text leakage\n\nKnown next step (not done in this commit):\n- Phase-2 Task 3 / host adapter integration: wire runtime entrypoints to actually collect host-visible context through collector+packager instead of consuming only preassembled drafts","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}