@jjanczur/tyran 0.1.46 → 0.1.47
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.
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
{
|
|
12
12
|
"name": "tyran",
|
|
13
13
|
"description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
|
|
14
|
-
"version": "0.1.
|
|
14
|
+
"version": "0.1.47",
|
|
15
15
|
"source": "./",
|
|
16
16
|
"author": {
|
|
17
17
|
"name": "Jacek Janczura",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tyran",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Jacek Janczura",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.47 — 2026-09-19
|
|
4
|
+
|
|
5
|
+
### The secrets gate scans 10 MiB, and buys the time to do it
|
|
6
|
+
|
|
7
|
+
`MAX_PAYLOAD_BYTES` goes from 4 MiB to 10 MiB, together with what the number
|
|
8
|
+
depends on: `DEADLINE_MS` 7 s → 15 s, the scanner's own budget 5 s → 11 s and
|
|
9
|
+
the registered `timeout` 15 s → 30 s, the most a hook here may declare. The
|
|
10
|
+
old ceiling was true to its 7 s budget, and it made a finished change on a
|
|
11
|
+
real project — two 2.4 MB translation catalogs plus the code that used them —
|
|
12
|
+
into three commits and a chunked push, because the gate could not scan them
|
|
13
|
+
in one go.
|
|
14
|
+
|
|
15
|
+
Measured end to end through the real hook before the number was written
|
|
16
|
+
(8 cores, load average 3): copies of a 2.4 MB JSON catalog, 4 MiB / 3.14 s,
|
|
17
|
+
8 MiB / 5.99 s, 9.5 MiB / 7.45 s; base64 folded at 76 columns,
|
|
18
|
+
9.9 MiB / 6.97 s. The ceiling counts every object git would write, so 9.9 MiB
|
|
19
|
+
of catalog files arrived as 10,703,651 bytes in nine objects and was refused
|
|
20
|
+
in 0.08 s.
|
|
21
|
+
|
|
22
|
+
One cost the size made visible, recorded in `docs/hooks.md`: gitleaks 8.30.1
|
|
23
|
+
stops reading a single line that carries no newline, deterministically per
|
|
24
|
+
payload and chunking, exits 0 and reports the smaller count — 3 of 18 runs at
|
|
25
|
+
8 MiB of unbroken base64, 0 of 6 at 4 MiB, never with newlines. The coverage
|
|
26
|
+
check refuses such a scan rather than trusting it, which is unchanged and is
|
|
27
|
+
the point of that check.
|
|
28
|
+
|
|
29
|
+
The pins moved with the numbers: `tests/unit/hook-secrets-gate.test.mjs` pins
|
|
30
|
+
10,485,760 and 17,000 and sizes its oversized-report fixture from the constant
|
|
31
|
+
instead of a literal.
|
|
32
|
+
|
|
3
33
|
## 0.1.46 — 2026-08-22
|
|
4
34
|
|
|
5
35
|
### The wall is readable, and a question no longer costs a night
|
package/hooks/hooks.json
CHANGED
|
@@ -71,13 +71,13 @@ import { fileURLToPath } from 'node:url';
|
|
|
71
71
|
import { PASS, field, main, runGate } from './hook-io.mjs';
|
|
72
72
|
|
|
73
73
|
/** This gate's own budget, half the `timeout` its hooks.json entry declares. */
|
|
74
|
-
export const DEADLINE_MS =
|
|
74
|
+
export const DEADLINE_MS = 15000;
|
|
75
75
|
|
|
76
76
|
/** Left unspent so a refusal can still be serialized after the last child. */
|
|
77
77
|
export const DEADLINE_MARGIN_MS = 1200;
|
|
78
78
|
|
|
79
79
|
/** No single child may hold the whole budget; several have to run. */
|
|
80
|
-
export const CHILD_BUDGET_MS =
|
|
80
|
+
export const CHILD_BUDGET_MS = 11000;
|
|
81
81
|
|
|
82
82
|
/** Cheap `git` queries. Generous next to a measured 24-75 ms. */
|
|
83
83
|
export const GIT_BUDGET_MS = 2000;
|
|
@@ -85,17 +85,23 @@ export const GIT_BUDGET_MS = 2000;
|
|
|
85
85
|
/**
|
|
86
86
|
* The most content this gate will assemble and scan.
|
|
87
87
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
88
|
+
* 10 MiB, against a 15 s deadline (hooks.json: 30 s, the most a hook here may
|
|
89
|
+
* register). The first figure here
|
|
90
|
+
* was 8 MB and it was never true: it came from timing `gitleaks stdin` in
|
|
91
|
+
* isolation (1.07 s) and ignored everything the gate spends BEFORE the scan —
|
|
92
|
+
* listing objects, reading them, and the git calls in front of both. Review
|
|
93
|
+
* measured the real ceiling inside the 7 s budget of that time at roughly
|
|
94
|
+
* 4.5 MB, and the constant sat at 4 MiB for the next rounds. It was raised
|
|
95
|
+
* together with the deadline, not instead of it, when 4 MiB forced a real
|
|
96
|
+
* project to split one finished change into several commits and pushes just
|
|
97
|
+
* to get its two 2.4 MB translation catalogs past the gate (measured
|
|
98
|
+
* end to end on that machine: see `docs/hooks.md`, "Costs that are deliberate").
|
|
93
99
|
*
|
|
94
100
|
* Past it the gate REFUSES rather than scanning a prefix: a partial scan that
|
|
95
101
|
* reports nothing is indistinguishable from a clean one, which is the defect
|
|
96
102
|
* this whole file exists to remove.
|
|
97
103
|
*/
|
|
98
|
-
export const MAX_PAYLOAD_BYTES =
|
|
104
|
+
export const MAX_PAYLOAD_BYTES = 10 * 1024 * 1024;
|
|
99
105
|
|
|
100
106
|
/** Bytes of a command we are willing to hand to the scanner as data. */
|
|
101
107
|
export const MAX_COMMAND_BYTES = 128 * 1024;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jjanczur/tyran",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"description": "Command-line scripts for the Tyran task conductor (doctor, journal, schema, and repo tooling) for CI and terminals outside Claude Code. Installing this package does NOT install the Claude Code plugin — add that separately with `/plugin marketplace add jjanczur/tyran` inside Claude Code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|