@askexenow/exe-os 0.9.85 → 0.9.87

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 (86) hide show
  1. package/dist/bin/agentic-ontology-backfill.js +50 -14
  2. package/dist/bin/agentic-reflection-backfill.js +50 -14
  3. package/dist/bin/agentic-semantic-label.js +50 -14
  4. package/dist/bin/backfill-conversations.js +50 -14
  5. package/dist/bin/backfill-responses.js +50 -14
  6. package/dist/bin/backfill-vectors.js +50 -14
  7. package/dist/bin/bulk-sync-postgres.js +50 -14
  8. package/dist/bin/cleanup-stale-review-tasks.js +53 -17
  9. package/dist/bin/cli.js +339 -81
  10. package/dist/bin/exe-agent.js +18 -0
  11. package/dist/bin/exe-assign.js +50 -14
  12. package/dist/bin/exe-boot.js +75 -39
  13. package/dist/bin/exe-call.js +18 -0
  14. package/dist/bin/exe-cloud.js +40 -4
  15. package/dist/bin/exe-dispatch.js +61 -25
  16. package/dist/bin/exe-doctor.js +40 -4
  17. package/dist/bin/exe-export-behaviors.js +50 -14
  18. package/dist/bin/exe-forget.js +50 -14
  19. package/dist/bin/exe-gateway.js +65 -29
  20. package/dist/bin/exe-heartbeat.js +55 -19
  21. package/dist/bin/exe-kill.js +54 -18
  22. package/dist/bin/exe-launch-agent.js +58 -22
  23. package/dist/bin/exe-new-employee.js +33 -2
  24. package/dist/bin/exe-pending-messages.js +53 -17
  25. package/dist/bin/exe-pending-notifications.js +53 -17
  26. package/dist/bin/exe-pending-reviews.js +55 -19
  27. package/dist/bin/exe-rename.js +52 -16
  28. package/dist/bin/exe-review.js +50 -14
  29. package/dist/bin/exe-search.js +58 -22
  30. package/dist/bin/exe-session-cleanup.js +85 -44
  31. package/dist/bin/exe-start-codex.js +57 -21
  32. package/dist/bin/exe-start-opencode.js +55 -19
  33. package/dist/bin/exe-status.js +62 -26
  34. package/dist/bin/exe-team.js +50 -14
  35. package/dist/bin/git-sweep.js +63 -27
  36. package/dist/bin/graph-backfill.js +50 -14
  37. package/dist/bin/graph-export.js +50 -14
  38. package/dist/bin/install.js +9 -0
  39. package/dist/bin/intercom-check.js +67 -31
  40. package/dist/bin/scan-tasks.js +63 -27
  41. package/dist/bin/setup.js +53 -13
  42. package/dist/bin/shard-migrate.js +50 -14
  43. package/dist/bin/stack-update.js +59 -2
  44. package/dist/bin/update.js +1 -1
  45. package/dist/gateway/index.js +65 -29
  46. package/dist/hooks/bug-report-worker.js +65 -29
  47. package/dist/hooks/codex-stop-task-finalizer.js +59 -23
  48. package/dist/hooks/commit-complete.js +64 -28
  49. package/dist/hooks/error-recall.js +62 -26
  50. package/dist/hooks/ingest-worker.js +4 -4
  51. package/dist/hooks/ingest.js +56 -20
  52. package/dist/hooks/instructions-loaded.js +50 -14
  53. package/dist/hooks/notification.js +50 -14
  54. package/dist/hooks/post-compact.js +50 -14
  55. package/dist/hooks/post-tool-combined.js +63 -27
  56. package/dist/hooks/pre-compact.js +61 -25
  57. package/dist/hooks/pre-tool-use.js +58 -22
  58. package/dist/hooks/prompt-submit.js +78 -42
  59. package/dist/hooks/session-end.js +66 -30
  60. package/dist/hooks/session-start.js +68 -32
  61. package/dist/hooks/stop.js +53 -17
  62. package/dist/hooks/subagent-stop.js +50 -14
  63. package/dist/hooks/summary-worker.js +55 -19
  64. package/dist/index.js +61 -25
  65. package/dist/lib/cloud-sync.js +32 -14
  66. package/dist/lib/database.js +22 -4
  67. package/dist/lib/db-daemon-client.js +16 -4
  68. package/dist/lib/db.js +22 -4
  69. package/dist/lib/device-registry.js +22 -4
  70. package/dist/lib/embedder.js +16 -4
  71. package/dist/lib/employee-templates.js +18 -0
  72. package/dist/lib/exe-daemon-client.js +16 -4
  73. package/dist/lib/exe-daemon.js +874 -232
  74. package/dist/lib/hybrid-search.js +58 -22
  75. package/dist/lib/identity-templates.js +6 -2
  76. package/dist/lib/schedules.js +53 -17
  77. package/dist/lib/skill-learning.js +16 -4
  78. package/dist/lib/store.js +50 -14
  79. package/dist/lib/tasks.js +16 -4
  80. package/dist/lib/tmux-routing.js +18 -6
  81. package/dist/mcp/server.js +809 -200
  82. package/dist/mcp/tools/create-task.js +24 -8
  83. package/dist/mcp/tools/update-task.js +18 -6
  84. package/dist/runtime/index.js +61 -25
  85. package/dist/tui/App.js +91 -55
  86. package/package.json +1 -1
@@ -992,7 +992,7 @@ __export(exe_daemon_client_exports, {
992
992
  });
993
993
  import net from "net";
994
994
  import os4 from "os";
995
- import { spawn } from "child_process";
995
+ import { spawn, execSync as execSync2 } from "child_process";
996
996
  import { randomUUID } from "crypto";
997
997
  import { existsSync as existsSync5, unlinkSync as unlinkSync2, readFileSync as readFileSync4, openSync, closeSync, statSync } from "fs";
998
998
  import path5 from "path";
@@ -1022,6 +1022,14 @@ function handleData(chunk) {
1022
1022
  }
1023
1023
  }
1024
1024
  }
1025
+ function isZombie(pid) {
1026
+ try {
1027
+ const state = execSync2(`ps -p ${pid} -o state=`, { encoding: "utf8", timeout: 2e3 }).trim();
1028
+ return state.startsWith("Z");
1029
+ } catch {
1030
+ return false;
1031
+ }
1032
+ }
1025
1033
  function cleanupStaleFiles() {
1026
1034
  if (existsSync5(PID_PATH)) {
1027
1035
  try {
@@ -1029,7 +1037,11 @@ function cleanupStaleFiles() {
1029
1037
  if (pid > 0) {
1030
1038
  try {
1031
1039
  process.kill(pid, 0);
1032
- return;
1040
+ if (!isZombie(pid)) {
1041
+ return;
1042
+ }
1043
+ process.stderr.write(`[exed-client] PID ${pid} is a zombie \u2014 cleaning up stale files
1044
+ `);
1033
1045
  } catch {
1034
1046
  }
1035
1047
  }
@@ -1057,8 +1069,8 @@ function findPackageRoot() {
1057
1069
  function getAvailableMemoryGB() {
1058
1070
  if (process.platform === "darwin") {
1059
1071
  try {
1060
- const { execSync: execSync3 } = __require("child_process");
1061
- const vmstat = execSync3("vm_stat", { encoding: "utf8" });
1072
+ const { execSync: execSync4 } = __require("child_process");
1073
+ const vmstat = execSync4("vm_stat", { encoding: "utf8" });
1062
1074
  const pageSize = 16384;
1063
1075
  const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
1064
1076
  const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
@@ -3048,6 +3060,12 @@ async function disposeDatabase() {
3048
3060
  clearInterval(_walCheckpointTimer);
3049
3061
  _walCheckpointTimer = null;
3050
3062
  }
3063
+ if (_client) {
3064
+ try {
3065
+ await _client.execute("PRAGMA wal_checkpoint(PASSIVE)");
3066
+ } catch {
3067
+ }
3068
+ }
3051
3069
  if (_daemonClient) {
3052
3070
  _daemonClient.close();
3053
3071
  _daemonClient = null;
@@ -3084,7 +3102,7 @@ var init_database = __esm({
3084
3102
  // src/lib/keychain.ts
3085
3103
  import { readFile as readFile3, writeFile as writeFile3, unlink, mkdir as mkdir3, chmod as chmod2 } from "fs/promises";
3086
3104
  import { existsSync as existsSync6, statSync as statSync2 } from "fs";
3087
- import { execSync as execSync2 } from "child_process";
3105
+ import { execSync as execSync3 } from "child_process";
3088
3106
  import path6 from "path";
3089
3107
  import os5 from "os";
3090
3108
  function getKeyDir() {
@@ -3101,13 +3119,13 @@ function linuxSecretAvailable() {
3101
3119
  if (process.platform !== "linux") return false;
3102
3120
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
3103
3121
  try {
3104
- execSync2("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3122
+ execSync3("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3105
3123
  } catch {
3106
3124
  linuxSecretAvailability = false;
3107
3125
  return false;
3108
3126
  }
3109
3127
  try {
3110
- execSync2("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3128
+ execSync3("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3111
3129
  linuxSecretAvailability = true;
3112
3130
  } catch {
3113
3131
  linuxSecretAvailability = false;
@@ -3131,7 +3149,7 @@ function macKeychainGet(service = SERVICE) {
3131
3149
  if (!nativeKeychainAllowed()) return null;
3132
3150
  if (process.platform !== "darwin") return null;
3133
3151
  try {
3134
- return execSync2(
3152
+ return execSync3(
3135
3153
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
3136
3154
  { encoding: "utf-8", timeout: 5e3 }
3137
3155
  ).trim();
@@ -3144,13 +3162,13 @@ function macKeychainSet(value, service = SERVICE) {
3144
3162
  if (process.platform !== "darwin") return false;
3145
3163
  try {
3146
3164
  try {
3147
- execSync2(
3165
+ execSync3(
3148
3166
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3149
3167
  { timeout: 5e3 }
3150
3168
  );
3151
3169
  } catch {
3152
3170
  }
3153
- execSync2(
3171
+ execSync3(
3154
3172
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
3155
3173
  { timeout: 5e3 }
3156
3174
  );
@@ -3163,7 +3181,7 @@ function macKeychainDelete(service = SERVICE) {
3163
3181
  if (!nativeKeychainAllowed()) return false;
3164
3182
  if (process.platform !== "darwin") return false;
3165
3183
  try {
3166
- execSync2(
3184
+ execSync3(
3167
3185
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3168
3186
  { timeout: 5e3 }
3169
3187
  );
@@ -3175,7 +3193,7 @@ function macKeychainDelete(service = SERVICE) {
3175
3193
  function linuxSecretGet(service = SERVICE) {
3176
3194
  if (!linuxSecretAvailable()) return null;
3177
3195
  try {
3178
- return execSync2(
3196
+ return execSync3(
3179
3197
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3180
3198
  { encoding: "utf-8", timeout: 5e3 }
3181
3199
  ).trim();
@@ -3186,7 +3204,7 @@ function linuxSecretGet(service = SERVICE) {
3186
3204
  function linuxSecretSet(value, service = SERVICE) {
3187
3205
  if (!linuxSecretAvailable()) return false;
3188
3206
  try {
3189
- execSync2(
3207
+ execSync3(
3190
3208
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3191
3209
  { timeout: 5e3 }
3192
3210
  );
@@ -3199,7 +3217,7 @@ function linuxSecretDelete(service = SERVICE) {
3199
3217
  if (!nativeKeychainAllowed()) return false;
3200
3218
  if (process.platform !== "linux") return false;
3201
3219
  try {
3202
- execSync2(
3220
+ execSync3(
3203
3221
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3204
3222
  { timeout: 5e3 }
3205
3223
  );
@@ -4136,6 +4154,24 @@ var init_platform_procedures = __esm({
4136
4154
  priority: "p0",
4137
4155
  content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
4138
4156
  },
4157
+ {
4158
+ title: "Bug report status check \u2014 surface available fixes on boot",
4159
+ domain: "support",
4160
+ priority: "p1",
4161
+ content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4162
+ },
4163
+ {
4164
+ title: "Feature request triage \u2014 upstream feature vs local customization",
4165
+ domain: "support",
4166
+ priority: "p0",
4167
+ content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
4168
+ },
4169
+ {
4170
+ title: "Feature request status check \u2014 surface shipped features on boot",
4171
+ domain: "support",
4172
+ priority: "p1",
4173
+ content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4174
+ },
4139
4175
  // --- Operations ---
4140
4176
  {
4141
4177
  title: "Managers must supervise deployed workers",
@@ -1703,7 +1703,7 @@ var init_daemon_auth = __esm({
1703
1703
  // src/lib/exe-daemon-client.ts
1704
1704
  import net from "net";
1705
1705
  import os5 from "os";
1706
- import { spawn } from "child_process";
1706
+ import { spawn, execSync as execSync2 } from "child_process";
1707
1707
  import { randomUUID } from "crypto";
1708
1708
  import { existsSync as existsSync6, unlinkSync as unlinkSync2, readFileSync as readFileSync5, openSync, closeSync, statSync } from "fs";
1709
1709
  import path7 from "path";
@@ -1733,6 +1733,14 @@ function handleData(chunk) {
1733
1733
  }
1734
1734
  }
1735
1735
  }
1736
+ function isZombie(pid) {
1737
+ try {
1738
+ const state = execSync2(`ps -p ${pid} -o state=`, { encoding: "utf8", timeout: 2e3 }).trim();
1739
+ return state.startsWith("Z");
1740
+ } catch {
1741
+ return false;
1742
+ }
1743
+ }
1736
1744
  function cleanupStaleFiles() {
1737
1745
  if (existsSync6(PID_PATH)) {
1738
1746
  try {
@@ -1740,7 +1748,11 @@ function cleanupStaleFiles() {
1740
1748
  if (pid > 0) {
1741
1749
  try {
1742
1750
  process.kill(pid, 0);
1743
- return;
1751
+ if (!isZombie(pid)) {
1752
+ return;
1753
+ }
1754
+ process.stderr.write(`[exed-client] PID ${pid} is a zombie \u2014 cleaning up stale files
1755
+ `);
1744
1756
  } catch {
1745
1757
  }
1746
1758
  }
@@ -1768,8 +1780,8 @@ function findPackageRoot() {
1768
1780
  function getAvailableMemoryGB() {
1769
1781
  if (process.platform === "darwin") {
1770
1782
  try {
1771
- const { execSync: execSync8 } = __require("child_process");
1772
- const vmstat = execSync8("vm_stat", { encoding: "utf8" });
1783
+ const { execSync: execSync9 } = __require("child_process");
1784
+ const vmstat = execSync9("vm_stat", { encoding: "utf8" });
1773
1785
  const pageSize = 16384;
1774
1786
  const pageSizeMatch = vmstat.match(/page size of (\d+) bytes/);
1775
1787
  const actualPageSize = pageSizeMatch ? parseInt(pageSizeMatch[1], 10) : pageSize;
@@ -3704,6 +3716,12 @@ async function disposeDatabase() {
3704
3716
  clearInterval(_walCheckpointTimer);
3705
3717
  _walCheckpointTimer = null;
3706
3718
  }
3719
+ if (_client) {
3720
+ try {
3721
+ await _client.execute("PRAGMA wal_checkpoint(PASSIVE)");
3722
+ } catch {
3723
+ }
3724
+ }
3707
3725
  if (_daemonClient) {
3708
3726
  _daemonClient.close();
3709
3727
  _daemonClient = null;
@@ -3808,7 +3826,7 @@ var init_embedder = __esm({
3808
3826
  // src/lib/keychain.ts
3809
3827
  import { readFile as readFile3, writeFile as writeFile3, unlink, mkdir as mkdir3, chmod as chmod2 } from "fs/promises";
3810
3828
  import { existsSync as existsSync7, statSync as statSync2 } from "fs";
3811
- import { execSync as execSync2 } from "child_process";
3829
+ import { execSync as execSync3 } from "child_process";
3812
3830
  import path8 from "path";
3813
3831
  import os6 from "os";
3814
3832
  function getKeyDir() {
@@ -3825,13 +3843,13 @@ function linuxSecretAvailable() {
3825
3843
  if (process.platform !== "linux") return false;
3826
3844
  if (linuxSecretAvailability !== null) return linuxSecretAvailability;
3827
3845
  try {
3828
- execSync2("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3846
+ execSync3("command -v secret-tool >/dev/null 2>&1", { timeout: 1e3 });
3829
3847
  } catch {
3830
3848
  linuxSecretAvailability = false;
3831
3849
  return false;
3832
3850
  }
3833
3851
  try {
3834
- execSync2("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3852
+ execSync3("secret-tool search --all exe-os probe >/dev/null 2>&1", { timeout: 1e3 });
3835
3853
  linuxSecretAvailability = true;
3836
3854
  } catch {
3837
3855
  linuxSecretAvailability = false;
@@ -3855,7 +3873,7 @@ function macKeychainGet(service = SERVICE) {
3855
3873
  if (!nativeKeychainAllowed()) return null;
3856
3874
  if (process.platform !== "darwin") return null;
3857
3875
  try {
3858
- return execSync2(
3876
+ return execSync3(
3859
3877
  `security find-generic-password -s "${service}" -a "${ACCOUNT}" -w 2>/dev/null`,
3860
3878
  { encoding: "utf-8", timeout: 5e3 }
3861
3879
  ).trim();
@@ -3868,13 +3886,13 @@ function macKeychainSet(value, service = SERVICE) {
3868
3886
  if (process.platform !== "darwin") return false;
3869
3887
  try {
3870
3888
  try {
3871
- execSync2(
3889
+ execSync3(
3872
3890
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3873
3891
  { timeout: 5e3 }
3874
3892
  );
3875
3893
  } catch {
3876
3894
  }
3877
- execSync2(
3895
+ execSync3(
3878
3896
  `security add-generic-password -s "${service}" -a "${ACCOUNT}" -w "${value}"`,
3879
3897
  { timeout: 5e3 }
3880
3898
  );
@@ -3887,7 +3905,7 @@ function macKeychainDelete(service = SERVICE) {
3887
3905
  if (!nativeKeychainAllowed()) return false;
3888
3906
  if (process.platform !== "darwin") return false;
3889
3907
  try {
3890
- execSync2(
3908
+ execSync3(
3891
3909
  `security delete-generic-password -s "${service}" -a "${ACCOUNT}" 2>/dev/null`,
3892
3910
  { timeout: 5e3 }
3893
3911
  );
@@ -3899,7 +3917,7 @@ function macKeychainDelete(service = SERVICE) {
3899
3917
  function linuxSecretGet(service = SERVICE) {
3900
3918
  if (!linuxSecretAvailable()) return null;
3901
3919
  try {
3902
- return execSync2(
3920
+ return execSync3(
3903
3921
  `secret-tool lookup service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3904
3922
  { encoding: "utf-8", timeout: 5e3 }
3905
3923
  ).trim();
@@ -3910,7 +3928,7 @@ function linuxSecretGet(service = SERVICE) {
3910
3928
  function linuxSecretSet(value, service = SERVICE) {
3911
3929
  if (!linuxSecretAvailable()) return false;
3912
3930
  try {
3913
- execSync2(
3931
+ execSync3(
3914
3932
  `echo -n "${value}" | secret-tool store --label="exe-os master key" service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3915
3933
  { timeout: 5e3 }
3916
3934
  );
@@ -3923,7 +3941,7 @@ function linuxSecretDelete(service = SERVICE) {
3923
3941
  if (!nativeKeychainAllowed()) return false;
3924
3942
  if (process.platform !== "linux") return false;
3925
3943
  try {
3926
- execSync2(
3944
+ execSync3(
3927
3945
  `secret-tool clear service "${service}" account "${ACCOUNT}" 2>/dev/null`,
3928
3946
  { timeout: 5e3 }
3929
3947
  );
@@ -4805,6 +4823,24 @@ var init_platform_procedures = __esm({
4805
4823
  priority: "p0",
4806
4824
  content: "When an agent encounters a suspected Exe OS bug, update breakage, MCP/tool failure, installer issue, memory/orchestration defect, or customer-local patch need, it MUST use create_bug_report. Do this before or alongside any local workaround so the report reaches AskExe support directly via the customer's license. Do NOT ask the founder for permission to file a required bug report. If create_bug_report is deferred/lazy-loaded, load it and call it. If it is unavailable in the live MCP surface, report 'create_bug_report unavailable in this session' and save a local report in exe/output \u2014 never claim the tool does not exist unless the live MCP surface was checked. If upstream delivery fails, call support_test (MCP) and include its result in the local report so AskExe can distinguish customer setup, license provisioning, and server intake issues; only ask the founder to run `exe-os support test` if MCP is disconnected/unavailable. Classify first: upstream_bug = reproducible exe-os/platform defect; customer_customization = identity, behavior, procedure, config, branding, workflow preference that belongs in customer-owned layers; emergency_hotfix = temporary local patch. For upstream bugs/emergency hotfixes include version, repro steps, expected/actual, files changed, workaround, and local diff summary. Avoid permanent platform-code patches unless founder approves; if a hotfix is unavoidable, document it in the bug report and re-check after npm update."
4807
4825
  },
4826
+ {
4827
+ title: "Bug report status check \u2014 surface available fixes on boot",
4828
+ domain: "support",
4829
+ priority: "p1",
4830
+ content: "Once per session (COO boot only, never repeat), call list_my_bug_reports to check if any previously filed bug reports have been fixed by AskExe. If any report has status 'fixed' with a fixed_version, surface it to the founder immediately: '\u{1F527} N bug fix(es) available \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no reports exist or none are fixed, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4831
+ },
4832
+ {
4833
+ title: "Feature request triage \u2014 upstream feature vs local customization",
4834
+ domain: "support",
4835
+ priority: "p0",
4836
+ content: "When an agent or founder identifies a desired capability that exe-os does not yet provide, the COO (or equivalent coordinator) must decide: is this a local customization (identity, behavior, procedure, config, branding, workflow preference that can be configured in customer-owned layers) or an upstream feature request (a platform capability that requires changes to exe-os code, shipped via npm update)? Local customizations: implement immediately using store_behavior, update_identity, company_procedure, or config changes. Upstream features: use create_feature_request to submit to AskExe. Include use case, business impact, and current workaround. Do NOT ask the founder for permission to file a feature request \u2014 file it proactively when the need is clear."
4837
+ },
4838
+ {
4839
+ title: "Feature request status check \u2014 surface shipped features on boot",
4840
+ domain: "support",
4841
+ priority: "p1",
4842
+ content: "Once per session (COO boot only, never repeat), call list_my_feature_requests to check if any previously filed feature requests have been shipped by AskExe. If any request has status 'shipped' with a shipped_version, surface it to the founder immediately: '\u{1F680} N feature(s) shipped \u2014 run exe-os update to get version X.Y.Z'. This is a one-time check at boot, not a recurring poll. If no requests exist or none are shipped, skip silently. If the MCP tool is unavailable or the network call fails, skip silently \u2014 this is informational, not blocking."
4843
+ },
4808
4844
  // --- Operations ---
4809
4845
  {
4810
4846
  title: "Managers must supervise deployed workers",
@@ -9406,7 +9442,7 @@ var init_session_registry = __esm({
9406
9442
  });
9407
9443
 
9408
9444
  // src/lib/session-key.ts
9409
- import { execSync as execSync3 } from "child_process";
9445
+ import { execSync as execSync4 } from "child_process";
9410
9446
  function normalizeCommand(command) {
9411
9447
  const trimmed = command.trim().toLowerCase();
9412
9448
  const parts = trimmed.split(/[\\/]/);
@@ -9425,7 +9461,7 @@ function resolveRuntimeProcess() {
9425
9461
  let pid = process.ppid;
9426
9462
  for (let i = 0; i < 10; i++) {
9427
9463
  try {
9428
- const info = execSync3(`ps -p ${pid} -o ppid=,comm=`, {
9464
+ const info = execSync4(`ps -p ${pid} -o ppid=,comm=`, {
9429
9465
  encoding: "utf8",
9430
9466
  timeout: 2e3
9431
9467
  }).trim();
@@ -9591,14 +9627,14 @@ var init_transport = __esm({
9591
9627
  });
9592
9628
 
9593
9629
  // src/lib/cc-agent-support.ts
9594
- import { execSync as execSync4 } from "child_process";
9630
+ import { execSync as execSync5 } from "child_process";
9595
9631
  function _resetCcAgentSupportCache() {
9596
9632
  _cachedSupport = null;
9597
9633
  }
9598
9634
  function claudeSupportsAgentFlag() {
9599
9635
  if (_cachedSupport !== null) return _cachedSupport;
9600
9636
  try {
9601
- const helpOutput = execSync4("claude --help 2>&1", {
9637
+ const helpOutput = execSync5("claude --help 2>&1", {
9602
9638
  encoding: "utf-8",
9603
9639
  timeout: 5e3
9604
9640
  });
@@ -10056,7 +10092,7 @@ var init_session_kill_telemetry = __esm({
10056
10092
  });
10057
10093
 
10058
10094
  // src/lib/project-name.ts
10059
- import { execSync as execSync5 } from "child_process";
10095
+ import { execSync as execSync6 } from "child_process";
10060
10096
  import path17 from "path";
10061
10097
  function getProjectName(cwd) {
10062
10098
  const dir = cwd ?? process.cwd();
@@ -10064,7 +10100,7 @@ function getProjectName(cwd) {
10064
10100
  try {
10065
10101
  let repoRoot;
10066
10102
  try {
10067
- const gitCommonDir = execSync5("git rev-parse --path-format=absolute --git-common-dir", {
10103
+ const gitCommonDir = execSync6("git rev-parse --path-format=absolute --git-common-dir", {
10068
10104
  cwd: dir,
10069
10105
  encoding: "utf8",
10070
10106
  timeout: 2e3,
@@ -10072,7 +10108,7 @@ function getProjectName(cwd) {
10072
10108
  }).trim();
10073
10109
  repoRoot = path17.dirname(gitCommonDir);
10074
10110
  } catch {
10075
- repoRoot = execSync5("git rev-parse --show-toplevel", {
10111
+ repoRoot = execSync6("git rev-parse --show-toplevel", {
10076
10112
  cwd: dir,
10077
10113
  encoding: "utf8",
10078
10114
  timeout: 2e3,
@@ -10163,7 +10199,7 @@ var init_session_scope = __esm({
10163
10199
  import crypto6 from "crypto";
10164
10200
  import path18 from "path";
10165
10201
  import os13 from "os";
10166
- import { execSync as execSync6 } from "child_process";
10202
+ import { execSync as execSync7 } from "child_process";
10167
10203
  import { mkdir as mkdir4, writeFile as writeFile4, appendFile } from "fs/promises";
10168
10204
  import { existsSync as existsSync15, readFileSync as readFileSync12 } from "fs";
10169
10205
  async function writeCheckpoint(input) {
@@ -10508,14 +10544,14 @@ function isTmuxSessionAlive(identifier) {
10508
10544
  if (!identifier || identifier === "unknown") return true;
10509
10545
  try {
10510
10546
  if (identifier.startsWith("%")) {
10511
- const output = execSync6("tmux list-panes -a -F '#{pane_id}'", {
10547
+ const output = execSync7("tmux list-panes -a -F '#{pane_id}'", {
10512
10548
  timeout: 2e3,
10513
10549
  encoding: "utf8",
10514
10550
  stdio: ["pipe", "pipe", "pipe"]
10515
10551
  });
10516
10552
  return output.split("\n").some((l) => l.trim() === identifier);
10517
10553
  } else {
10518
- execSync6(`tmux has-session -t ${JSON.stringify(identifier)}`, {
10554
+ execSync7(`tmux has-session -t ${JSON.stringify(identifier)}`, {
10519
10555
  timeout: 2e3,
10520
10556
  stdio: ["pipe", "pipe", "pipe"]
10521
10557
  });
@@ -10524,7 +10560,7 @@ function isTmuxSessionAlive(identifier) {
10524
10560
  } catch {
10525
10561
  if (identifier.startsWith("%")) return true;
10526
10562
  try {
10527
- execSync6("tmux list-sessions", {
10563
+ execSync7("tmux list-sessions", {
10528
10564
  timeout: 2e3,
10529
10565
  stdio: ["pipe", "pipe", "pipe"]
10530
10566
  });
@@ -10539,12 +10575,12 @@ function checkStaleCompletion(taskContext, taskCreatedAt) {
10539
10575
  if (!DELEGATION_KEYWORDS.test(taskContext)) return null;
10540
10576
  try {
10541
10577
  const since = new Date(taskCreatedAt).toISOString();
10542
- const branch = execSync6(
10578
+ const branch = execSync7(
10543
10579
  "git rev-parse --abbrev-ref HEAD 2>/dev/null",
10544
10580
  { encoding: "utf8", timeout: 3e3 }
10545
10581
  ).trim();
10546
10582
  const branchArg = branch && branch !== "HEAD" ? branch : "";
10547
- const commitCount = execSync6(
10583
+ const commitCount = execSync7(
10548
10584
  `git log --oneline --since="${since}" ${branchArg} 2>/dev/null | wc -l`,
10549
10585
  { encoding: "utf8", timeout: 5e3 }
10550
10586
  ).trim();
@@ -12075,7 +12111,7 @@ __export(tmux_routing_exports, {
12075
12111
  spawnEmployee: () => spawnEmployee,
12076
12112
  verifyPaneAtCapacity: () => verifyPaneAtCapacity
12077
12113
  });
12078
- import { execFileSync as execFileSync2, execSync as execSync7 } from "child_process";
12114
+ import { execFileSync as execFileSync2, execSync as execSync8 } from "child_process";
12079
12115
  import { readFileSync as readFileSync13, writeFileSync as writeFileSync8, mkdirSync as mkdirSync9, existsSync as existsSync17, appendFileSync, readdirSync as readdirSync4 } from "fs";
12080
12116
  import path22 from "path";
12081
12117
  import os14 from "os";
@@ -12796,7 +12832,7 @@ function spawnEmployee(employeeName, exeSession, projectDir, opts) {
12796
12832
  let booted = false;
12797
12833
  for (let i = 0; i < 30; i++) {
12798
12834
  try {
12799
- execSync7("sleep 0.5");
12835
+ execSync8("sleep 0.5");
12800
12836
  } catch {
12801
12837
  }
12802
12838
  try {