@pinta-ai/pinta-codex 1.12.1 → 1.12.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinta-codex",
3
- "version": "1.12.1",
3
+ "version": "1.12.3",
4
4
  "description": "Generic OTLP forwarder for Codex hook events",
5
5
  "author": {
6
6
  "name": "Pinta AI",
package/CHANGELOG.md CHANGED
@@ -2,6 +2,55 @@
2
2
 
3
3
  All notable changes to pinta-codex are documented here.
4
4
 
5
+ ## [1.12.3] - 2026-11-27
6
+
7
+ ### Changed
8
+
9
+ - Stable release of `1.12.3-pta1010.1`. Bundles Core `0.11.1`, which is the same code as
10
+ Core `0.11.1-pta1010.2`. No behavior change from the Stage candidate.
11
+
12
+ ## [1.12.3-pta1010.1] - 2026-11-26
13
+
14
+ ### Fixed
15
+
16
+ - Bundle Core `0.11.1-pta1010.1` for bounded Fetch-mode and CLI-option semantics
17
+ and OpenAI-key token boundaries, with the Acorn MIT notice.
18
+ - Keep returned credentials separate from completed inputs so tool-output
19
+ inspection can still deny actual secrets. Unknown consumers, real passwords
20
+ and existing output-denial behavior remain protected.
21
+ - This prerelease requires explicit compatible Stage catalog approval; stable
22
+ selection and the existing model-attribution fallback are preserved.
23
+
24
+ ## [1.12.2] - 2026-10-20
25
+
26
+ ### Fixed
27
+
28
+ - Hardening of the rollout-file fallback for hosts that send no `model` on a
29
+ tool hook. **The cause of the 0 of 107 `codex.model` on 1.10.0 tool rows
30
+ (stage, 2026-09-28) is not confirmed.** Upstream Codex always sends `model`
31
+ on `PreToolUse`/`PostToolUse` (`codex-rs/hooks/src/schema.rs`) and the
32
+ adapter reads it first, so this release is not expected to change what stage
33
+ measures for those rows. Three ways the fallback came back empty or wrong,
34
+ each reproduced with Codex's rollout record shapes:
35
+ - Codex writes a turn's `turn_context` once, at the start of the turn, and
36
+ the reader only looked at the last 1 MiB / 4,096 records of the file, so a
37
+ turn with more than that after its start (reasoning, command output) found
38
+ nothing. It now scans backwards up to 16 MiB, parsing only `turn_context`
39
+ lines, stepping over single records larger than a read chunk, and stops at
40
+ the first context of an earlier turn (about 8 ms for a full scan).
41
+ - A forked or sub-agent thread's rollout holds copies of its parent's
42
+ `session_meta`; the reader gave up on any foreign `session_meta`. The header
43
+ must still be this session's own and only a `turn_context` with this exact
44
+ turn ID counts, so the copies are ignored.
45
+ - A turn whose context was recorded twice with different models, far apart,
46
+ returned the later model; it now returns none.
47
+ No new `codex.model_source` value: it stays `hook.model` or
48
+ `transcript.turn_context`.
49
+
50
+ ### Compatibility
51
+
52
+ - Guard payloads, event counts, envelope fields and redaction are unchanged.
53
+
5
54
  ## [1.12.1] - 2026-10-19
6
55
 
7
56
  ### Changed
package/LICENSE-ACORN ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (C) 2012-2022 by various contributors (see AUTHORS)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/README.md CHANGED
@@ -139,6 +139,10 @@ Provider and requested/response fields remain unchanged. If a transcript
139
139
  replaces an unusable model, `model_source` describes that transcript evidence;
140
140
  a previous host source is retained as `codex.model_original_source`.
141
141
 
142
+ Upstream Codex always sends `model` on `PreToolUse`/`PostToolUse`
143
+ (`codex-rs/hooks/src/schema.rs`), so the rollout fallback below only matters
144
+ for hosts or builds that do not.
145
+
142
146
  When the hook has no usable model, `transcript.turn_context` evidence is
143
147
  available only with an exact `session_meta.payload.id == session_id` and
144
148
  `turn_context.payload.turn_id == turn_id` in the supplied rollout JSONL.
@@ -163,8 +167,11 @@ The original input, other flattened fields, guard behavior, event count and
163
167
  redaction pipeline are unchanged.
164
168
 
165
169
  Model lookup opens only the supplied absolute `.jsonl` regular file, read-only,
166
- with no subprocess, directory scan or model cache. It reads at most a 256 KiB
167
- header plus a 1 MiB tail and 4,096 complete records. Missing/unreadable files,
170
+ with no subprocess, directory scan or model cache. It reads a 256 KiB
171
+ header, then scans the last 16 MiB backwards (1 MiB at a time) and parses only
172
+ the `turn_context` lines, at most 4,096 of them, stopping at the first context
173
+ of an earlier turn. A turn's context is written once, when the turn starts, so
174
+ a long turn pushes it far behind the end of the file. Missing/unreadable files,
168
175
  leaf symlinks, malformed records and invalid identities fail quietly;
169
176
  incomplete boundary lines are ignored. It never logs or exports transcript
170
177
  contents. An explicit model or missing turn ID needs no model-lookup IO.