kenso 0.1.29 → 0.1.30

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.
@@ -130,6 +130,7 @@ Two API codes change the exit code: `workspace_required` exits 2 with `"next":"k
130
130
  | 6 | Rate limited after retries, or a plan or campaign lead limit stopped the run (`limit_reached`) |
131
131
  | 7 | Conflict or invalid state (HTTP 409), or a run another process holds |
132
132
  | 8 | Server error after retries (5xx), or the API is unreachable |
133
+ | 9 | Answer refused: a Kenso sandbox run stopped because an answer held a credential or something shaped like one |
133
134
  | 130 | Interrupted. A batch run can be resumed: see its `next` |
134
135
 
135
136
  Skipped rows (duplicates, blocklisted, already contacted) are not failures: a batch with only created, updated and skipped rows exits 0.
package/docs/reference.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Kenso CLI command reference
2
2
 
3
- Generated from kenso 0.1.29 (API contracts aabc104043de) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
3
+ Generated from kenso 0.1.30 (API contracts 44953754b4c8) by `scripts/build-reference.ts`. Do not edit it: `pnpm build` writes it again.
4
4
 
5
5
  1544 commands, one entry each: summary, API route, feature gate and flag names. Beta commands work only on workspaces with their feature flag; `kenso describe` hides the ones yours cannot use. Every command also takes the global flags below. A command's notes, flag descriptions, body schema and examples: `kenso <resource> <action> --help`, or `kenso describe <resource> <action>` as JSON.
6
6
 
package/docs/work.md CHANGED
@@ -58,7 +58,7 @@ When Kenso does not answer (a deploy restarts it), `run` and `pull` wait 30 s an
58
58
 
59
59
  ### In a Kenso sandbox
60
60
 
61
- A Kenso sandbox runs `kenso work run` in a box of your own with two flags that help leaves out. `--token-stdin` reads stdin to its end, so the caller closes it after writing, and uses its first line, a run token (`krt_` and 43 characters), instead of any saved key or `KENSO_API_KEY`: no config file is read, the token goes only on the claim, answer and release calls, and a terminal on stdin is refused (exit 2). `--agent-user <name>` starts every agent and every login check as that user through `sudo -n -u <name> -H`, so the agent gets the environment sudo builds plus the agent's own variables and nothing of kenso's, and it stops agents with `kill` run as that user. It refuses (exit 2, `agent_user_invalid`) root, the user kenso runs as, a user in a group that can run sudo, a user with no home folder and a user sudo will not run `cat` or `kill` as. It needs `KENSO_RUNS_DIR`, which the box makes `root:ksjobs` with mode 3770: the run folder there is 2750, each job folder 3770 (sticky, so no agent can replace the work file) and each work file 0640, so the agent user's group can write its answers and nothing else of the run.
61
+ A Kenso sandbox runs `kenso work run` in a box of your own with two flags that help leaves out. `--token-stdin` reads stdin to its end, so the caller closes it after writing, and uses its first line, a run token (`krt_` and 43 characters), instead of any saved key or `KENSO_API_KEY`: no config file is read, the token goes only on the claim, answer and release calls, and a terminal on stdin is refused (exit 2). `--agent-user <name>` starts every agent and every login check as that user through `sudo -n -u <name> -H`, so the agent gets the environment sudo builds plus the agent's own variables and nothing of kenso's, and it stops agents with `kill` run as that user. It refuses (exit 2, `agent_user_invalid`) root, the user kenso runs as, a user in a group that can run sudo, a user with no home folder and a user sudo will not run `cat` or `kill` as. It needs `KENSO_RUNS_DIR`, which the box makes `root:ksjobs` with mode 3770: the run folder there is 2750, each job folder 3770 (sticky, so no agent can replace the work file) and each work file 0640, so the agent user's group can write its answers and nothing else of the run. Every answer is scanned before it is sent: one that holds a piece of the agent's login, a credential-shaped string or a long random-looking run outside a link stops the run with exit 9, and the summary's `message` names only the reason. A run that cannot read the agent's login files does not start (exit 1). The summary's `confinement` (`full`, `partial` or `none`) says how far a sandbox holds the agent.
62
62
 
63
63
  ## Agents
64
64
 
@@ -71,7 +71,7 @@ A Kenso sandbox runs `kenso work run` in a box of your own with two flags that h
71
71
  | OpenCode | `opencode` | no | not yet |
72
72
  | Antigravity | `antigravity` | no | not yet |
73
73
 
74
- `run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never reads an agent's credential files, and never signs up for anything. An agent not yet proven runs, and says so once at the start.
74
+ `run` checks that the agent is installed and logged in before it claims anything. Not installed: it stops with how to install it. Logged out: it stops with the agent's own login command. Kenso never logs in for you, never copies or keeps an agent's credential files (a Kenso sandbox run reads them only to scan answers, and keeps only hashes), and never signs up for anything. An agent not yet proven runs, and says so once at the start.
75
75
 
76
76
  Claude Code is held to the job folder with its `--restricted` flag (Claude Code 2.1.322 or newer): an older one fails, and `run` says to update Claude Code.
77
77
 
@@ -170,4 +170,5 @@ Kenso checks format and language only: that each answer has the format and schem
170
170
  | 4 | `not_found`: the `agent_work` feature is not on, or the campaign or claim is not this workspace's |
171
171
  | 5 | Some answers were rejected, or some jobs failed (expired and duplicate answers do not count) |
172
172
  | 6 | The agent's plan hit its usage limit |
173
+ | 9 | In a Kenso sandbox (`--agent-user`): an answer held a credential or something shaped like one. Nothing of its claim was sent, every open claim was released and the run stopped |
173
174
  | 130 | Ctrl-C (or SIGTERM, or a closed terminal): the agents were stopped and the open claims released. A second Ctrl-C quits at once |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kenso",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "The Kenso CLI: bulk lead, CRM and Studio work for people and coding agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -44,5 +44,5 @@
44
44
  "typescript-eslint": "8.71.1",
45
45
  "vitest": "5.0.3"
46
46
  },
47
- "gitHead": "4a8338358467792e8483d8bd8f127a07a69727f4"
47
+ "gitHead": "ff7f3efb5f962cd989ade3a767170b879295c127"
48
48
  }