sidequestor 0.2.10__tar.gz → 0.2.11.dev0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/PKG-INFO +27 -1
  2. sidequestor-0.2.10/src/sidequestor.egg-info/PKG-INFO → sidequestor-0.2.11.dev0/README.md +26 -13
  3. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/pyproject.toml +1 -1
  4. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/__init__.py +1 -1
  5. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/dashboard.html +9 -7
  6. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/approval-helper.py +11 -1
  7. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/dashboard-server.py +9 -1
  8. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-onboarding/SKILL.md +1 -1
  9. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/SKILL.md +6 -5
  10. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-dispatch/SKILL.md +11 -1
  11. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-reactions/SKILL.md +47 -5
  12. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/tick.py +10 -3
  13. sidequestor-0.2.10/README.md → sidequestor-0.2.11.dev0/src/sidequestor.egg-info/PKG-INFO +39 -0
  14. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/dashboard_review_preview.cjs +7 -0
  15. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_approval_failure.py +29 -0
  16. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_initial_run_gate.py +14 -1
  17. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_update_check.py +16 -0
  18. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/LICENSE +0 -0
  19. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/MANIFEST.in +0 -0
  20. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/setup.cfg +0 -0
  21. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/__main__.py +0 -0
  22. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/build_info.py +0 -0
  23. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/cli.py +0 -0
  24. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/credential_setup.py +0 -0
  25. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/dashboard.py +0 -0
  26. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/isolated.py +0 -0
  27. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/job_path.py +0 -0
  28. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/launchd.py +0 -0
  29. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/migrations.py +0 -0
  30. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/native.py +0 -0
  31. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/onboarding.py +0 -0
  32. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/package_data/OPERATING.md +0 -0
  33. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/package_data/env.example +0 -0
  34. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/package_data/settings.json.example +0 -0
  35. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/quest_terminal.py +0 -0
  36. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/resources.py +0 -0
  37. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/dashboard-quest-visualizer.css +0 -0
  38. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/dashboard-quest-visualizer.js +0 -0
  39. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/theme-branding.css +0 -0
  40. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/theme-branding.js +0 -0
  41. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/approval_state.py +0 -0
  42. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/approval_store.py +0 -0
  43. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-knows-its-pretty-thank-you.png +0 -0
  44. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/assets/sidequestor-mark.png +0 -0
  45. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/approval.py +0 -0
  46. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/approval.watch.json +0 -0
  47. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/cron-due.py +0 -0
  48. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/email.lag +0 -0
  49. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/email.py +0 -0
  50. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/email.watch.json +0 -0
  51. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github.py +0 -0
  52. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.lag +0 -0
  53. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.py +0 -0
  54. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_issue.watch.json +0 -0
  55. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.lag +0 -0
  56. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.py +0 -0
  57. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/github_pr.watch.json +0 -0
  58. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.py +0 -0
  59. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/health_issue.watch.json +0 -0
  60. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/jira.lag +0 -0
  61. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/jira.py +0 -0
  62. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/jira.watch.json +0 -0
  63. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion.py +0 -0
  64. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.py +0 -0
  65. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_comments.watch.json +0 -0
  66. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.py +0 -0
  67. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_data_source.watch.json +0 -0
  68. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.py +0 -0
  69. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_page.watch.json +0 -0
  70. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_store.py +0 -0
  71. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/notion_tree.py +0 -0
  72. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/reactions.py +0 -0
  73. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/result.py +0 -0
  74. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/schedule.py +0 -0
  75. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/schedule.watch.json +0 -0
  76. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.py +0 -0
  77. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_channel.watch.json +0 -0
  78. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.py +0 -0
  79. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_dm.watch.json +0 -0
  80. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.lag +0 -0
  81. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.py +0 -0
  82. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_mention.watch.json +0 -0
  83. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.py +0 -0
  84. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_thread.watch.json +0 -0
  85. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/slack_utils.py +0 -0
  86. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram.py +0 -0
  87. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.lag +0 -0
  88. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.py +0 -0
  89. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_chat.watch.json +0 -0
  90. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.lag +0 -0
  91. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.py +0 -0
  92. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/telegram_search.watch.json +0 -0
  93. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x.py +0 -0
  94. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.lag +0 -0
  95. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.py +0 -0
  96. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_dm.watch.json +0 -0
  97. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_home.lag +0 -0
  98. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_home.py +0 -0
  99. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_home.watch.json +0 -0
  100. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.lag +0 -0
  101. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.py +0 -0
  102. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_mentions.watch.json +0 -0
  103. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_search.lag +0 -0
  104. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_search.py +0 -0
  105. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_search.watch.json +0 -0
  106. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.lag +0 -0
  107. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.py +0 -0
  108. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/checkers/x_user_posts.watch.json +0 -0
  109. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dashboard_permissions.py +0 -0
  110. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dashboard_settings.py +0 -0
  111. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dashboard_theme.py +0 -0
  112. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dashboard_visualizer.py +0 -0
  113. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/dispatch-agent.sh +0 -0
  114. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/extract-tokens.py +0 -0
  115. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/fake-worker.py +0 -0
  116. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/format-stream.py +0 -0
  117. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/plan.py +0 -0
  118. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/run-agent.py +0 -0
  119. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/slack-read-health.py +0 -0
  120. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/spend-window.py +0 -0
  121. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/translate-stream.py +0 -0
  122. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/dispatch/worker.mcp.json +0 -0
  123. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/inbox.py +0 -0
  124. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/ack-watch.py +0 -0
  125. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/add-watch.py +0 -0
  126. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/checker-health.py +0 -0
  127. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/commit.py +0 -0
  128. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/ensure-watch-ids.py +0 -0
  129. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/housekeep.py +0 -0
  130. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ledger/watch-guard.py +0 -0
  131. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/dashboard-start.sh +0 -0
  132. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/doctor.sh +0 -0
  133. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/health-monitor.py +0 -0
  134. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/heartbeat-loop.sh +0 -0
  135. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/notify.py +0 -0
  136. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/rotate-logs.py +0 -0
  137. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/ops/sync-yaas-v2.sh +0 -0
  138. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/reaction_config.py +0 -0
  139. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/reaction_lifecycle.py +0 -0
  140. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.dashboard.plist.template +0 -0
  141. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.heartbeat.plist.template +0 -0
  142. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/com.yaas.triage.plist.template +0 -0
  143. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/init-yaas-v2-tracking.sh +0 -0
  144. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-common.sh +0 -0
  145. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-dashboard.sh +0 -0
  146. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/install-launchd-heartbeat.sh +0 -0
  147. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/install-launchd.sh +0 -0
  148. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/setup.sh +0 -0
  149. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/setup/yaas-app-config.json +0 -0
  150. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-action-closure/SKILL.md +0 -0
  151. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-answering-quality/SKILL.md +0 -0
  152. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-checker-authoring/SKILL.md +0 -0
  153. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-dashboard-theme/SKILL.md +0 -0
  154. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-dashboard-theme/references/theming.md +0 -0
  155. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-draft-readiness/SKILL.md +0 -0
  156. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/SKILL.md +0 -0
  157. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gdoc-anchored-comments/gdoc-comment.py +0 -0
  158. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/SKILL.md +0 -0
  159. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail-reply.py +0 -0
  160. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/gmail_policy.py +0 -0
  161. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-gmail-reply/send_fresh.py +0 -0
  162. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-ops/SKILL.md +0 -0
  163. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-quest-creation/new-quest.py +0 -0
  164. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-channel/SKILL.md +0 -0
  165. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-file/SKILL.md +0 -0
  166. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/skills/yaas-slack-interface/SKILL.md +0 -0
  167. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/client.py +0 -0
  168. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/credential_store.py +0 -0
  169. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/jira-call.sh +0 -0
  170. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/keychain-helper.c +0 -0
  171. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/log-event.py +0 -0
  172. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/mcp-call.sh +0 -0
  173. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/native_tls.py +0 -0
  174. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/notion-call.py +0 -0
  175. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/notion-state.py +0 -0
  176. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/react-lifecycle.py +0 -0
  177. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack-channel.py +0 -0
  178. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack-expand.py +0 -0
  179. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack-file.py +0 -0
  180. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack-react.sh +0 -0
  181. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack-send.py +0 -0
  182. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack_credentials.py +0 -0
  183. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack_files.py +0 -0
  184. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/slack_read_cooldown.py +0 -0
  185. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-call.py +0 -0
  186. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/telegram-send.py +0 -0
  187. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/telegram_credentials.py +0 -0
  188. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/timeline_io.py +0 -0
  189. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/x-call.py +0 -0
  190. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/x-send.py +0 -0
  191. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/surfaces/x_credentials.py +0 -0
  192. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/system_health.py +0 -0
  193. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/tick_check.py +0 -0
  194. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/tick_dispatch.py +0 -0
  195. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/tick_state.py +0 -0
  196. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/timeline_time.py +0 -0
  197. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/runtime/yaas-triage/triage-loop.sh +0 -0
  198. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/setup.py +0 -0
  199. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/setup_output.py +0 -0
  200. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/setup_worker.py +0 -0
  201. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/update_check.py +0 -0
  202. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/upgrade.py +0 -0
  203. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/upgrade_job.py +0 -0
  204. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/worker_readiness.py +0 -0
  205. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor/workspace.py +0 -0
  206. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor.egg-info/SOURCES.txt +0 -0
  207. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor.egg-info/dependency_links.txt +0 -0
  208. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor.egg-info/entry_points.txt +0 -0
  209. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor.egg-info/requires.txt +0 -0
  210. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/sidequestor.egg-info/top_level.txt +0 -0
  211. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/yaas_triage/__init__.py +0 -0
  212. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/yaas_triage/__main__.py +0 -0
  213. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/src/yaas_triage/cli.py +0 -0
  214. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/dashboard_quest_visualizer.cjs +0 -0
  215. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/dashboard_theme_branding.cjs +0 -0
  216. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_build_info.py +0 -0
  217. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_checker_connector_gates.py +0 -0
  218. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_claude_slack_defaults.py +0 -0
  219. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_cli_lifecycle.py +0 -0
  220. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_connector_policy.py +0 -0
  221. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_credential_setup.py +0 -0
  222. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_credential_state_root.py +0 -0
  223. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_app_links.py +0 -0
  224. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_composer_persistence.py +0 -0
  225. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_permissions.py +0 -0
  226. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_ports.py +0 -0
  227. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_review_preview.py +0 -0
  228. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_settings.py +0 -0
  229. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_theme.py +0 -0
  230. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dashboard_visualizer.py +0 -0
  231. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_default_workspace.py +0 -0
  232. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dispatch_agent.py +0 -0
  233. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_dispatch_manifest.py +0 -0
  234. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_gdoc_comment.py +0 -0
  235. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_gmail_reply.py +0 -0
  236. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_gmail_send.py +0 -0
  237. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_install_script.py +0 -0
  238. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_instance_registry.py +0 -0
  239. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_jira_checker.py +0 -0
  240. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_job_path.py +0 -0
  241. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_launchd_lifecycle.py +0 -0
  242. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_multi_instance_operations.py +0 -0
  243. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_native_tls.py +0 -0
  244. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_notion_checkers.py +0 -0
  245. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_notion_tree.py +0 -0
  246. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_onboarding.py +0 -0
  247. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_quest_creation_handoff.py +0 -0
  248. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_quest_terminal.py +0 -0
  249. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_reaction_config.py +0 -0
  250. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_reaction_lifecycle.py +0 -0
  251. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_reaction_pending.py +0 -0
  252. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_runtime_config.py +0 -0
  253. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_runtime_docs.py +0 -0
  254. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_runtime_imports.py +0 -0
  255. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_schedule_boundaries.py +0 -0
  256. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_schedule_watch_validation.py +0 -0
  257. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_setup.py +0 -0
  258. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_channel.py +0 -0
  259. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_expand.py +0 -0
  260. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_file.py +0 -0
  261. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_oauth_listener.py +0 -0
  262. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_parser.py +0 -0
  263. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_read_cooldown.py +0 -0
  264. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_search.py +0 -0
  265. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_send.py +0 -0
  266. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_slack_worker_health.py +0 -0
  267. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_system_health.py +0 -0
  268. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_telegram_send.py +0 -0
  269. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_telegram_x_checkers.py +0 -0
  270. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_timeline_chronology.py +0 -0
  271. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_triage_liveness.py +0 -0
  272. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_unacked_prune.py +0 -0
  273. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_upgrade.py +0 -0
  274. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_upgrade_job.py +0 -0
  275. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_version.py +0 -0
  276. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_watch_activity.py +0 -0
  277. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_watcher_status_dashboard.py +0 -0
  278. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_worker_readiness.py +0 -0
  279. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_x_send.py +0 -0
  280. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_x_user_auth.py +0 -0
  281. {sidequestor-0.2.10 → sidequestor-0.2.11.dev0}/tests/test_x_user_checkers.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sidequestor
3
- Version: 0.2.10
3
+ Version: 0.2.11.dev0
4
4
  Summary: Sidequestor workspace and triage command shell
5
5
  License-Expression: Apache-2.0
6
6
  Requires-Python: >=3.11
@@ -683,6 +683,13 @@ their saved formatting until an agent or you updates them; an upgrade does not r
683
683
  ## How do I review proposed actions?
684
684
 
685
685
  Open a manual review item in the dashboard to read its context and formatted proposal.
686
+ **Open destination** identifies where the proposed action will go. **Open Source** appears
687
+ beside prior context when a source link was recorded; older items without one say so.
688
+
689
+ When quest creation lacks exact identifiers or requirements, the quest is scaffolded and
690
+ its unresolved questions appear in a setup review. Use **Request change** to answer them,
691
+ then approve the resolved setup plan to install verified watches. **Close issue** stops
692
+ setup. A setup review does not authorize sending messages.
686
693
  Use **Edit** to change the source text, then **Preview** to read it again. Read-only items
687
694
  offer **View source** instead. Dashboard polling preserves unsaved edits and the selected view.
688
695
  Approve or save an edit to persist your changes; switching views alone does not save them.
@@ -813,6 +820,25 @@ for a second sample before sending a macOS notification for transient worker fau
813
820
  between workers. A temporary watcher watermark hold clears from the quest's current blockers
814
821
  after that watch successfully checks again; a separate unresolved quest blocker stays visible.
815
822
 
823
+ ### Changes in 0.2.11.dev0
824
+
825
+ This development release adds setup reviews for incomplete quest requests and separates
826
+ source links from destinations in approval cards. The configured inbox/adopt reaction now
827
+ files a Slack thread under the right existing quest, then handles a warranted immediate
828
+ reply in the same dispatch. It checks the current thread and previous outcomes before
829
+ retrying; no reply is sent when none is owed. Future quest sends retain their existing
830
+ permissions. Ambiguous ownership or unresolved delivery goes to review/retry.
831
+
832
+ To install this prerelease explicitly with uv:
833
+
834
+ ```bash
835
+ uv tool install --force 'sidequestor==0.2.11.dev0'
836
+ ```
837
+
838
+ Use `sidequestor[telegram]==0.2.11.dev0` to retain Telegram support. In each workspace,
839
+ run `sq sync-resources`; restart previously running jobs with `sq stop` then `sq start`.
840
+ The stable installation examples above remain pinned to 0.2.10.
841
+
816
842
  ### Changes in 0.2.10
817
843
 
818
844
  Schedules bookmark the boundary actually evaluated by their checker after
@@ -1,16 +1,3 @@
1
- Metadata-Version: 2.4
2
- Name: sidequestor
3
- Version: 0.2.10
4
- Summary: Sidequestor workspace and triage command shell
5
- License-Expression: Apache-2.0
6
- Requires-Python: >=3.11
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: truststore<1,>=0.10
10
- Provides-Extra: telegram
11
- Requires-Dist: Telethon<2,>=1.44; extra == "telegram"
12
- Dynamic: license-file
13
-
14
1
  # Sidequestor
15
2
 
16
3
  **Your side quests, handled.** Sidequestor is a local-first Slack sidekick that keeps small
@@ -683,6 +670,13 @@ their saved formatting until an agent or you updates them; an upgrade does not r
683
670
  ## How do I review proposed actions?
684
671
 
685
672
  Open a manual review item in the dashboard to read its context and formatted proposal.
673
+ **Open destination** identifies where the proposed action will go. **Open Source** appears
674
+ beside prior context when a source link was recorded; older items without one say so.
675
+
676
+ When quest creation lacks exact identifiers or requirements, the quest is scaffolded and
677
+ its unresolved questions appear in a setup review. Use **Request change** to answer them,
678
+ then approve the resolved setup plan to install verified watches. **Close issue** stops
679
+ setup. A setup review does not authorize sending messages.
686
680
  Use **Edit** to change the source text, then **Preview** to read it again. Read-only items
687
681
  offer **View source** instead. Dashboard polling preserves unsaved edits and the selected view.
688
682
  Approve or save an edit to persist your changes; switching views alone does not save them.
@@ -813,6 +807,25 @@ for a second sample before sending a macOS notification for transient worker fau
813
807
  between workers. A temporary watcher watermark hold clears from the quest's current blockers
814
808
  after that watch successfully checks again; a separate unresolved quest blocker stays visible.
815
809
 
810
+ ### Changes in 0.2.11.dev0
811
+
812
+ This development release adds setup reviews for incomplete quest requests and separates
813
+ source links from destinations in approval cards. The configured inbox/adopt reaction now
814
+ files a Slack thread under the right existing quest, then handles a warranted immediate
815
+ reply in the same dispatch. It checks the current thread and previous outcomes before
816
+ retrying; no reply is sent when none is owed. Future quest sends retain their existing
817
+ permissions. Ambiguous ownership or unresolved delivery goes to review/retry.
818
+
819
+ To install this prerelease explicitly with uv:
820
+
821
+ ```bash
822
+ uv tool install --force 'sidequestor==0.2.11.dev0'
823
+ ```
824
+
825
+ Use `sidequestor[telegram]==0.2.11.dev0` to retain Telegram support. In each workspace,
826
+ run `sq sync-resources`; restart previously running jobs with `sq stop` then `sq start`.
827
+ The stable installation examples above remain pinned to 0.2.10.
828
+
816
829
  ### Changes in 0.2.10
817
830
 
818
831
  Schedules bookmark the boundary actually evaluated by their checker after
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sidequestor"
7
- version = "0.2.10"
7
+ version = "0.2.11.dev0"
8
8
  description = "Sidequestor workspace and triage command shell"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -1,3 +1,3 @@
1
1
  """Sidequestor package shell for the YAAS-compatible triage engine."""
2
2
 
3
- __version__ = "0.2.10"
3
+ __version__ = "0.2.11.dev0"
@@ -116,10 +116,10 @@ button:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-vis
116
116
  <section class="briefings" id="briefings"><aside class="brief-index"><header class="brief-index-head"><div class="eyebrow">Field notes</div><h2>Briefings</h2><p>Morning, evening, weekly, and monthly perspective.</p></header><div class="brief-picker"><button class="button brief-picker-trigger" id="brief-picker-trigger" type="button" aria-haspopup="listbox" aria-expanded="false"><span class="brief-kind" id="brief-picker-kind">Brief</span><span class="brief-picker-title" id="brief-picker-title">Select a briefing</span><svg aria-hidden="true" viewBox="0 0 12 8"><path d="m1 1 5 5 5-5" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg></button><div class="brief-picker-list" id="brief-picker-list" role="listbox" aria-label="Briefing archive" hidden></div></div><div class="brief-list" id="brief-list"><div class="brief-empty">Open Briefings to load the archive.</div></div></aside><article class="brief-reader" id="brief-reader"><div class="brief-empty">Select a briefing to read it.</div></article></section>
117
117
  <section class="audit" id="audit"><section class="audit-panel"><h2>Approval history</h2><div class="audit-list" id="approval-history"></div></section><section class="audit-panel"><h2>Dispatch history</h2><div class="audit-list" id="run-history"></div></section></section>
118
118
  </main>
119
- <dialog id="quest-dialog"><form class="dialog-body" id="quest-form"><div class="eyebrow">In your own words</div><h2>Create a quest</h2><p class="muted">Describe the mission and who it involves. Sidequestor creates an explicitly marked bootstrap quest, then resolves exact watches on the next triage tick without guessing.</p><input id="quest-title" maxlength="120" placeholder="Optional short title…"><textarea id="quest-prompt" maxlength="4000" required placeholder="Who should I listen to, who should I talk to, and what should I do about it?"></textarea><p class="muted field-hint">The quest remains visibly initialising until triage verifies a real watch or a completed one-shot outcome.</p><select id="quest-priority"><option value="normal">Normal priority</option><option value="high">High priority</option><option value="low">Low priority</option></select><div class="quest-guide-cmd"><button type="button" class="button" id="open-creation-terminal" title="Open your chosen app to create a quest together">Create in Codex instead</button></div><div class="inline-status" id="quest-status" role="status"></div><div class="dialog-actions"><button type="button" class="button" id="cancel-quest">Cancel</button><button class="button primary">Create quest</button></div></form></dialog>
119
+ <dialog id="quest-dialog"><form class="dialog-body" id="quest-form"><div class="eyebrow">In your own words</div><h2>Create a quest</h2><p class="muted">Describe the mission and who it involves. Sidequestor creates an explicitly marked bootstrap quest, then resolves exact watches on the next triage tick without guessing.</p><input id="quest-title" maxlength="120" placeholder="Optional short title…"><textarea id="quest-prompt" maxlength="4000" required placeholder="Who should I listen to, who should I talk to, and what should I do about it?"></textarea><p class="muted field-hint">Sidequestor verifies the watches or completes the one-shot task. Missing details appear in manual review so you can answer them here.</p><select id="quest-priority"><option value="normal">Normal priority</option><option value="high">High priority</option><option value="low">Low priority</option></select><div class="quest-guide-cmd"><button type="button" class="button" id="open-creation-terminal" title="Open your chosen app to create a quest together">Create in Codex instead</button></div><div class="inline-status" id="quest-status" role="status"></div><div class="dialog-actions"><button type="button" class="button" id="cancel-quest">Cancel</button><button class="button primary">Create quest</button></div></form></dialog>
120
120
  <dialog id="settings-dialog" aria-labelledby="settings-title"><div class="dialog-body"><header class="settings-head"><h2 id="settings-title">Sidequestor settings</h2><button type="button" class="icon-button" id="close-settings" aria-label="Close settings">×</button></header><p class="muted settings-instructions">Edit <code class="settings-path" id="settings-path">.env</code> in your workspace. Add or change <code>KEY=value</code>; remove a line to restore its runtime default. Quote values containing spaces. Keep credentials in Keychain or a secret manager. Credential values are hidden here.</p><p class="muted settings-instructions">Most changes apply on the next poll or dispatch. Run <code>sq stop</code>, then <code>sq start</code> after changing loop intervals or exported process settings. If a process environment value takes precedence, update or unset that exported variable too. Existing terminal sessions may need reopening. Review agent model and permission changes before saving.</p><input type="search" id="settings-filter" aria-label="Filter settings" placeholder="Filter settings by name or description…"><div id="settings-status" role="status" class="muted"></div><div class="settings-scroll" id="settings-content"></div><div class="dialog-actions"><button class="button" id="refresh-settings" type="button">Refresh</button><button class="button primary" id="settings-edit" type="button">Edit in Codex</button></div></div></dialog>
121
121
  <dialog id="review-dialog"><div class="dialog-body" id="review-dialog-shell"></div></dialog>
122
- <dialog id="help-dialog" aria-labelledby="help-title"><div class="help-shell"><header class="help-mast"><div class="help-guide-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 25V7l5 3 5-3 5 3 5-3v18l-5-3-5 3-5-3-5 3Z"/><path d="m11 10 5 3 5-3M16 13v12"/><circle cx="21" cy="16" r="2" fill="currentColor" stroke="none"/></svg></div><div class="help-mast-copy"><div class="help-kicker">Player handbook</div><h2 id="help-title">Sidequestor Field Guide</h2><p>Two short chapters for keeping your quests moving.</p></div><button class="help-close" id="close-help" type="button" aria-label="Close field guide">X</button></header><div class="help-tabs" role="tablist" aria-label="Field guide chapters"><button class="help-tab" id="help-tab-quests" type="button" role="tab" aria-selected="true" aria-controls="help-panel-quests" tabindex="0" data-help-tab="quests"><span class="help-tab-number">01</span>Quests</button><button class="help-tab" id="help-tab-reactions" type="button" role="tab" aria-selected="false" aria-controls="help-panel-reactions" tabindex="-1" data-help-tab="reactions"><span class="help-tab-number">02</span>Slack reactions</button></div><div class="help-pages"><section class="help-page" id="help-panel-quests" role="tabpanel" aria-labelledby="help-tab-quests" data-help-panel="quests"><div class="help-lead"><div><h3>Your folder, running as a service</h3><p>Sidequestor is for people who want to expose a local working directory as a service that stays awake. It can keep doing work, help colleagues, notice new replies, and continue a mission while you are away.</p></div><aside class="help-callout"><strong>The golden rule</strong><p>Want to work interactively with a quest or anything in its folder? Go straight to your Terminal. That is your workshop.</p></aside></div><div class="help-section-label">The quest loop</div><div class="help-steps"><article class="help-step"><b>1</b><h4>Create</h4><p>Describe the mission, people involved, and what “done” should look like.</p></article><article class="help-step"><b>2</b><h4>Watch</h4><p>Tripwires listen for Slack, email, schedule, or repo activity.</p></article><article class="help-step"><b>3</b><h4>Act</h4><p>The local agent does the next step, records what happened, and can add new channels, tickets, and emails to watch.</p></article><article class="help-step"><b>4</b><h4>Continue</h4><p>The quest remembers its state and waits for the next useful signal.</p></article></div><div class="help-section-label">Choose your screen</div><div class="help-places"><article class="help-place terminal"><h4>Terminal = the workshop</h4><p>Create or edit files, inspect quest state, and work directly with your local agent here.</p></article><article class="help-place dashboard"><h4>Dashboard = the map</h4><p>Scan activity, open a quest&rsquo;s story, and review work in an easy-to-read view. Quests themselves are created in the Terminal. The files remain the source of truth.</p></article></div></section><section class="help-page" id="help-panel-reactions" role="tabpanel" aria-labelledby="help-tab-reactions" data-help-panel="reactions" hidden><div class="help-lead"><div><h3>Cast a tiny spell from Slack</h3><p>Add a configured reaction to any Slack message. Sidequestor sees it on a later tick, picks up the thread context, and performs that one-off action for you.</p></div><aside class="help-callout"><strong>No quest required</strong><p>Reaction jobs use a fast path for ad hoc work. A quest is only needed when the job turns into ongoing follow-up.</p></aside></div><div class="help-spells"><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">⚡</span><div><h4><code data-reaction-role="process">loading…</code></h4><p>Handle this. Do the work and reply in the Slack thread.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">✎</span><div><h4><code data-reaction-role="draft">loading…</code></h4><p>Draft this. Research and prepare a reply, but leave sending to you.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">▣</span><div><h4><code data-reaction-role="save">loading…</code></h4><p>Remember this. Save useful context quietly, with no reply.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">✉</span><div><h4><code data-reaction-role="adopt">loading…</code></h4><p>Adopt this. Attach the message to an existing quest for follow-up.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">🪄</span><div><h4><code data-reaction-role="expand">loading…</code></h4><p>Expand in place. Flesh out your own message, edit it in its original location, and carry out its explicit requests or track ongoing work in a quest.</p></div></article></div><div class="help-section-label">Visible progress</div><div class="help-lifecycle" aria-label="Reaction progress: your trigger, then working, then finished or blocked"><div class="help-life-state"><i aria-hidden="true">☝</i><strong>Your trigger</strong><span>Please do this</span></div><div class="help-life-arrow" aria-hidden="true">›</div><div class="help-life-state loading"><i aria-hidden="true">⏳</i><strong><code data-reaction-role="loading">loading…</code></strong><span>Picked up and working</span></div><div class="help-life-arrow" aria-hidden="true">›</div><div class="help-life-state done"><i aria-hidden="true">✓</i><strong><code data-reaction-role="done">loading…</code></strong><span>Finished or no action needed</span></div><div class="help-life-arrow help-life-or" aria-hidden="true">or</div><div class="help-life-state blocked"><i aria-hidden="true">🕒</i><strong><code data-reaction-role="blocked">loading…</code></strong><span>Could not finish; check the dashboard</span></div></div><p class="help-footnote" id="reaction-config-note"><strong>Only one status reaction stays on the message.</strong><span id="reaction-config-status"> Multiple triggers on the same message run independently. Working stays visible while any action is queued or working; once none is working, blocked takes precedence over done. The save reaction is silent and skips status changes. Emoji names come from your Sidequestor configuration.</span></p></section></div></div></dialog>
122
+ <dialog id="help-dialog" aria-labelledby="help-title"><div class="help-shell"><header class="help-mast"><div class="help-guide-mark" aria-hidden="true"><svg viewBox="0 0 32 32" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 25V7l5 3 5-3 5 3 5-3v18l-5-3-5 3-5-3-5 3Z"/><path d="m11 10 5 3 5-3M16 13v12"/><circle cx="21" cy="16" r="2" fill="currentColor" stroke="none"/></svg></div><div class="help-mast-copy"><div class="help-kicker">Player handbook</div><h2 id="help-title">Sidequestor Field Guide</h2><p>Two short chapters for keeping your quests moving.</p></div><button class="help-close" id="close-help" type="button" aria-label="Close field guide">X</button></header><div class="help-tabs" role="tablist" aria-label="Field guide chapters"><button class="help-tab" id="help-tab-quests" type="button" role="tab" aria-selected="true" aria-controls="help-panel-quests" tabindex="0" data-help-tab="quests"><span class="help-tab-number">01</span>Quests</button><button class="help-tab" id="help-tab-reactions" type="button" role="tab" aria-selected="false" aria-controls="help-panel-reactions" tabindex="-1" data-help-tab="reactions"><span class="help-tab-number">02</span>Slack reactions</button></div><div class="help-pages"><section class="help-page" id="help-panel-quests" role="tabpanel" aria-labelledby="help-tab-quests" data-help-panel="quests"><div class="help-lead"><div><h3>Your folder, running as a service</h3><p>Sidequestor is for people who want to expose a local working directory as a service that stays awake. It can keep doing work, help colleagues, notice new replies, and continue a mission while you are away.</p></div><aside class="help-callout"><strong>The golden rule</strong><p>Want to work interactively with a quest or anything in its folder? Go straight to your Terminal. That is your workshop.</p></aside></div><div class="help-section-label">The quest loop</div><div class="help-steps"><article class="help-step"><b>1</b><h4>Create</h4><p>Describe the mission, people involved, and what “done” should look like.</p></article><article class="help-step"><b>2</b><h4>Watch</h4><p>Tripwires listen for Slack, email, schedule, or repo activity.</p></article><article class="help-step"><b>3</b><h4>Act</h4><p>The local agent does the next step, records what happened, and can add new channels, tickets, and emails to watch.</p></article><article class="help-step"><b>4</b><h4>Continue</h4><p>The quest remembers its state and waits for the next useful signal.</p></article></div><div class="help-section-label">Choose your screen</div><div class="help-places"><article class="help-place terminal"><h4>Terminal = the workshop</h4><p>Create or edit files, inspect quest state, and work directly with your local agent here.</p></article><article class="help-place dashboard"><h4>Dashboard = the map</h4><p>Scan activity, open a quest&rsquo;s story, and review work in an easy-to-read view. Quests themselves are created in the Terminal. The files remain the source of truth.</p></article></div></section><section class="help-page" id="help-panel-reactions" role="tabpanel" aria-labelledby="help-tab-reactions" data-help-panel="reactions" hidden><div class="help-lead"><div><h3>Cast a tiny spell from Slack</h3><p>Add a configured reaction to any Slack message. Sidequestor sees it on a later tick, picks up the thread context, and performs that one-off action for you.</p></div><aside class="help-callout"><strong>No quest required</strong><p>Reaction jobs use a fast path for ad hoc work. A quest is only needed when the job turns into ongoing follow-up.</p></aside></div><div class="help-spells"><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">⚡</span><div><h4><code data-reaction-role="process">loading…</code></h4><p>Handle this. Do the work and reply in the Slack thread.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">✎</span><div><h4><code data-reaction-role="draft">loading…</code></h4><p>Draft this. Research and prepare a reply, but leave sending to you.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">▣</span><div><h4><code data-reaction-role="save">loading…</code></h4><p>Remember this. Save useful context quietly, with no reply.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">✉</span><div><h4><code data-reaction-role="adopt">loading…</code></h4><p>Adopt this. File the message under the right quest, then reply in the thread when a response is needed.</p></div></article><article class="help-spell"><span class="help-spell-icon" aria-hidden="true">🪄</span><div><h4><code data-reaction-role="expand">loading…</code></h4><p>Expand in place. Flesh out your own message, edit it in its original location, and carry out its explicit requests or track ongoing work in a quest.</p></div></article></div><div class="help-section-label">Visible progress</div><div class="help-lifecycle" aria-label="Reaction progress: your trigger, then working, then finished or blocked"><div class="help-life-state"><i aria-hidden="true">☝</i><strong>Your trigger</strong><span>Please do this</span></div><div class="help-life-arrow" aria-hidden="true">›</div><div class="help-life-state loading"><i aria-hidden="true">⏳</i><strong><code data-reaction-role="loading">loading…</code></strong><span>Picked up and working</span></div><div class="help-life-arrow" aria-hidden="true">›</div><div class="help-life-state done"><i aria-hidden="true">✓</i><strong><code data-reaction-role="done">loading…</code></strong><span>Finished or no action needed</span></div><div class="help-life-arrow help-life-or" aria-hidden="true">or</div><div class="help-life-state blocked"><i aria-hidden="true">🕒</i><strong><code data-reaction-role="blocked">loading…</code></strong><span>Could not finish; check the dashboard</span></div></div><p class="help-footnote" id="reaction-config-note"><strong>Only one status reaction stays on the message.</strong><span id="reaction-config-status"> Multiple triggers on the same message run independently. Working stays visible while any action is queued or working; once none is working, blocked takes precedence over done. The save reaction is silent and skips status changes. Emoji names come from your Sidequestor configuration.</span></p></section></div></div></dialog>
123
123
  <div class="toast" id="toast" role="status"></div>
124
124
  <script nonce="__DASHBOARD_NONCE__" src="/dashboard-assets/dashboard-quest-visualizer.js"></script>
125
125
  <script>
@@ -146,8 +146,8 @@ function mdInline(v,repo=''){
146
146
  }
147
147
  function markdown(md,repo=''){const inline=value=>mdInline(value,repo);let h='',list='';const close=()=>{if(list){h+=`</${list}>`;list=''}};for(const line of String(md||'').split('\n')){if(/^#\s/.test(line)){close();h+=`<h1>${inline(line.slice(2))}</h1>`}else if(/^##\s/.test(line)){close();h+=`<h2>${inline(line.slice(3))}</h2>`}else if(/^#{3,}\s/.test(line)){close();h+=`<h3>${inline(line.replace(/^#{3,}\s/,''))}</h3>`}else if(/^[-*]\s/.test(line)){if(list!=='ul'){close();list='ul';h+='<ul>'}h+=`<li>${inline(line.slice(2))}</li>`}else if(/^\d+\.\s/.test(line)){if(list!=='ol'){close();list='ol';h+='<ol>'}h+=`<li>${inline(line.replace(/^\d+\.\s/,''))}</li>`}else if(!line.trim())close();else{close();h+=`<p>${inline(line)}</p>`}}close();return h||'<p>No context recorded.</p>'}
148
148
  function targetText(card){const t=card.target||{};if(t.action==='health_repair')return 'Worker issue · '+({headless:'Agent repair proposed',interactive:'Setup or sign-in needed',uncertain:'Cause needs investigation'}[t.repair_mode]||'Cause needs investigation');if(t.action==='sidequestor_upgrade')return `Sidequestor ${t.version||''} · Independent upgrade after approval`;if(t.to)return[t.to,t.subject].filter(Boolean).join(' · ');if(t.channel_id)return t.thread_ts?`${t.channel_id} · in thread`:t.channel_id;if(t.repo)return[t.repo,t.issue?'issue #'+t.issue:t.path,t.branch].filter(Boolean).join(' · ');return t.path||t.email_thread_id||'No target recorded'}
149
- function reviewDestination(card){const t=card.target||{};if(['health_repair','sidequestor_upgrade'].includes(t.action))return{label:t.action==='health_repair'?'Repair mode':'Upgrade',value:targetText(card)};if(t.to)return{label:'To',value:[t.to,t.subject].filter(Boolean).join(' · ')};if(t.surface==='gmail'&&t.message_id){const audience=t.recipients||{};return{label:t.action==='reply_all'?'Gmail reply-all':'Gmail reply',value:[`message ${t.message_id}`,...(audience.to||[]).map(x=>`to ${x}`),...(audience.cc||[]).map(x=>`cc ${x}`),...(t.remove||[]).map(x=>`remove ${x}`),...(t.attachments||[]).map(a=>`attach ${a.path} (${a.size} bytes)`)].join(' · ')}}if(t.action==='file_upload')return{label:'Slack file upload',value:[`${t.filename} (${t.size} bytes)`,t.file,t.thread_ts?`${t.channel_id} · thread ${t.thread_ts}`:t.channel_id].join(' · ')};if(t.channel_id)return{label:'Slack destination',value:t.thread_ts?`${t.channel_id} · thread ${t.thread_ts}`:t.channel_id};if(t.email_thread_id)return{label:'Email thread',value:t.email_thread_id};if(t.doc_id)return{label:'Google Doc',value:t.doc_id};if(t.repo)return{label:'Repository target',value:[t.repo,t.issue?'issue #'+t.issue:t.path,t.branch].filter(Boolean).join(' · ')};if(t.path)return{label:card.action_type==='file_edit'?'File to change':'Target path',value:t.path};if(t.peer)return{label:'Recipient',value:t.peer};return{label:card.action_type==='file_edit'?'File to change':'Destination',value:'Not recorded in this request',missing:true}}
150
- function reviewMessageCopy(card){if(card.target?.action==='health_repair')return{label:'What happened and how to recover',hint:'Follow the steps below first. Approval queues an agent check; it does not mean the issue is fixed.'};if(card.target?.action==='sidequestor_upgrade')return{label:'Upgrade plan',hint:'Approval hands this fixed lifecycle to an independent background job.'};if(card.target?.report_kind==='package_bug')return{label:'Bug report email to send',hint:'The agent sends this exact report only after approval; reporting does not resolve the health issue.'};if(['slack_message','slack_reply'].includes(card.action_type))return{label:'Message to send',hint:'Approval permits this message; Slack must also be connected. If execution reports missing sign-in, run setup with this workspace explicitly selected and follow the Slack connection steps. If delivery is uncertain, inspect Slack before retrying.'};const message=card.action_type==='email_reply';if(message)return{label:'Message to send',hint:'The agent will send this draft to the destination above after approval.'};if(card.action_type==='file_edit')return{label:'Action for the agent',hint:'Approval asks the agent to carry out this file action.'};return{label:'Proposed external action',hint:'Approval asks the agent to carry out this action.'}}
149
+ function reviewDestination(card){const t=card.target||{};if(t.action==='quest_setup')return{label:'Quest setup',value:card.quest_title||card.quest_id||'This quest'};if(['health_repair','sidequestor_upgrade'].includes(t.action))return{label:t.action==='health_repair'?'Repair mode':'Upgrade',value:targetText(card)};if(t.to)return{label:'To',value:[t.to,t.subject].filter(Boolean).join(' · ')};if(t.surface==='gmail'&&t.message_id){const audience=t.recipients||{};return{label:t.action==='reply_all'?'Gmail reply-all':'Gmail reply',value:[`message ${t.message_id}`,...(audience.to||[]).map(x=>`to ${x}`),...(audience.cc||[]).map(x=>`cc ${x}`),...(t.remove||[]).map(x=>`remove ${x}`),...(t.attachments||[]).map(a=>`attach ${a.path} (${a.size} bytes)`)].join(' · ')}}if(t.action==='file_upload')return{label:'Slack file upload',value:[`${t.filename} (${t.size} bytes)`,t.file,t.thread_ts?`${t.channel_id} · thread ${t.thread_ts}`:t.channel_id].join(' · ')};if(t.channel_id)return{label:'Slack destination',value:[t.channel_name||t.audience,t.thread_ts?`${t.channel_id} · thread ${t.thread_ts}`:t.channel_id].filter(Boolean).join(' · ')};if(t.email_thread_id)return{label:'Email thread',value:t.email_thread_id};if(t.doc_id)return{label:'Google Doc',value:t.doc_id};if(t.repo)return{label:'Repository target',value:[t.repo,t.issue?'issue #'+t.issue:t.path,t.branch].filter(Boolean).join(' · ')};if(t.path)return{label:card.action_type==='file_edit'?'File to change':'Target path',value:t.path};if(t.peer)return{label:'Recipient',value:t.peer};return{label:card.action_type==='file_edit'?'File to change':'Destination',value:'Not recorded in this request',missing:true}}
150
+ function reviewMessageCopy(card){if(card.target?.action==='quest_setup')return{label:'Setup plan to approve',hint:'Answer the questions using Request change, then approve the resolved plan to start monitoring. Close issue stops setup.'};if(card.target?.action==='health_repair')return{label:'What happened and how to recover',hint:'Follow the steps below first. Approval queues an agent check; it does not mean the issue is fixed.'};if(card.target?.action==='sidequestor_upgrade')return{label:'Upgrade plan',hint:'Approval hands this fixed lifecycle to an independent background job.'};if(card.target?.report_kind==='package_bug')return{label:'Bug report email to send',hint:'The agent sends this exact report only after approval; reporting does not resolve the health issue.'};if(['slack_message','slack_reply'].includes(card.action_type))return{label:'Message to send',hint:'Approval permits this message; Slack must also be connected. If execution reports missing sign-in, run setup with this workspace explicitly selected and follow the Slack connection steps. If delivery is uncertain, inspect Slack before retrying.'};const message=card.action_type==='email_reply';if(message)return{label:'Message to send',hint:'The agent will send this draft to the destination above after approval.'};if(card.action_type==='file_edit')return{label:'Action for the agent',hint:'Approval asks the agent to carry out this file action.'};return{label:'Proposed external action',hint:'Approval asks the agent to carry out this action.'}}
151
151
  function reviewAlert(title,body,at,kind,repo=''){return`<div class="review-alert ${kind}" role="note"><div class="review-alert-head"><strong>${esc(title)}</strong>${at?`<time datetime="${esc(at)}">${esc(watchTime(at))}</time>`:''}</div><div class="rich-copy">${markdown(body,repo)}</div></div>`}
152
152
  function pill(text,kind='neutral'){return`<span class="pill ${esc(kind)}">${esc(text)}</span>`}
153
153
  const watchLabels={approval:'Approval',email:'Email search',github_issue:'GitHub issues',github_pr:'GitHub pull requests',jira:'Jira search',notion_page:'Notion page',notion_data_source:'Notion data source',notion_comments:'Notion comments',schedule:'Schedule',slack_channel:'Slack channel',slack_dm:'Slack direct message',slack_mention:'Slack mentions',slack_thread:'Slack thread'};
@@ -185,10 +185,12 @@ function reviewPreview(text,repo=''){return !String(text||'').trim()?'<p class="
185
185
  function setReviewMode(card,source=false){const field=card.querySelector('[data-message]'),preview=card.querySelector('[data-message-preview]'),toggle=card.querySelector('[data-review-mode]');if(!field||!preview||!toggle)return;card.dataset.reviewMode=source?'source':'preview';field.hidden=!source;preview.hidden=source;preview.htmlOnce=reviewPreview(field.value,card.dataset.reviewRepo);toggle.textContent=source?'Preview':field.readOnly?'View source':'Edit';toggle.setAttribute('aria-pressed',String(source))}
186
186
  function approvalCard(card,compact=false){
187
187
  const acts=card.available_actions||[],editable=card.target?.action!=='sidequestor_upgrade'&&(acts.includes('review')||acts.includes('edit')),destination=reviewDestination(card),copy=reviewMessageCopy(card),link=safeUrl(card.link_url||'');
188
- const related=link?`<span class="review-related"><a href="${esc(link)}" target="_blank" rel="noopener">${esc(card.link_kind==='jira'?'Open related Jira issue':card.link_kind==='slack'?'Open related Slack thread':'Open related source')}</a></span>`:'';
189
- const destinationBlock=`<div class="review-destination"><span class="review-destination-label">${esc(destination.label)}</span><span class="review-destination-value${destination.missing?' missing':''}">${esc(destination.value)}</span>${related}</div>`;
188
+ const sourceRaw=card.source_url||card.target?.source_url,source=sourceRaw?safeUrl(sourceRaw):null,destinationLink=card.destination_url?safeUrl(card.destination_url):card.link_role!=='source'&&card.link_url?link:null;
189
+ const related=destinationLink?`<span class="review-related"><a href="${esc(destinationLink)}" target="_blank" rel="noopener">Open destination</a></span>`:'';
190
+ const sourceBlock=`<div class="review-destination review-source"><span class="review-destination-label">Prior context</span>${source?`<a href="${esc(source)}" target="_blank" rel="noopener">Open Source</a>`:'<span class="muted">Source link not recorded</span>'}</div>`;
191
+ const destinationBlock=`<div class="review-destination"><span class="review-destination-label">${esc(destination.label)}</span><span class="review-destination-value${destination.missing?' missing':''}">${esc(destination.value)}</span>${related}</div>${sourceBlock}`;
190
192
  const alerts=[card.processing_error?reviewAlert('Latest action failure',card.processing_error,card.processing_error_at,'latest',card.target?.repo):'',card.risk_reason?reviewAlert(card.processing_error?'Earlier review concern':'Review concern',card.risk_reason,card.created_at,'context',card.target?.repo):''].join('');
191
- return`<article class="review-card ${card.stalled||card.processing_error?'stalled':''}" data-card="${esc(card.id)}" data-review-mode="preview" data-review-repo="${esc(card.target?.repo||'')}"><div class="card-head"><div class="card-title">${esc(actionNoun(card.action_type))}</div><div class="state-row">${pill(card.processing_error?'action failed':(card.status||'unknown').replaceAll('_',' '),card.processing_error?'blocked':card.stalled?'stalled':card.status||'neutral')}${card.human_edited?pill('edited','info'):''}<span class="card-age">${ago(card.processing_error_at||card.created_at)}</span></div></div>${destinationBlock}${alerts}${card.context?`<div class="field-label">Context</div><div class="markdown rich-copy review-context">${markdown(card.context,card.target?.repo)}</div>`:''}${conversation(card)}<div class="review-copy-head"><span class="field-label">${esc(copy.label)}</span><button type="button" class="button" data-review-mode aria-pressed="false">${editable?'Edit':'View source'}</button></div><p class="review-message-hint">${esc(copy.hint)}${destination.missing?' Check the related source for the exact destination before execution.':''}${['slack_message','slack_reply','email_reply'].includes(card.action_type)?' Formatting is approximate; the message is sent using the source text.':''}</p><div class="markdown rich-copy review-preview" data-message-preview>${reviewPreview(card.message_text||'',card.target?.repo)}</div><textarea data-message aria-label="${esc(copy.label)} source" hidden ${editable?'':'readonly'}>${esc(card.message_text||'')}</textarea>${card.target?.action!=='sidequestor_upgrade'&&(acts.includes('revise')||acts.includes('review'))?'<label class="field-label">Instruction for the agent (optional on Execute, required on Request change)</label><textarea class="review-note" data-note placeholder="e.g. “send this to the other reviewer instead” · “show me the updated draft first”"></textarea>':''}<div class="card-actions">${acts.map(a=>`<button class="button ${a==='review'?'primary':a==='cancel'?'danger':''}" data-approval-action="${esc(a)}"${a==='review'?' title="Queue this reviewed action for execution by the worker on the next tick"':''}>${esc(actionLabel(a))}</button>`).join('')}</div><div class="inline-status" data-card-status></div>${technicalReview(card)?`<div class="review-troubleshoot"><button type="button" class="quiet-action" data-troubleshoot="${esc(card.id)}" title="Continue diagnosing this issue in your selected app using the existing local logs. Nothing is executed or closed by opening the app.">Troubleshoot ↗</button></div>`:''}</article>`
193
+ return`<article class="review-card ${card.stalled||card.processing_error?'stalled':''}" data-card="${esc(card.id)}" data-review-mode="preview" data-review-repo="${esc(card.target?.repo||'')}"><div class="card-head"><div class="card-title">${esc(card.target?.action==='quest_setup'?'Quest setup':actionNoun(card.action_type))}</div><div class="state-row">${pill(card.processing_error?'action failed':(card.status||'unknown').replaceAll('_',' '),card.processing_error?'blocked':card.stalled?'stalled':card.status||'neutral')}${card.human_edited?pill('edited','info'):''}<span class="card-age">${ago(card.processing_error_at||card.created_at)}</span></div></div>${destinationBlock}${alerts}${card.context?`<div class="field-label">Context</div><div class="markdown rich-copy review-context">${markdown(card.context,card.target?.repo)}</div>`:''}${conversation(card)}<div class="review-copy-head"><span class="field-label">${esc(copy.label)}</span><button type="button" class="button" data-review-mode aria-pressed="false">${editable?'Edit':'View source'}</button></div><p class="review-message-hint">${esc(copy.hint)}${destination.missing?' Check the related source for the exact destination before execution.':''}${['slack_message','slack_reply','email_reply'].includes(card.action_type)?' Formatting is approximate; the message is sent using the source text.':''}</p><div class="markdown rich-copy review-preview" data-message-preview>${reviewPreview(card.message_text||'',card.target?.repo)}</div><textarea data-message aria-label="${esc(copy.label)} source" hidden ${editable?'':'readonly'}>${esc(card.message_text||'')}</textarea>${card.target?.action!=='sidequestor_upgrade'&&(acts.includes('revise')||acts.includes('review'))?'<label class="field-label">Instruction for the agent (optional on Execute, required on Request change)</label><textarea class="review-note" data-note placeholder="e.g. “send this to the other reviewer instead” · “show me the updated draft first”"></textarea>':''}<div class="card-actions">${acts.map(a=>`<button class="button ${a==='review'?'primary':a==='cancel'?'danger':''}" data-approval-action="${esc(a)}"${a==='review'?' title="Queue this reviewed action for execution by the worker on the next tick"':''}>${esc(actionLabel(a))}</button>`).join('')}</div><div class="inline-status" data-card-status></div>${technicalReview(card)?`<div class="review-troubleshoot"><button type="button" class="quiet-action" data-troubleshoot="${esc(card.id)}" title="Continue diagnosing this issue in your selected app using the existing local logs. Nothing is executed or closed by opening the app.">Troubleshoot ↗</button></div>`:''}</article>`
192
194
  }
193
195
  function queuedFor(qid){return(state.control.queued||[]).filter(x=>!qid||x.quest_id===qid)}
194
196
  function attentionFor(qid){return(state.control.attention||[]).filter(x=>!qid||x.quest_id===qid)}
@@ -259,6 +259,13 @@ def cmd_write(payload_json: str):
259
259
  data.setdefault("items", [])
260
260
  # Inbox can receive distinct review requests for the same thread from different
261
261
  # producers. Ordinary quest dedup remains unchanged.
262
+ if target.get("action") == "quest_setup":
263
+ existing = next((i for i in data["items"]
264
+ if i.get("quest_id") == quest_id
265
+ and i.get("target", {}).get("action") == "quest_setup"
266
+ and i.get("status") not in ("executed", "cancelled")), None)
267
+ if existing:
268
+ return existing["id"] # Re-arm the same review after an interrupted write.
262
269
  origin = source if quest_id == INBOX_QUEST else quest_id
263
270
  duplicate = any(
264
271
  i for i in data.get("items", [])
@@ -293,6 +300,7 @@ def cmd_write(payload_json: str):
293
300
  "target": target,
294
301
  "message_text": payload.get("message_text", ""),
295
302
  "context": payload.get("context", ""),
303
+ "source_url": payload.get("source_url") or target.get("source_url"),
296
304
  "risk_reason": payload.get("risk_reason", ""),
297
305
  }
298
306
  if source:
@@ -307,8 +315,10 @@ def cmd_write(payload_json: str):
307
315
  # Arm the tracking watch OUTSIDE the approvals lock (different file, its own
308
316
  # flock). Coupled here so an approval can never be created without its watch.
309
317
  if new_id:
310
- cmd_arm(new_id, emit=False)
318
+ armed = cmd_arm(new_id, emit=False) == 0
311
319
  print(new_id)
320
+ if not armed and target.get("action") == "quest_setup":
321
+ raise SystemExit(3)
312
322
 
313
323
 
314
324
  def cmd_arm(approval_id: str, emit: bool = True) -> int:
@@ -520,6 +520,11 @@ def _approval_target_link(i: dict) -> dict:
520
520
  if isinstance(t.get("thread_ts"), str):
521
521
  t.setdefault("response_ts", t["thread_ts"])
522
522
  out = _link_fields(t)
523
+ if not out["link_url"] and t.get("channel_id") and SLACK_HOST:
524
+ channel = str(t["channel_id"])
525
+ if re.fullmatch(r"[CDG][A-Z0-9]+", channel):
526
+ out = {"link_url": f"https://{SLACK_HOST}/archives/{channel}",
527
+ "link_kind": "slack", "slack_url": None}
523
528
  if out["link_url"] or i.get("action_type") in _MSG_ACTION_TYPES:
524
529
  return out
525
530
  # Legacy / loosely-logged non-message items (a Jira comment queued as a
@@ -539,7 +544,7 @@ def _approval_target_link(i: dict) -> dict:
539
544
  probe["jira_comment_id"] = cid
540
545
  u = _jira_url(probe)
541
546
  if u:
542
- return {"link_url": u, "link_kind": "jira", "slack_url": None}
547
+ return {"link_url": u, "link_kind": "jira", "slack_url": None, "link_role": "source"}
543
548
  return out
544
549
 
545
550
  def _approval_card(i: dict) -> dict:
@@ -547,6 +552,7 @@ def _approval_card(i: dict) -> dict:
547
552
  t = i.get("target") or {}
548
553
  now = datetime.now(timezone.utc)
549
554
  stalled = approval_state.is_stalled(i, now)
555
+ links = _approval_target_link(i)
550
556
  return {
551
557
  "id": i.get("id"),
552
558
  "quest_id": i.get("quest_id"),
@@ -564,6 +570,8 @@ def _approval_card(i: dict) -> dict:
564
570
  "target": t,
565
571
  "message_text": i.get("message_text", ""),
566
572
  "context": i.get("context", ""),
573
+ "source_url": i.get("source_url") or t.get("source_url") or (links.get("link_url") if links.get("link_role") == "source" else None),
574
+ "destination_url": links.get("link_url") if links.get("link_role") != "source" else None,
567
575
  "risk_reason": i.get("risk_reason", ""),
568
576
  "review_note": i.get("review_note", ""),
569
577
  "review_history": i.get("review_history", []),
@@ -437,7 +437,7 @@ it once at the next check-in. Do not reopen completed onboarding for this exerci
437
437
  | `process` | A realistic question about the owner's current work, answerable from verified references. Ask them to add the process emoji; the agent researches and answers in this private practice thread. |
438
438
  | `draft` | A plausible colleague/customer request related to that work. Ask for the draft emoji; create a draft in the practice thread for the owner to inspect. No message goes to the real colleague/customer. |
439
439
  | `save` | A real, useful and verified reference or fact from the research, with its source link. Ask for the save emoji; show how to find the saved context afterwards. Do not save invented scenario facts or teach that save sends a reply. |
440
- | `adopt` | A small practice follow-up explicitly belonging to the existing onboarding quest (or an unambiguous approved interface quest) that already watches this conversation. Establish that owner before offering the emoji. Ask for adopt, verify the thread watch was added/re-armed, then invite one small owner update to demonstrate follow-up. Do not create a business quest or promise tracking without a verified owner. |
440
+ | `adopt` | A small practice follow-up explicitly belonging to the existing onboarding quest (or an unambiguous approved interface quest) that already watches this conversation. Establish that owner before offering the emoji. Ask for adopt, verify the thread watch was added/re-armed and any warranted immediate reply was handled, then invite one small owner update to demonstrate follow-up. Do not create a business quest or promise tracking without a verified owner. |
441
441
  | `expand` | Send a personalized rough-message suggestion and ask the owner to post it as their own normal message, then add the expand emoji to that message. Verify its authorship before editing. Keep it a private, low-risk practice update with no external action request. Show the in-place edit; never replace it with a new reply. |
442
442
 
443
443
  5. **Let the owner trigger the real workflow.** Never add trigger reactions for
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: yaas-quest-creation
3
- description: Scaffold a new quest folder under state/quests/active/. Use this when the user wants to start tracking a Slack thread, a reaction-triggered follow-up, or an ongoing conversation with a specific person. Invoke interactively — ask the user for title and watch targets, then create the 4-file quest folder. Does NOT create a quest without user confirmation.
3
+ description: Scaffold a new quest folder under state/quests/active/. Use this when the user wants to start tracking a Slack thread, a reaction-triggered follow-up, or an ongoing conversation with a specific person. Invoke interactively — ask the user for title and watch targets, then create the 4-file quest folder. An explicit creation request authorizes scaffolding; unresolved details go to manual review.
4
4
  ---
5
5
 
6
6
  # yaas-quest-creation
@@ -24,7 +24,7 @@ Scaffold a new yaas quest. A quest is a folder under `state/quests/active/` cont
24
24
 
25
25
  ### 1. Gather inputs interactively
26
26
 
27
- Ask the user for, in order:
27
+ Use information already supplied and reasonable defaults. An explicit request to create or track authorizes creation. Missing details are collected through manual review after scaffolding (see Edge cases below), and must not hold creation open in a terminal. Gather the following when available:
28
28
 
29
29
  1. **Title** — one short line, used both as the display name and to generate the quest ID slug.
30
30
  2. **What to watch** — at least one entry, each with a `type`:
@@ -150,7 +150,8 @@ Spec fields:
150
150
  - `allow_send_channels` — optional list of Slack conversation IDs authorized by the owner for text messages through `slack-send.py`. Grants no other send authority. Guided onboarding may grant its live-verified owner DM and the private interface channel explicitly approved by the owner; an ongoing interface quest may grant that approved channel only. Never widen permissions without authorization.
151
151
  - `sidequestor_bootstrap` is an internal dashboard/onboarding flag. With `true`, `watches` must be
152
152
  empty and triage uses its dedicated bootstrap dispatch to resolve and install exact watches.
153
- Ordinary interactive creation must omit it and provide at least one confirmed watch.
153
+ Interactive creation with confirmed watches omits it; authorized creation with unresolved
154
+ details uses it with empty watches, then queues the setup manual review described below.
154
155
  - `context` — body text for `context.md`
155
156
  - `note` — short note for the `created` timeline event (defaults to first 80 chars of context)
156
157
  - `retire_slack_threads_after_days` — non-negative int or `false`:
@@ -242,7 +243,7 @@ Always watch the **parent thread_ts**, not a reply's ts.
242
243
 
243
244
  ## Error handling
244
245
 
245
- If the user's input is ambiguous or missing required fields, ask a clarifying question. Never create a quest with placeholder content — either get real values or don't create the quest.
246
+ Missing details must not stall an authorized quest creation. Use the supplied objective and a short derived title; never invent external identifiers. Scaffold the quest with `watches: []` and `sidequestor_bootstrap: true` when exact watches are unresolved. After creation, use `sq approval write` with action_type `remote_request`, target `{"action":"quest_setup"}`, the quest ID/title, and concrete setup instructions in message_text. List uncertainties and questions in context and risk_reason. The helper arms an approval watch; verify it exists and let bootstrap finish with that durable watch. Keep allow_send false. Users answer through Request change in manual review; do not require a terminal. Install only live-verified external watches after the answers arrive.
246
247
 
247
248
  ## Resolving names to user IDs
248
249
 
@@ -252,7 +253,7 @@ If the user gives a name instead of a Slack user ID, look it up via:
252
253
  mcp__slack__slack_search_users with query="<name>"
253
254
  ```
254
255
 
255
- Present the result for confirmation before using it in watch.json. If multiple matches, list them and ask which one.
256
+ Verify an unambiguous match by live read before installing a watch. If multiple matches remain, create the quest and list the candidates in its setup manual review; do not stall creation.
256
257
 
257
258
  Notion multi-tick progress returns clean with the same delivery cursor, so ordinary
258
259
  scanning never increments stalled-watch backoff. Descendant 400/404 reads produce
@@ -284,7 +284,7 @@ Use this queue when you cannot or should not act immediately and the action need
284
284
 
285
285
  **Writing a review item:**
286
286
 
287
- Use `sq approval write '<json>'` — it routes to the packaged approval helper and handles dedup, flock, and ID generation atomically. Pass a JSON object with: `quest_id`, `quest_title`, `action_type` (`slack_message` / `file_edit` / `remote_request`), `target` (destination coordinates, such as `{channel_id, thread_ts}` for Slack or `{doc_id}` for Google Docs), `message_text`, `context` (concise explanation of what triggered this, who is involved, and why review is needed), `risk_reason`. The command prints the new approval ID on success, or nothing if an equivalent pending entry already exists. Slack messages deduplicate by quest and thread; requests without a channel ID deduplicate only when the full target and message match.
287
+ Use `sq approval write '<json>'` — it routes to the packaged approval helper and handles dedup, flock, and ID generation atomically. Pass a JSON object with: `quest_id`, `quest_title`, `action_type` (`slack_message` / `file_edit` / `remote_request`), `target` (destination coordinates, such as `{channel_id, thread_ts}` for Slack or `{doc_id}` for Google Docs), `message_text`, `context` (concise explanation of what triggered this, who is involved, and why review is needed), `risk_reason`. Include `source_url` with the verified permalink of the triggering message, email, or document, separately from the destination coordinates in `target`. This is displayed as Open Source beside prior context; never substitute the outbound destination for the source. For a Slack destination include `channel_name` or a human-readable audience label when known, alongside the exact IDs. The command prints the new approval ID on success, or nothing if an equivalent pending entry already exists. Slack messages deduplicate by quest and thread; requests without a channel ID deduplicate only when the full target and message match.
288
288
 
289
289
  The dashboard presents review content as a formatted preview with source editing. For longer `context` explanations and action plans in `file_edit` or `remote_request` `message_text`, use basic Markdown: short headings, paragraphs, and flat bullet or numbered lists. Put the decision or proposed action first. Keep short items short; avoid tables and nested lists, which the preview does not support. Code-fenced content is displayed as literal source. For outbound message drafts, `message_text` must remain the exact proposed body using the destination's formatting syntax (for example, Slack mrkdwn); do not add review-only headings or convert it to dashboard Markdown. Apply the same guidance to revised drafts and worker replies in the review conversation.
290
290
 
@@ -310,6 +310,16 @@ arbitrary effects cannot be proven from one target, use `approval-helper.py aban
310
310
  "<reason>"` rather than running it again. `done` clears `needs_reconcile` only after the outcome
311
311
  has been resolved.
312
312
 
313
+ **Quest setup reviews.** A `remote_request` with `target.action: quest_setup` is an
314
+ agent-proposed setup plan, not an instruction authored by the owner. For `needs_reply`,
315
+ read the owner's `review_note`, resolve the uncertainties, and use `sq approval answer`
316
+ to return a concrete revised setup plan for approval. Do not claim or close a `needs_reply`
317
+ item. For `reviewed`, claim it, live-verify the approved external identifiers, install the
318
+ exact watches through `sq watch`, verify them, then call `sq approval done` and ack handled.
319
+ If details remain unresolved, answer or fail it back to review with specific questions.
320
+ Keep sending disabled unless separately authorized. Close issue intentionally stops setup;
321
+ it does not install monitoring. Do not silently replace a cancelled setup review.
322
+
313
323
  **Manual instructions.** An item with `action_type: "manual_instruction"` came directly from
314
324
  the operator through the quest dashboard. Its `message_text` is the instruction to carry out,
315
325
  not text to send. If several dispatched approval watches point to manual instructions, process
@@ -11,7 +11,7 @@ Before interpreting any pending emoji, run `python3 "$SIDEQUESTOR_RUNTIME_ROOT/y
11
11
 
12
12
  ## Reactions Fast Path
13
13
 
14
- Reactions are their own dispatch target, **handled independently from quests**. When the dispatch target list contains `reactions`, run this path — do NOT read any quest folder files. Runtime send/lifecycle/ack helpers record reaction history in Inbox without changing send authorization. For saves, adoptions, and new quests, also use `log-event.py` with `quest_id: quest-inbox`, the source channel/message timestamp or permalink, outcome, and `linked_quest_id` when applicable. Include source/result links and any created/adopted quest ID in the ack note so blocked and skipped outcomes remain understandable in Inbox.
14
+ Reactions are their own dispatch target, **handled independently from quests**. When the dispatch target list contains `reactions`, run this path — read quest folder files only to resolve the owning quest and its context for `adopt`. Runtime send/lifecycle/ack helpers record reaction history in Inbox without changing send authorization. For saves, adoptions, and new quests, also use `log-event.py` with `quest_id: quest-inbox`, the source channel/message timestamp or permalink, outcome, and `linked_quest_id` when applicable. Include source/result links and any created/adopted quest ID in the ack note so blocked and skipped outcomes remain understandable in Inbox.
15
15
 
16
16
  ### Behavior table
17
17
 
@@ -20,9 +20,51 @@ Reactions are their own dispatch target, **handled independently from quests**.
20
20
  | `process` | Research the thread, then reply through `surfaces/slack-send.py` without a `quest_id` (send-only mode), with the parent `thread_ts`. On `mcp_externally_shared_channel_restricted`, retry through the same helper with `"draft": true` in the actual target thread, then DM the user only the draft permalink. Ack `handled` only after success; if both fail, ack `blocked`. | `state/claude_intensifies_replied.json` |
21
21
  | `draft` | Research, then create a draft through `surfaces/slack-send.py` with `"draft": true` and no `quest_id`. If it fails with `mcp_externally_shared_channel_restricted`, save it to the actual target thread through the same helper, then DM the user only the permalink to that thread — not the draft text. They'll open the thread and send the draft themselves. Ack the outcome; the runtime updates the lifecycle. | `state/writing_hand_replied.json` |
22
22
  | `save` | Save context silently to `state/context-memory/` (see § Context memory). Do not reply. No lifecycle (one-shot, no emoji swaps). | `state/floppy_disk_saved.json` |
23
- | `adopt` | Find the active quest watching this channel/thread, add a `slack_thread` watch with `"refresh_activity": true`, and log to that quest with `log-event.py`. The helper re-arms an existing duplicate watch. Do not reply. Ack `blocked` if no owning quest can be found; otherwise ack the verified adoption. | `state/incoming_envelope_adopted.json` |
23
+ | `adopt` | Find the active quest watching this channel/thread, add a `slack_thread` watch with `"refresh_activity": true`, and log to that quest with `log-event.py`. The helper re-arms an existing duplicate watch. After verified filing, handle any warranted immediate reply in the same dispatch (see Adopt below). Ack `blocked` if ownership, filing, or a needed reply remains unresolved; otherwise ack the completed adoption and reply decision. | `state/incoming_envelope_adopted.json` |
24
24
  | `expand` | Expand your own message in place through the guarded `slack-expand.py` helper, then complete explicit requests or a verified quest handoff. See below; never fall back to posting a new message. | `state/magic_wand_expanded.json` |
25
25
 
26
+ ### Adopt, then respond (`adopt`, default incoming envelope)
27
+
28
+ The inbox reaction requests both filing and immediate handling. Adding a watch alone does
29
+ not handle a question or request already present: a newly installed watch may only notice
30
+ future replies. Complete these steps in order in this dispatch:
31
+
32
+ 1. Resolve the right active quest from its objective, context, and existing channel/thread
33
+ watches. Read candidate quests as needed; a shared channel alone is not sufficient when
34
+ several quests watch it. If ownership is ambiguous or absent, surface a manual review
35
+ with the candidate quests and specific question, then ack `blocked`; never guess an owner.
36
+ 2. Verify the real parent thread by live read. Add or re-arm its `slack_thread` watch with
37
+ `"refresh_activity": true` through the locking helper, verify the watch is present, and
38
+ log adoption to that quest and Inbox with source coordinates and `linked_quest_id`.
39
+ For a new watch, set `last_checked_ts` to the newest message timestamp actually read,
40
+ so the quest does not replay the already-handled thread history. Never advance an
41
+ existing watch watermark; the helper owns existing watch state.
42
+ 3. **After filing, assess and handle the current message now.** Load
43
+ `.yaas/engine/current/skills/yaas-answering-quality/SKILL.md` and
44
+ `.yaas/engine/current/skills/yaas-draft-readiness/SKILL.md`. Read the complete current
45
+ thread and owning quest context. If a question or request warrants an immediate reply,
46
+ research/do the work and respond in the original thread during this dispatch. Do not
47
+ stop at filing, promise a later reply, or wait for a new message to wake the watch.
48
+ If no reply is owed (already answered, resolved, or humans still talking), log the
49
+ concrete reason; do not send an adoption acknowledgment just to announce filing.
50
+ 4. Send through `surfaces/slack-send.py` with the original channel and parent `thread_ts`,
51
+ **without `quest_id`**, as for `process`. This reaction authorizes this warranted reply;
52
+ it does not change the quest's `allow_send` or authorize future automatic sends. Honor
53
+ the owning quest's scope and explicit review requirements; queue a required review
54
+ rather than bypass it. Use the same restricted-channel draft fallback and uncertain
55
+ delivery reconciliation as `process`. Record a confirmed reply's coordinates/permalink
56
+ in both Inbox and the owning quest timeline using `log-event.py`; do not route the send
57
+ through the quest from a reactions dispatch.
58
+ 5. Ack `handled` and mark the adoption processed only after filing and the reply (or required
59
+ review/draft handoff) are verified, or a conscious no-reply decision is logged. A failed
60
+ required reply is `blocked`, even when filing succeeded. Include the owning quest and
61
+ reply/review link or no-reply reason in the ack note.
62
+
63
+ On retry, an existing watch proves only filing, not that the reply was handled. Reuse the
64
+ watch; inspect the thread and recorded send outcomes before sending. Reconcile uncertain
65
+ sends first and never duplicate a confirmed reply. If `process` also targets this message,
66
+ check its result before replying so the same request is answered once.
67
+
26
68
  ### Expand in place (`expand`, default 🪄)
27
69
 
28
70
  This is the fifth independent reaction action. Its first successful scan establishes
@@ -98,16 +140,16 @@ For the `reactions` target, execute exactly these steps:
98
140
  `slack-file.py fetch '{"channel_id":"C...","ts":"<msg_ts>"}'` (read-only). `save` records what the
99
141
  attachment shows, not just its filename.
100
142
  b. **Register missing coordinates** with `ack-watch.py locate` immediately after locating the message, before fetching attachments or doing other work (§ Reaction lifecycle).
101
- c. Act per the table above. Before composing a `process` reply or `draft`, load
143
+ c. Act per the table above. Before composing a `process` or `adopt` reply or `draft`, load
102
144
  `.yaas/engine/current/skills/yaas-answering-quality/SKILL.md` and
103
145
  `.yaas/engine/current/skills/yaas-draft-readiness/SKILL.md`.
104
146
  d. **Commitment check (§ 3b applies here).** Before sending, scan your draft reply for commitment phrases ("I'll", "will rerun", "will confirm", "let me"). If the thread asks you to DO something, do the work first and reply once with the result — never reply with a promise and exit. Verify capability (available tools, credentials in `.env`) before deciding you can't. If the action genuinely cannot complete in-tick, spawn a quest (§ New quests from reactions) before exiting so the promise has a trigger — a commitment tracked nowhere never resurfaces.
105
147
  e. Choose an honest outcome: completed action or verified tracked handoff → `handled`; consciously no action needed → `nothing_to_do`; unresolved capability/scope or uncertain external outcome → `blocked`. An unresolved task is not a conscious no-op.
106
148
  f. **Append `msg_ts`** to the emoji's state file only for completed or consciously declined work. Never mark unresolved work processed. The ack receipt also prevents re-processing even if status delivery fails.
107
- 3. **Ack each `(emoji, msg_ts)` pair** in the ledger (§ 4a) using item_id `<emoji>:<msg_ts>` — `handled` when you replied / drafted / saved, `nothing_to_do` for a conscious skip, `blocked` if you couldn't. Triage keeps every unacked pair in `pending_reactions.json` for the next tick and deletes the file only once all of them are closed, so a reaction you silently skip is no longer lost.
149
+ 3. **Ack each `(emoji, msg_ts)` pair** in the ledger (§ 4a) using item_id `<emoji>:<msg_ts>` — `handled` when you replied / drafted / saved / completed adoption and its reply decision, `nothing_to_do` for a conscious skip, `blocked` if you couldn't. Triage keeps every unacked pair in `pending_reactions.json` for the next tick and deletes the file only once all of them are closed, so a reaction you silently skip is no longer lost.
108
150
  4. **Exit 0** when all entries are processed and acked.
109
151
 
110
- For `process` and `draft`, never call `slack_send_message` or
152
+ For `process`, `draft`, and an `adopt` reply, never call `slack_send_message` or
111
153
  `slack_send_message_draft` directly. Use the sanctioned surface even though reaction work has no
112
154
  quest timeline:
113
155
 
@@ -1452,11 +1452,18 @@ def dispatch_one(t, target, timeout, dirty_watches_json):
1452
1452
  "test to repository, issue, email-query, and other external watches whenever the "
1453
1453
  "source supports it. Only after verification, use `sq watch` to append at least one "
1454
1454
  "exact durable watch. If a live read is missing, forbidden, mismatched, or cannot be "
1455
- "performed, block instead of installing the watch. A legitimate one-shot request may "
1455
+ "performed, do not install that external watch; queue a setup manual review instead. A legitimate one-shot request may "
1456
1456
  "instead be completed and moved out of "
1457
1457
  "state/quests/active according to OPERATING.md. If exact setup is ambiguous or a "
1458
- "dependency is unavailable, record a blocked timeline event and ack the bootstrap "
1459
- "item as blocked; do not install a speculative watch. Do not edit or remove the "
1458
+ "dependency is unavailable, reuse any existing nonterminal quest_setup review and re-arm "
1459
+ "its approval watch with `sq approval arm <id>`. Otherwise finish creation by calling `sq approval write` with "
1460
+ "action_type `remote_request`, target {action: quest_setup}, the quest ID and title, "
1461
+ "and message_text describing the concrete setup to resume after the operator answers. "
1462
+ "Put all uncertainties and specific questions in context and risk_reason. This atomically "
1463
+ "arms an approval watch; verify it exists, then ack the bootstrap item handled. "
1464
+ "Keep allow_send false and install only verified external watches. The quest must appear "
1465
+ "under manual review rather than remain initialising or require a terminal. If writing "
1466
+ "the review itself fails, record the failure and ack blocked. Do not install a speculative watch. Do not edit or remove the "
1460
1467
  "sidequestor_bootstrap field yourself; triage clears it only after verifying a real "
1461
1468
  "watch or terminal quest state. The workspace has no yaas-triage/ source directory; "
1462
1469
  f"for helper commands use the packaged runtime path.{runtime_hint} "
@@ -1,3 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: sidequestor
3
+ Version: 0.2.11.dev0
4
+ Summary: Sidequestor workspace and triage command shell
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.11
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Requires-Dist: truststore<1,>=0.10
10
+ Provides-Extra: telegram
11
+ Requires-Dist: Telethon<2,>=1.44; extra == "telegram"
12
+ Dynamic: license-file
13
+
1
14
  # Sidequestor
2
15
 
3
16
  **Your side quests, handled.** Sidequestor is a local-first Slack sidekick that keeps small
@@ -670,6 +683,13 @@ their saved formatting until an agent or you updates them; an upgrade does not r
670
683
  ## How do I review proposed actions?
671
684
 
672
685
  Open a manual review item in the dashboard to read its context and formatted proposal.
686
+ **Open destination** identifies where the proposed action will go. **Open Source** appears
687
+ beside prior context when a source link was recorded; older items without one say so.
688
+
689
+ When quest creation lacks exact identifiers or requirements, the quest is scaffolded and
690
+ its unresolved questions appear in a setup review. Use **Request change** to answer them,
691
+ then approve the resolved setup plan to install verified watches. **Close issue** stops
692
+ setup. A setup review does not authorize sending messages.
673
693
  Use **Edit** to change the source text, then **Preview** to read it again. Read-only items
674
694
  offer **View source** instead. Dashboard polling preserves unsaved edits and the selected view.
675
695
  Approve or save an edit to persist your changes; switching views alone does not save them.
@@ -800,6 +820,25 @@ for a second sample before sending a macOS notification for transient worker fau
800
820
  between workers. A temporary watcher watermark hold clears from the quest's current blockers
801
821
  after that watch successfully checks again; a separate unresolved quest blocker stays visible.
802
822
 
823
+ ### Changes in 0.2.11.dev0
824
+
825
+ This development release adds setup reviews for incomplete quest requests and separates
826
+ source links from destinations in approval cards. The configured inbox/adopt reaction now
827
+ files a Slack thread under the right existing quest, then handles a warranted immediate
828
+ reply in the same dispatch. It checks the current thread and previous outcomes before
829
+ retrying; no reply is sent when none is owed. Future quest sends retain their existing
830
+ permissions. Ambiguous ownership or unresolved delivery goes to review/retry.
831
+
832
+ To install this prerelease explicitly with uv:
833
+
834
+ ```bash
835
+ uv tool install --force 'sidequestor==0.2.11.dev0'
836
+ ```
837
+
838
+ Use `sidequestor[telegram]==0.2.11.dev0` to retain Telegram support. In each workspace,
839
+ run `sq sync-resources`; restart previously running jobs with `sq stop` then `sq start`.
840
+ The stable installation examples above remain pinned to 0.2.10.
841
+
803
842
  ### Changes in 0.2.10
804
843
 
805
844
  Schedules bookmark the boundary actually evaluated by their checker after
@@ -24,6 +24,13 @@ vm.runInContext(definitions.concat(names.map(declaration)).join('\n') + String.r
24
24
  assert.ok(updateCheckMessage({status:'rate_limited',retry_after:42}).includes('42s'));
25
25
  assert.ok(updateCheckMessage({status:'failed'}).includes('failed'));
26
26
  globalThis.watchTime=()=>'';
27
+ assert.equal(reviewDestination({target:{action:'quest_setup'},quest_title:'Launch'}).value,'Launch');
28
+ const linkedReview=approvalCard({id:'links',action_type:'slack_message',target:{channel_id:'C123'},link_url:'https://example.com/destination',source_url:'https://example.com/source',available_actions:[]});
29
+ assert.ok(linkedReview.includes('href="https://example.com/destination" target="_blank" rel="noopener">Open destination'));
30
+ assert.ok(linkedReview.includes('href="https://example.com/source" target="_blank" rel="noopener">Open Source'));
31
+ assert.ok(linkedReview.indexOf('Open destination')<linkedReview.indexOf('Prior context'));
32
+ assert.ok(approvalCard({target:{},available_actions:[]}).includes('Source link not recorded'));
33
+
27
34
  globalThis.restoreFocus=()=>{};
28
35
  globalThis.CSS={escape:x=>x};
29
36
  const subhead={innerHTML:''};