@tech-leads-club/harness-toolkit 0.15.0 → 0.15.2
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/README.md +2 -2
- package/capabilities/catalog.json +2 -2
- package/dist/compact-before.mjs +88 -86
- package/dist/doctor.mjs +91 -89
- package/dist/init-project.mjs +91 -89
- package/dist/install-runtime.mjs +88 -86
- package/dist/lessons-cli.mjs +84 -82
- package/dist/obs-cli.mjs +88 -86
- package/dist/price-lookup.mjs +1 -1
- package/dist/prompt-submit.mjs +88 -86
- package/dist/refresh-model-prices.mjs +90 -88
- package/dist/response-after.mjs +88 -86
- package/dist/run.mjs +88 -86
- package/dist/session-end.mjs +93 -91
- package/dist/session-start.mjs +95 -93
- package/dist/shim.mjs +87 -85
- package/dist/ship-gate.mjs +89 -87
- package/dist/stop.mjs +94 -92
- package/dist/subagent-start.mjs +88 -86
- package/dist/subagent-stop.mjs +89 -87
- package/dist/support.mjs +89 -87
- package/dist/tlc-cli.mjs +107 -105
- package/dist/tool-after.mjs +84 -82
- package/dist/tool-before.mjs +92 -90
- package/dist/tool-failure.mjs +88 -86
- package/dist/uninstall-runtime.mjs +4 -4
- package/docs/concepts.md +4 -2
- package/docs/diagnose.md +2 -2
- package/docs/log.md +5 -0
- package/package.json +1 -1
- package/src/core/core.facade.ts +16 -2
- package/src/core/gate/gate.artifact.ts +43 -7
- package/src/core/presence/presence.service.ts +68 -0
- package/src/core/rules/rules.decide.ts +11 -1
- package/src/core/rules/rules.trigger.ts +11 -0
- package/src/entrypoints/session-start.ts +1 -0
- package/src/entrypoints/stop.ts +14 -2
- package/src/entrypoints/support.ts +8 -1
- package/src/platform/paths.ts +4 -0
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ trade-off when you ran the init wizard. `configPath` is the key in `.tlc/harness
|
|
|
144
144
|
|
|
145
145
|
| Rail · key · default | What it checks | Fires on | Verdict | How to see it |
|
|
146
146
|
|---|---|---|---|---|
|
|
147
|
-
| **Grind (lint/test on stop)**<br>`grind.enabled` · off | Runs your lint and test commands against the files the turn changed, and sends the agent back until they pass. | `stop` | `follow-up` | tlc harness obs report — runs, wall-clock and total; the last verdict is in the project state directory
|
|
147
|
+
| **Grind (lint/test on stop)**<br>`grind.enabled` · off | Runs your lint and test commands against the files the turn changed, and sends the agent back until they pass. | `stop` | `follow-up` | tlc harness obs report — runs, wall-clock and total; the last verdict is in the project state directory under gate-sessions/<session>.json |
|
|
148
148
|
| **Ship gate**<br>`shipGate.enabled` · off | Checks a declared ship claim against recent PASS evidence for the runtime paths the turn touched. | `stop` | `block-stop` | tlc harness obs report; the ship ledger in the project state directory records every claim, challenge and pass |
|
|
149
149
|
| **Empty-diff anti-ship**<br>`shipGate.emptyDiffAntiShip` · off | Checks that a ship claim has a non-empty diff behind it. | `stop` | `block-stop` | the ship ledger in the project state directory — the challenge row names the empty diff |
|
|
150
150
|
| **Comment gate (agent-added comments)**<br>`comments.enabled` · off | Checks the comment lines this turn added against the commit the turn started from: by reason, by resolvability, or none. | `stop` | `block-stop` | tlc harness obs report — the comments gate appears among the gate outcomes |
|
|
@@ -162,7 +162,7 @@ trade-off when you ran the init wizard. `configPath` is the key in `.tlc/harness
|
|
|
162
162
|
| **Progressive context**<br>`intelligence.progressiveContext` · **on** | Raises the detail in the follow-up on each stop retry, so a repeat attempt is not given the same prompt. | `stop` | `follow-up` | tlc harness obs report — the retry count for a stop is the escalation level it reached |
|
|
163
163
|
| **Autopilot**<br>`intelligence.autopilot` · **on** | Emits ordered steps after a gate failure, computed by the runtime rather than invented by the model. | `stop` | `follow-up` | the AUTOPILOT block is in the follow-up text itself; obs report counts the failing stops that produced one |
|
|
164
164
|
| **Idle-turn gate (asked instead of acting)**<br>`intelligence.idleTurnGate` · off | Checks whether a turn that ended with open work recorded any tool call or file change at all. | `stop` | `block-stop` | tlc harness obs report for the block; tlc harness handoff shows the open work that armed it |
|
|
165
|
-
| **Docs staleness gate**<br>`docs.command` · off | Runs the repository's own documentation staleness tool on stop, like a lint command. | `stop` | `block-stop` | tlc harness obs report; the docs gate writes the same
|
|
165
|
+
| **Docs staleness gate**<br>`docs.command` · off | Runs the repository's own documentation staleness tool on stop, like a lint command. | `stop` | `block-stop` | tlc harness obs report; the docs gate writes the same gate-sessions/<session>.json artifact the lint and test gates do |
|
|
166
166
|
| **Global observability spool**<br>`obs.globalSpool` · off | Copies every record into one file under the runtime home, so cost is readable across repositories. | `tool.after`<br>`tool.failure` | `record` | the spool file under the runtime home; tlc harness obs prune reports how many records it dropped |
|
|
167
167
|
| **Untrusted-content framing and enforcement**<br>`untrustedContent.enabled` · off | Frames outside content as data, and in enforce mode asks before a command that appears verbatim in it. | `tool.after` | `context` | tlc harness obs report — one framing injection per turn, with the characters it cost |
|
|
168
168
|
| **Plan gate (declared scope vs diff)**<br>`planGate.enabled` · off | Checks the files the turn changed against the scope it declared, and against any stated deviation. | `response.after`<br>`stop` | `block-stop` | tlc harness handoff — plan_paths, plan_at and plan_deviations |
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"stop"
|
|
15
15
|
],
|
|
16
16
|
"verdict": "follow-up",
|
|
17
|
-
"inspect": "tlc harness obs report \u2014 runs, wall-clock and total; the last verdict is in the project state directory
|
|
17
|
+
"inspect": "tlc harness obs report \u2014 runs, wall-clock and total; the last verdict is in the project state directory under gate-sessions/<session>.json",
|
|
18
18
|
"asks": [
|
|
19
19
|
"lintCommand",
|
|
20
20
|
"testCommand",
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"stop"
|
|
336
336
|
],
|
|
337
337
|
"verdict": "block-stop",
|
|
338
|
-
"inspect": "tlc harness obs report; the docs gate writes the same
|
|
338
|
+
"inspect": "tlc harness obs report; the docs gate writes the same gate-sessions/<session>.json artifact the lint and test gates do",
|
|
339
339
|
"asks": [
|
|
340
340
|
"command (exact argv array)",
|
|
341
341
|
"severity: warn | deny"
|