@techgoblin/gobstack 0.6.0 → 0.6.1
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 +11 -0
- package/README.md +43 -6
- package/VERSION +1 -1
- package/bin/goblin-bans +1 -1
- package/bin/goblin-init +26 -4
- package/bin/goblin-install +1 -1
- package/bin/goblin-lib.sh +1 -1
- package/bin/goblin-verify +1 -1
- package/docs/GUIDE.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -42,6 +42,17 @@ version recorded in a target's `.goblin/installed.json` and the source `VERSION`
|
|
|
42
42
|
promotes them into catalogue.tsv by PR or edit. `--write` honours only the proposal's TICKED
|
|
43
43
|
rows, through `gob extras install` itself — one allowlist, one code path.
|
|
44
44
|
|
|
45
|
+
## 0.6.1
|
|
46
|
+
|
|
47
|
+
A crash fix in the front door. `gob init --write` with a flag and no value hung forever, printing nothing: the
|
|
48
|
+
flag loop called `shift 2` when only one argument remained, which fails silently under `set -uo pipefail`, so the
|
|
49
|
+
argument was never consumed and the loop spun. The same shape hit every value flag, not just `--write`.
|
|
50
|
+
|
|
51
|
+
Now a value flag with no value, an unknown option, and a proposal path that does not exist all print one line
|
|
52
|
+
naming the problem and `usage: gob init --write <proposal-path>`, then exit 2 — nothing is installed. The
|
|
53
|
+
documented path is unchanged: `gob init --write <proposal>` still installs (22 files on a bare repo) and the
|
|
54
|
+
verifier then reports green.
|
|
55
|
+
|
|
45
56
|
## 0.6.0
|
|
46
57
|
|
|
47
58
|
The first stable release of the v3 core: one `gob` verb set, an enforcement matrix that grows by data rather than by
|
package/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/harveynguyen33/goblin-stack/main/assets/brand/lockup.svg#gh-dark-mode-only" alt="gobstack — a goblin who turns rules into gates" width="380">
|
|
3
|
+
<img src="https://raw.githubusercontent.com/harveynguyen33/goblin-stack/main/assets/brand/lockup-light.svg#gh-light-mode-only" alt="gobstack — a goblin who turns rules into gates" width="380">
|
|
4
|
+
</p>
|
|
5
|
+
<p align="center"><sub>a goblin who turns rules into gates — and counts the ones he cannot check.</sub></p>
|
|
2
6
|
|
|
3
|
-
|
|
7
|
+
# gobstack
|
|
4
8
|
|
|
5
|
-
**gobstack
|
|
6
|
-
installs an
|
|
7
|
-
|
|
8
|
-
cannot be checked is
|
|
9
|
+
**An executable rule manifest for AI coding sessions.** gobstack (npm:
|
|
10
|
+
[`@techgoblin/gobstack`](https://www.npmjs.com/package/@techgoblin/gobstack)) installs an
|
|
11
|
+
**executable rule manifest**, a **vendored verifier**, and an **AGENTS.md-frontmatter config** into any
|
|
12
|
+
project — so that an AI coding session never re-improvises, and a rule that cannot be checked is
|
|
13
|
+
counted rather than asserted.
|
|
9
14
|
|
|
10
15
|
Start here — `init` is the first verb, and it needs no global install:
|
|
11
16
|
|
|
@@ -15,6 +20,29 @@ or install the CLI globally (it is a CLI, not a library):
|
|
|
15
20
|
|
|
16
21
|
npm install -g @techgoblin/gobstack # gives you the `gob` CLI (`goblin` remains as a legacy alias)
|
|
17
22
|
|
|
23
|
+
> **Status:** v0.6.0 — stable, 34 rule rows, 23 tests, published as `latest`. Gobstack is Harvey's
|
|
24
|
+
> personal agent-enhancement layer, built for one owner; the source of truth is this repo, and the
|
|
25
|
+
> npm package tracks it.
|
|
26
|
+
|
|
27
|
+
## The short version
|
|
28
|
+
|
|
29
|
+
- 🧾 **One install, three artifacts** — an executable rule manifest, the verifier that runs it, and the
|
|
30
|
+
`AGENTS.md` config block that names the gates.
|
|
31
|
+
- 🔍 **A rule nobody can check is counted, not claimed** — every row either has a mechanism or is labelled
|
|
32
|
+
advisory, and the advisory count is printed on every run.
|
|
33
|
+
- 🧪 **The gate lives in the repo** — `bash .gob/bin/goblin-verify` needs `git` and `bash`, not gobstack;
|
|
34
|
+
an initialized repo keeps working on a machine where gobstack was never installed.
|
|
35
|
+
- 🤖 **The agent runs the gate, not you** — the same verifier is served over MCP, so a session checks its
|
|
36
|
+
own work instead of describing it.
|
|
37
|
+
- 📋 **Two contracts are themselves gated** — the HANDOFF (`HP-*`) and the feature map (`FM-*`), so the
|
|
38
|
+
documents cannot quietly drift from the code.
|
|
39
|
+
- 🧩 **Extend by data, not by code** — a library of extra rows is switched on per repo through a versioned
|
|
40
|
+
local override, and a miswritten row is refused rather than silently green.
|
|
41
|
+
|
|
42
|
+
`gob init` refuses a gate command that does not exist (exit 127), refuses a proposal with no feature map,
|
|
43
|
+
and writes only paths it records. What it will not do is listed under [What it is not](#what-it-is-not),
|
|
44
|
+
and what it cannot see is in [docs/LIMITS.md](./docs/LIMITS.md).
|
|
45
|
+
|
|
18
46
|
## Install
|
|
19
47
|
|
|
20
48
|
**The v2 flow is `init`-first.** `gob init` prints an AGENT BRIEF — a structured prompt telling
|
|
@@ -228,6 +256,15 @@ then reports `practice pin ok`. Nothing re-pins automatically, not even a re-ins
|
|
|
228
256
|
`bash`, `git`, `awk`, `sed`, `grep`, `python3` (the engine); node ≥ 18 for the npm shim only. No
|
|
229
257
|
jq, no yq, no network at verify time.
|
|
230
258
|
|
|
259
|
+
## Author
|
|
260
|
+
|
|
261
|
+
[Harvey Nguyen](mailto:harvey.nguyen33@gmail.com) — the same address signs every commit and the LICENSE.
|
|
262
|
+
|
|
263
|
+
## Support
|
|
264
|
+
|
|
265
|
+
gobstack is free and MIT. If it saves you a review round, the goblin takes coffee:
|
|
266
|
+
[buymeacoffee.com/harveynguyen33](https://buymeacoffee.com/harveynguyen33).
|
|
267
|
+
|
|
231
268
|
## License
|
|
232
269
|
|
|
233
270
|
MIT.
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.1
|
package/bin/goblin-bans
CHANGED
package/bin/goblin-init
CHANGED
|
@@ -50,13 +50,28 @@ g_info() { printf '%s\n' "$*"; }
|
|
|
50
50
|
|
|
51
51
|
usage() { sed -n '2,/^$/p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; }
|
|
52
52
|
|
|
53
|
+
# A value-taking flag at the end of the line once spun the loop below forever:
|
|
54
|
+
# `shift 2` with $#=1 fails silently under `set -uo pipefail` (no -e), $1 is never
|
|
55
|
+
# consumed, and `gob init --write` answered a missing argument by hanging with zero
|
|
56
|
+
# bytes of output (INIT-WRITE-HANG, measured rc 124 on the published 0.6.0). The
|
|
57
|
+
# root cause was that unbounded flag loop, NOT a stdin read: with stdin at /dev/null
|
|
58
|
+
# the process still never exited. Each value flag now demands its argument up front,
|
|
59
|
+
# names the usage shape, and exits 2 before any work is done. The check MUST run in
|
|
60
|
+
# the main shell (an `exit` inside a $( ) substitution would only kill the subshell
|
|
61
|
+
# and the loop would spin on).
|
|
62
|
+
need_val() { # need_val <flag> <usage> <value> — refuse exit 2 unless the value is set
|
|
63
|
+
[ -n "${3:-}" ] && return 0
|
|
64
|
+
g_err "$1: missing value — usage: gob init $1 $2"
|
|
65
|
+
exit 2
|
|
66
|
+
}
|
|
67
|
+
|
|
53
68
|
# ------------------------------------------------------------------ flags -----
|
|
54
69
|
TARGET="" WRITE="" HEURISTIC=0 DRYRUN=0 SKILLS_OPT="no" WITH_MCP=0
|
|
55
70
|
while [ $# -gt 0 ]; do
|
|
56
71
|
case "$1" in
|
|
57
|
-
--target)
|
|
58
|
-
--write)
|
|
59
|
-
--skills)
|
|
72
|
+
--target) need_val --target '<dir>' "${2:-}"; TARGET=$2; shift 2 ;;
|
|
73
|
+
--write) need_val --write '<proposal-path>' "${2:-}"; WRITE=$2; shift 2 ;;
|
|
74
|
+
--skills) need_val --skills '<spec>' "${2:-}"; SKILLS_OPT=$2; shift 2 ;;
|
|
60
75
|
--list-skills) exec bash "$SRC/bin/goblin-install" --list-skills ;;
|
|
61
76
|
--heuristic) HEURISTIC=1; shift ;;
|
|
62
77
|
--dry-run) DRYRUN=1; shift ;;
|
|
@@ -395,7 +410,14 @@ if [ -z "$WRITE" ]; then
|
|
|
395
410
|
fi
|
|
396
411
|
|
|
397
412
|
# ----------------------------------------------------------------- validate ----
|
|
398
|
-
[ -
|
|
413
|
+
if [ ! -e "$WRITE" ]; then
|
|
414
|
+
g_err "proposal file not found: $WRITE — usage: gob init --write <proposal-path>"
|
|
415
|
+
exit 2
|
|
416
|
+
fi
|
|
417
|
+
if [ -d "$WRITE" ]; then
|
|
418
|
+
g_err "proposal path is a directory, not a file: $WRITE — usage: gob init --write <proposal-path>"
|
|
419
|
+
exit 2
|
|
420
|
+
fi
|
|
399
421
|
PROP=$(cd "$(dirname "$WRITE")" && pwd)/$(basename "$WRITE")
|
|
400
422
|
BLOCK_KEYS=$(g_agents_keys "$PROP")
|
|
401
423
|
[ -n "$BLOCK_KEYS" ] || { g_err "$PROP carries no gob block — the agent did not write the schema"; exit 2; }
|
package/bin/goblin-install
CHANGED
package/bin/goblin-lib.sh
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
# - name: typecheck four-space-indented second member of a list entry
|
|
17
17
|
# cmd: npx tsc --noEmit
|
|
18
18
|
|
|
19
|
-
GOBLIN_LIB_VERSION="0.6.
|
|
19
|
+
GOBLIN_LIB_VERSION="0.6.1"
|
|
20
20
|
|
|
21
21
|
# ---------------------------------------------------------------- output -----
|
|
22
22
|
# g_trunc <width> <text> — fold a long detail to one line at <width> columns, keeping the
|
package/bin/goblin-verify
CHANGED
package/docs/GUIDE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A step-by-step guide for your first week. **Read this before the README.** The README tells you
|
|
4
4
|
what the pieces are; this tells you what to *do*, in order, and what you should see when it works.
|
|
5
5
|
|
|
6
|
-
Version: `0.6.
|
|
6
|
+
Version: `0.6.1` · Last measured: 2026-10-09 · Every command and every output below was run on a
|
|
7
7
|
real repository while writing this guide.
|
|
8
8
|
|
|
9
9
|
---
|
package/package.json
CHANGED