@techgoblin/gobstack 0.6.0-beta.2 → 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 CHANGED
@@ -42,6 +42,36 @@ 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
+
56
+ ## 0.6.0
57
+
58
+ The first stable release of the v3 core: one `gob` verb set, an enforcement matrix that grows by data rather than by
59
+ code, a bash engine with no runtime dependencies, the npm shim that makes `npx @techgoblin/gobstack` work, and the
60
+ MCP surface an agent calls instead of a human running commands. Breaking against v2 by design (rows, docs and
61
+ playbooks were cut, not renamed).
62
+
63
+ This release adds the three rows curated from one shipped project: `HV-02`, `HP-06` and `HV-01` — an instrument
64
+ that must prove itself before it accuses the product, a handoff where `cancelled` is not a shape of `pending`, and
65
+ a check whose input is the input the user actually gets. Each is a text probe with its blind spot written into
66
+ `docs/LIMITS.md` (#57–#59), each is covered by `tests/t-hvhp-rows.sh` (red on demand, green when removed), and
67
+ `docs/CURATION-2026-11-07-gobigrams.md` records the twelve candidates behind them and why four stayed advisory
68
+ while two were refused.
69
+
70
+ Not in this release, on purpose: `AG-01` (instruction files need a recorded approval) changes the daily loop — every
71
+ `AGENTS.md` edit becomes red until re-approved — so it ships with its own command in 0.6.1; and the release family
72
+ `RL-01`/`VR-01` waits for a project that ships several artifacts, because its config surface must be designed against
73
+ that shape rather than against the single-artifact project it was mined from.
74
+
45
75
  ## 0.6.0-beta.2
46
76
 
47
77
  The three curation rows from one project, and the sentence one of them had to lose after the drill.
package/README.md CHANGED
@@ -1,11 +1,16 @@
1
- # gobstack
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
- > **Personal layer note (2026-10-10):** this is Harvey's personal agent-enhancement layer — owner of one, zero users. Install = clone this repo + `gob init`; the npm package is FROZEN at 0.6.0-beta.1 and is not the install path.
7
+ # gobstack
4
8
 
5
- **gobstack** (npm: [`@techgoblin/gobstack`](https://www.npmjs.com/package/@techgoblin/gobstack))
6
- installs an **executable rule manifest**, a **vendored verifier**, and an **AGENTS.md-frontmatter
7
- config** into any project — so that an AI coding session never re-improvises, and a rule that
8
- cannot be checked is counted rather than asserted.
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.0-beta.2
1
+ 0.6.1
package/bin/goblin-bans CHANGED
@@ -41,7 +41,7 @@
41
41
 
42
42
  set -uo pipefail
43
43
 
44
- GOBLIN_BANS_VERSION="0.6.0-beta.2"
44
+ GOBLIN_BANS_VERSION="0.6.1"
45
45
  SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
46
46
  # shellcheck source=goblin-lib.sh
47
47
  . "$SELF_DIR/goblin-lib.sh"
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) TARGET="${2:-}"; shift 2 ;;
58
- --write) WRITE="${2:-}"; shift 2 ;;
59
- --skills) SKILLS_OPT="${2:-}"; shift 2 ;;
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
- [ -f "$WRITE" ] || { g_err "proposal file not found: $WRITE"; exit 2; }
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; }
@@ -28,7 +28,7 @@
28
28
 
29
29
  set -uo pipefail
30
30
 
31
- GOBLIN_INSTALL_VERSION="0.6.0-beta.2"
31
+ GOBLIN_INSTALL_VERSION="0.6.1"
32
32
  SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
33
33
  SRC=$(cd "$SELF_DIR/.." && pwd)
34
34
  # shellcheck source=goblin-lib.sh
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.0-beta.2"
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
@@ -19,7 +19,7 @@
19
19
 
20
20
  set -uo pipefail
21
21
 
22
- GOBLIN_VERIFY_VERSION="0.6.0-beta.2"
22
+ GOBLIN_VERIFY_VERSION="0.6.1"
23
23
  SELF_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
24
24
  # shellcheck source=goblin-lib.sh
25
25
  . "$SELF_DIR/goblin-lib.sh"
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.0-beta.2` · Last measured: 2026-10-09 · Every command and every output below was run on a
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techgoblin/gobstack",
3
- "version": "0.6.0-beta.2",
3
+ "version": "0.6.1",
4
4
  "description": "Agent-discipline toolkit: one verify command, an enforcement matrix, and LIMITS. bash engine, npm shim.",
5
5
  "bin": {
6
6
  "goblin": "bin/goblin.js",