johns-harness 2026.9.38 → 2026.9.39

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.9.39
4
+
5
+ - Nano Banana 2.1 (`google/gemini-nano-banana-2.1`, GA 2026-10-06) ships as an image-only Google model, registered like Nano Banana Pro (`imageGeneration`/`imageEditing`, `chat: false`; function calling is unsupported, so it is not an agent chat model). Use it with `image_generate` model `google/gemini-nano-banana-2.1`. Card: $1.50/MTok input, $30/MTok image output (about $0.034 per 1K image), caching unsupported. Limits: 65,536 input / 65,536 output from the API's model endpoint and model list; the official model card says 131,072 / 32,768, and that conflict is recorded in `harness.source`. Live `generateContent` with IMAGE output returned a JPEG.
6
+ - Aliases unchanged: `nano-banana` and `banana` stay on Nano Banana Pro (a different, Pro line; 2.1 updates the Flash-tier Nano Banana 2, which the harness never shipped).
7
+ - Added via the models master only (one entry in `models/models.json`). Roll back with `npm i -g johns-harness@2026.9.38`.
8
+
3
9
  ## 2026.9.38
4
10
 
5
11
  - One master model file: `models/models.json` holds every shipped model (cards, pricing, context windows, max output, xhigh/effort/temperature rules) and every alias, including the "shorthand points to the newest model in its line" rule. `node scripts/models-sync.mjs` generates the catalog, `supportsXhigh`, the Responses/Codex wire rules, the 14 alias tables and the 12 `/think xhigh` gates from it. Adding a model is now: edit that file, run the sync, run the checks, publish (docs/MODELS.md).
package/docs/PATCHES.md CHANGED
@@ -2883,7 +2883,8 @@ John's rule: model updates are one change to one master file. `models/models.jso
2883
2883
  - **Wire rules.** `johnnessApplyModelRules()` wraps `buildParams` (Responses) and `buildRequestBody` (Codex): efforts outside `harness.efforts` go to the nearest accepted level, and `temperature`/`top_p` are dropped per `harness.temperature`.
2884
2884
  - **Shorthands.** `latest` rules point `opus`, `sonnet`, `fable`, `gpt`, `sol`, `luna`, `astra`, `terra` and `grok` at the highest version in their line; the sync refuses a master where a shorthand moves past a model with no versioned alias.
2885
2885
  - **GPT-6.1 Sol** (`gpt-6.1-sol`, first use of the master). Source: <https://developers.openai.com/api/docs/models/gpt-6.1-sol> and the API changelog (Sep 29), checked 2026-09-29: 1,050,000 context (922,000 max input), 128,000 max output, text + image in, $2/$10 per MTok, cached input $0.10, cache write $2.50 (over 272K input: 2x input, 1.5x output), effort low|medium (default)|high|xhigh|max. `openai` gets the full native 1,050,000 window. `openai-codex` is 272,000: openai/codex `codex-rs/models-manager/models.json` (commit b1e72963, "Add GPT-6.1 Sol as the default catalog model") gives `context_window` 272000 / `max_context_window` 872000, same as every GPT-6 slug.
2886
- - **Live probes 2026-09-29** (API key, Responses): default, low, medium, high, xhigh and max all HTTP 200 "pong"; `none` and `minimal` HTTP 400 unsupported_value; `temperature` HTTP 400 at default and at low effort; `top_p` HTTP 400. So `harness.temperature` is `"drop"` (unlike GPT-6 Sol, which accepts it at effort none) and none/minimal map to low. The `openai-codex` path was not wire-tested: the harness ChatGPT OAuth token is expired.
2886
+ - **Live probes 2026-09-29** (API key, Responses): default, low, medium, high, xhigh and max all HTTP 200 "pong"; `none` and `minimal` HTTP 400 unsupported_value; `temperature` HTTP 400 at default and at low effort; `top_p` HTTP 400. So `harness.temperature` is `"drop"` (unlike GPT-6 Sol, which accepts it at effort none) and none/minimal map to low.
2887
+ - **Subscription wire test 2026-09-29 13:20 PT** (after John re-authed `openai-codex:default`), through the shipped 2026.9.38 Codex adapter to `chatgpt.com/backend-api/codex/responses`: default, low, medium, high, xhigh and max all returned "pong" with the effort sent as requested and no temperature on the wire; `minimal` went out as `low` and returned "pong". Raw backend control calls: `none` and `minimal` HTTP 400 (supported low..max), `temperature` HTTP 400, effort high HTTP 200. Same rules as the API, so the master entry needed no change.
2887
2888
  - **Aliases.** `sol` and `gpt` -> `openai-codex/gpt-6.1-sol`; new `sol6` -> `openai-codex/gpt-6-sol`; `sol56`, `luna`, `luna56`, `astra` unchanged. `gpt-6.1-luna` is not on the API (`model_not_found` on 2026-09-29), so `luna` stays on GPT-6 Luna.
2888
2889
  - Verifier 83.1-83.6 check the tree against the master; `tests/models-master.test.mjs` does the same from the master (no per-model strings).
2889
2890
  - Roll back with `npm i -g johns-harness@2026.9.37`.
@@ -255,6 +255,7 @@
255
255
  "gemini-2.5-pro-preview-05-06": {"name":"Gemini 2.5 Pro Preview 05-06","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
256
256
  "gemini-2.5-pro-preview-06-05": {"name":"Gemini 2.5 Pro Preview 06-05","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
257
257
  "gemini-3-pro-image-preview": {"name":"Nano Banana Pro","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":2,"output":120,"cacheRead":0.2,"cacheWrite":0},"contextWindow":32768,"maxTokens":8192},
258
+ "gemini-nano-banana-2.1": {"name":"Nano Banana 2.1","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":1.5,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536,"harness":{"source":"generativelanguage.googleapis.com/v1beta/models/gemini-nano-banana-2.1 (inputTokenLimit 65536, outputTokenLimit 65536; models list agrees) and ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1 + /pricing. Official limits conflict: the model card says 131,072 input / 32,768 output; the harness uses the API endpoint values.","checked":"2026-10-07","notes":"GA 2026-10-06. Image generation and conversational image editing, the update to Nano Banana 2 (gemini-3.1-flash-image). Image-only like Nano Banana Pro (function calling and structured outputs unsupported); reached through image_generate model google/gemini-nano-banana-2.1. $1.50/MTok input, $30/MTok image output ($7.50 text/thinking output), about $0.034 per 1K image; caching unsupported. Thinking minimal/medium(default)/high; 1K/2K/4K output."}},
258
259
  "gemini-3.8-flash": {"name":"Gemini 3.8 Flash","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.75,"output":3.75,"cacheRead":0.075,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
259
260
  "gemini-3-flash-preview": {"name":"Gemini 3 Flash Preview","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.5,"output":3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
260
261
  "gemini-3-pro-preview": {"name":"Gemini 3 Pro Preview","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1000000,"maxTokens":64000},
@@ -432,7 +433,7 @@
432
433
  "gpt-5.2-codex": {"name":"GPT-5.2 Codex","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":1.75,"output":14,"cacheRead":0.175,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true}},
433
434
  "gpt-5.3-codex": {"name":"GPT-5.3 Codex","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":1.75,"output":14,"cacheRead":0.175,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true}},
434
435
  "gpt-5.3-codex-spark": {"name":"GPT-5.3 Codex Spark","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":128000,"maxTokens":128000,"harness":{"xhigh":true}},
435
- "gpt-6.1-sol": {"name":"GPT-6.1 Sol (Codex)","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop","nativeContextWindow":1050000,"source":"github.com/openai/codex codex-rs/models-manager/models.json (b1e72963, 2026-09-29): context_window 272000, max_context_window 872000","checked":"2026-09-29","notes":"Subscription backend caps the window at 272K like every GPT-6 Codex slug. Not wire-tested: the harness ChatGPT OAuth token is expired."}},
436
+ "gpt-6.1-sol": {"name":"GPT-6.1 Sol (Codex)","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop","nativeContextWindow":1050000,"source":"github.com/openai/codex codex-rs/models-manager/models.json (b1e72963, 2026-09-29): context_window 272000, max_context_window 872000","checked":"2026-09-29","notes":"Subscription backend caps the window at 272K like every GPT-6 Codex slug. Wire-tested 2026-09-29 through the harness Codex adapter: low..max 200; none/minimal and temperature 400 on the backend (same as the API)."}},
436
437
  "gpt-6-sol": {"name":"GPT-6 Sol (Codex)","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none","nativeContextWindow":1050000}},
437
438
  "gpt-6-luna": {"name":"GPT-6 Luna (Codex)","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":true,"input":["text","image"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":272000,"maxTokens":128000,"harness":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none","nativeContextWindow":1050000}},
438
439
  "gpt-image-2": {"name":"GPT Image 2 (Codex)","api":"openai-codex-responses","baseUrl":"https://chatgpt.com/backend-api","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"contextWindow":32000,"maxTokens":4096},
@@ -13859,6 +13859,7 @@ const JOHNNESS_MODELS_MASTER = {
13859
13859
  "gemini-2.5-pro-preview-05-06":{"id":"gemini-2.5-pro-preview-05-06","name":"Gemini 2.5 Pro Preview 05-06","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13860
13860
  "gemini-2.5-pro-preview-06-05":{"id":"gemini-2.5-pro-preview-06-05","name":"Gemini 2.5 Pro Preview 06-05","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13861
13861
  "gemini-3-pro-image-preview":{"id":"gemini-3-pro-image-preview","name":"Nano Banana Pro","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":2,"output":120,"cacheRead":0.2,"cacheWrite":0},"contextWindow":32768,"maxTokens":8192},
13862
+ "gemini-nano-banana-2.1":{"id":"gemini-nano-banana-2.1","name":"Nano Banana 2.1","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":1.5,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536},
13862
13863
  "gemini-3.8-flash":{"id":"gemini-3.8-flash","name":"Gemini 3.8 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.75,"output":3.75,"cacheRead":0.075,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13863
13864
  "gemini-3-flash-preview":{"id":"gemini-3-flash-preview","name":"Gemini 3 Flash Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.5,"output":3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13864
13865
  "gemini-3-pro-preview":{"id":"gemini-3-pro-preview","name":"Gemini 3 Pro Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1000000,"maxTokens":64000},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "johns-harness",
3
- "version": "2026.9.38",
3
+ "version": "2026.9.39",
4
4
  "description": "John's Harness: a production agent harness that runs autonomous coding agents as one cooperative swarm.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -13859,6 +13859,7 @@ const JOHNNESS_MODELS_MASTER = {
13859
13859
  "gemini-2.5-pro-preview-05-06":{"id":"gemini-2.5-pro-preview-05-06","name":"Gemini 2.5 Pro Preview 05-06","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13860
13860
  "gemini-2.5-pro-preview-06-05":{"id":"gemini-2.5-pro-preview-06-05","name":"Gemini 2.5 Pro Preview 06-05","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13861
13861
  "gemini-3-pro-image-preview":{"id":"gemini-3-pro-image-preview","name":"Nano Banana Pro","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":2,"output":120,"cacheRead":0.2,"cacheWrite":0},"contextWindow":32768,"maxTokens":8192},
13862
+ "gemini-nano-banana-2.1":{"id":"gemini-nano-banana-2.1","name":"Nano Banana 2.1","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":1.5,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536},
13862
13863
  "gemini-3.8-flash":{"id":"gemini-3.8-flash","name":"Gemini 3.8 Flash","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.75,"output":3.75,"cacheRead":0.075,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13863
13864
  "gemini-3-flash-preview":{"id":"gemini-3-flash-preview","name":"Gemini 3 Flash Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.5,"output":3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
13864
13865
  "gemini-3-pro-preview":{"id":"gemini-3-pro-preview","name":"Gemini 3 Pro Preview","api":"google-generative-ai","provider":"google","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1000000,"maxTokens":64000},