@techgoblin/gobstack 0.6.0-alpha.4 → 0.6.0-beta.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 +45 -0
- package/README.md +249 -116
- package/VERSION +1 -1
- package/bans/README.md +5 -5
- package/bans/grep-ban.sh +1 -1
- package/bin/goblin-bans +103 -27
- package/bin/goblin-init +345 -259
- package/bin/goblin-install +269 -213
- package/bin/goblin-lib.sh +63 -66
- package/bin/goblin-map +130 -579
- package/bin/goblin-mcp.js +9 -14
- package/bin/goblin-verify +249 -993
- package/bin/goblin.js +4 -9
- package/docs/GUIDE.md +724 -179
- package/docs/LIMITS.md +273 -301
- package/docs/RECORD-NOTES.md +1 -2
- package/manifest/bans.tsv +9 -9
- package/manifest/categories.tsv +18 -0
- package/manifest/enforcement.tsv +11 -67
- package/manifest/glossary.tsv +6 -12
- package/manifest/library.tsv +33 -0
- package/package.json +1 -4
- package/skills/goblin-bootstrap/SKILL.md +20 -32
- package/skills/goblin-feature-map/SKILL.md +1 -1
- package/skills/goblin-verify-author/SKILL.md +2 -2
- package/skills/practice/SKILL.md +4 -4
- package/templates/AGENTS.md.tmpl +6 -6
- package/templates/HANDOFF.md.tmpl +1 -1
- package/templates/SPEC.md.tmpl +2 -2
- package/templates/agents-block.tmpl +1 -10
- package/adapters/_template/adapter.tsv +0 -16
- package/adapters/_template/detect.sh +0 -10
- package/adapters/_template/emit.sh +0 -5
- package/adapters/_template/verify.sh +0 -4
- package/adapters/claude/adapter.tsv +0 -8
- package/adapters/claude/detect.sh +0 -8
- package/adapters/claude/verify.sh +0 -47
- package/adapters/codex/adapter.tsv +0 -12
- package/adapters/codex/detect.sh +0 -9
- package/adapters/codex/verify.sh +0 -45
- package/adapters/copilot/adapter.tsv +0 -10
- package/adapters/copilot/detect.sh +0 -8
- package/adapters/copilot/verify.sh +0 -45
- package/adapters/cursor/adapter.tsv +0 -11
- package/adapters/cursor/detect.sh +0 -10
- package/adapters/cursor/verify.sh +0 -45
- package/adapters/gemini/adapter.tsv +0 -15
- package/adapters/gemini/detect.sh +0 -11
- package/adapters/gemini/verify.sh +0 -49
- package/adapters/hermes/adapter.tsv +0 -9
- package/adapters/hermes/detect.sh +0 -8
- package/adapters/hermes/verify.sh +0 -27
- package/adapters/opencode/adapter.tsv +0 -14
- package/adapters/opencode/detect.sh +0 -9
- package/adapters/opencode/verify.sh +0 -45
- package/automations/README.md +0 -53
- package/automations/bugreporter-intake.sh +0 -145
- package/automations/drift-audit.sh +0 -139
- package/automations/report.schema.tsv +0 -10
- package/bin/goblin +0 -144
- package/bin/goblin-audit +0 -143
- package/bin/goblin-doctor +0 -233
- package/bin/goblin-emit +0 -495
- package/bin/goblin-extras +0 -365
- package/bin/goblin-model +0 -105
- package/bin/goblin-upgrade +0 -580
- package/docs/ADOPTION.md +0 -173
- package/docs/CI.md +0 -190
- package/docs/CONTRACTS.md +0 -218
- package/docs/DESIGN.md +0 -92
- package/docs/ENFORCEMENT.md +0 -228
- package/docs/FLOWS.md +0 -164
- package/docs/GLOSSARY.md +0 -40
- package/docs/GUARDRAILS.md +0 -126
- package/docs/INTEGRATION.md +0 -92
- package/docs/LOOP.md +0 -165
- package/docs/RE-PLAYBOOK.md +0 -183
- package/docs/RISKS.md +0 -70
- package/docs/ROLES.md +0 -105
- package/extras-catalogue/catalogue.tsv +0 -42
- package/extras-catalogue/payload/README.md +0 -14
- package/extras-catalogue/payload/taste-skill/taste/REFERENCE.md +0 -3
- package/extras-catalogue/payload/taste-skill/taste/SKILL.md +0 -9
- package/manifest/classes.tsv +0 -51
- package/manifest/playbooks.tsv +0 -16
- package/presets/electron-overlay.yaml +0 -38
- package/presets/fleet.yaml +0 -43
- package/presets/game.yaml +0 -38
- package/presets/research.yaml +0 -41
- package/presets/service.yaml +0 -40
- package/presets/software.yaml +0 -48
- package/roles.yaml +0 -54
- package/skills/goblin-bugfix/SKILL.md +0 -26
- package/skills/goblin-bugreporter/SKILL.md +0 -52
- package/skills/goblin-drift-audit/SKILL.md +0 -43
- package/skills/goblin-eval/SKILL.md +0 -68
- package/skills/goblin-feature/SKILL.md +0 -26
- package/skills/goblin-investigation/SKILL.md +0 -26
- package/skills/goblin-judge/SKILL.md +0 -74
- package/skills/goblin-loop/SKILL.md +0 -88
- package/skills/goblin-mode/SKILL.md +0 -70
- package/skills/goblin-overnight/SKILL.md +0 -42
- package/skills/goblin-pr-gate/SKILL.md +0 -42
- package/skills/goblin-re-mobile/SKILL.md +0 -51
- package/skills/goblin-refactor/SKILL.md +0 -23
- package/skills/goblin-sweep/SKILL.md +0 -23
- package/skills/goblin-tdd-repro/SKILL.md +0 -27
- package/templates/audit-waiver.tsv.tmpl +0 -10
- package/templates/install-hooks.allowlist.tmpl +0 -9
- package/templates/report.yaml.tmpl +0 -16
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: goblin-re-mobile
|
|
3
|
-
description: P15: understand one shipped Android build as facts for study - triage, carve, manifest, dossier.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# goblin-re-mobile (P15)
|
|
7
|
-
|
|
8
|
-
Use when one shipped Android build must be understood as facts for study, with a
|
|
9
|
-
reproducible, hash-manifested corpus. The full procedure is `docs/RE-PLAYBOOK.md`; the
|
|
10
|
-
steps:
|
|
11
|
-
|
|
12
|
-
1. **S0 preflight.** The dedicated sandbox exists and is the one the fences describe - a
|
|
13
|
-
disposable LXC/VM, never the host.
|
|
14
|
-
2. **S1 acquire.** Owned or free builds only, from a store listing with a published hash.
|
|
15
|
-
A cracked or pirated APK is a hard fence - a stop, not a judgment call.
|
|
16
|
-
3. **S2 provenance.** Verify the download against the store's published md5/sha256 before
|
|
17
|
-
anything else touches it; record it in the acquisition record.
|
|
18
|
-
4. **S3 triage.** The engine verdict, cheapest test first: `.so` markers
|
|
19
|
-
(`lib/*/libunity.so` + `global-metadata.dat` = Unity IL2CPP, `libue4.so` = Unreal,
|
|
20
|
-
`libcocos2d*.so` = Cocos, `libgodot*` = Godot); no `.so` plus packed assets = custom
|
|
21
|
-
Java engine.
|
|
22
|
-
5. **S4 static decompile.** apktool/jadx into the quarantine, never into any repo.
|
|
23
|
-
6. **S5 carve.** A carver written from decompiled evidence, never guessed - find the
|
|
24
|
-
loader, recover the transform, reimplement, cross-check against the container's own
|
|
25
|
-
size tables (the Kairosoft `.dat` precedent).
|
|
26
|
-
7. **S6 manifest.** sha256 of every extracted payload into `manifests/*.sha256`, header
|
|
27
|
-
naming target + version + source store + anchor, plus the apk row itself.
|
|
28
|
-
8. **S7 dossier.** Facts and numbers, never expression: measurements, counts,
|
|
29
|
-
class/method citations. No extracted art, no copied text.
|
|
30
|
-
9. **S8 runtime analysis.** Deferred by design: frida hooking needs a device/emulator and
|
|
31
|
-
an owned build; static facts first.
|
|
32
|
-
10. **S9 retention/teardown.** The corpus lives only in the sandbox quarantine; the lab
|
|
33
|
-
repo keeps scripts, notes and hashes only. Delete or keep is a recorded decision.
|
|
34
|
-
|
|
35
|
-
## Verification
|
|
36
|
-
|
|
37
|
-
- The corpus manifest verifies `sha256sum -c` where the corpus lives.
|
|
38
|
-
- `goblin-verify` against the lab repo needs the harness installed there first: one
|
|
39
|
-
`goblin-install --target <lab-repo> --class A`, after which `--only RC-03` / `RC-04` run
|
|
40
|
-
(without the install, goblin-verify exits 2 `not installed`).
|
|
41
|
-
- `goblin-verify --only RC-01` / `RC-02` / `RC-03` / `RC-04` return the exits their rows
|
|
42
|
-
define - an exact hash inside the build output, a weak manifest and a tracked payload
|
|
43
|
-
each fail the build.
|
|
44
|
-
- Every negative control NC-1..NC-6 was shown RED and then restored.
|
|
45
|
-
|
|
46
|
-
## What this cannot see
|
|
47
|
-
|
|
48
|
-
- A re-encoded or resized asset passes `RC-01`'s exact-hash gate (level 2); copied text
|
|
49
|
-
inside a shipped string is level 3.
|
|
50
|
-
- A weak manifest authored by hand is `RC-02`'s problem only if malformed.
|
|
51
|
-
- Nothing here proves a fact is CORRECT - only that it is traceable to the corpus.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: goblin-refactor
|
|
3
|
-
description: P4: pin the contract first, reshape, delete the legacy path in the same change.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# goblin-refactor (P4)
|
|
7
|
-
|
|
8
|
-
1. **Pin the contract first** — a characterization test, a snapshot, or an equivalence
|
|
9
|
-
harness that asserts the *current* behaviour. A type check and lint are not a pin: they
|
|
10
|
-
say the code still compiles, not that it still does the same thing.
|
|
11
|
-
2. **Shape only, no behaviour.** If the pin changes, this is not a refactor; stop and treat it
|
|
12
|
-
as a feature (P3) or a bug fix (P2).
|
|
13
|
-
3. **Delete the legacy path in the same change.** A refactor that leaves the old path behind
|
|
14
|
-
has doubled the surface, not reshaped it.
|
|
15
|
-
|
|
16
|
-
## Verification
|
|
17
|
-
|
|
18
|
-
- The pin is a real assertion, run before and after, with both results captured.
|
|
19
|
-
- The legacy path is gone: the pin no longer references it and `grep` for it returns nothing.
|
|
20
|
-
|
|
21
|
-
## What this cannot see
|
|
22
|
-
|
|
23
|
-
Performance characteristics a functional pin does not cover.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: goblin-sweep
|
|
3
|
-
description: P11: the same change or question across projects - one card each, one line back.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# goblin-sweep (P11)
|
|
7
|
-
|
|
8
|
-
1. **Enumerate targets with a shell glob, not a memory.** A list typed from memory is a list
|
|
9
|
-
that is already wrong.
|
|
10
|
-
2. **Classify each target A-F.** An `archive` project is **skipped, not processed** — say so.
|
|
11
|
-
3. **One card per project, parented to the sweep card.**
|
|
12
|
-
4. **Collect one line per project**: what changed / what was refused / what is unfindable.
|
|
13
|
-
|
|
14
|
-
## Verification
|
|
15
|
-
|
|
16
|
-
- The per-project line carries the command it ran.
|
|
17
|
-
- The sweep report states its own coverage: `n of m projects`, and names the ones it skipped.
|
|
18
|
-
- A refusal is a result. Report it as one.
|
|
19
|
-
|
|
20
|
-
## What this cannot see
|
|
21
|
-
|
|
22
|
-
Projects that exist but were not enumerated by the glob — a sweep can only report on the set
|
|
23
|
-
it looked at, which is why it must state that set.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: goblin-tdd-repro
|
|
3
|
-
description: P5: write the failing test, confirm it fails for the intended reason, fix, replay RED.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# goblin-tdd-repro (P5)
|
|
7
|
-
|
|
8
|
-
Use when a defect is reproducible and a regression test is cheap.
|
|
9
|
-
|
|
10
|
-
1. **Write the failing test.**
|
|
11
|
-
2. **Confirm it fails for the intended reason** — not a typo, not a missing import. Paste the
|
|
12
|
-
failure and say why it is the right failure.
|
|
13
|
-
3. **Smallest production fix.** No drive-by edits.
|
|
14
|
-
4. **Revert the fix -> the test MUST fail -> restore.** This is the negative control; without
|
|
15
|
-
it the test is decoration.
|
|
16
|
-
|
|
17
|
-
## Verification
|
|
18
|
-
|
|
19
|
-
- The RED-again step is captured, with the command and the failure.
|
|
20
|
-
- Prefer no new test over a bad test. A test that asserts an implementation detail pins the
|
|
21
|
-
bug in place.
|
|
22
|
-
- If you skip this playbook because a regression test is not cheap, say so explicitly. The
|
|
23
|
-
skip path is never silent.
|
|
24
|
-
|
|
25
|
-
## What this cannot see
|
|
26
|
-
|
|
27
|
-
Defects that need a device, a network, or a human to trigger.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# .gob/audit-waiver.tsv — one line per accepted dependency advisory (SC-07).
|
|
2
|
-
#
|
|
3
|
-
# package severity id date reason
|
|
4
|
-
#
|
|
5
|
-
# The date is the day the decision was taken, and SC-07 refuses a waiver older than
|
|
6
|
-
# security.waiver_max_age_days: a waiver with no expiry is a permanent blind spot. A
|
|
7
|
-
# high|critical line in .gob/audit.tsv with no matching row here is a RED.
|
|
8
|
-
#
|
|
9
|
-
# example:
|
|
10
|
-
# next high GHSA-xxxx-yyyy-zzzz 2026-09-24 no fixed release yet; the vulnerable path is the dev server only
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# .gob/install-hooks.allowlist — dependencies whose install-time script is accepted (SC-08).
|
|
2
|
-
#
|
|
3
|
-
# One package name per line. SC-08 enumerates package-lock.json for "hasInstallScript": true and
|
|
4
|
-
# requires every one of them to appear here. An install hook is arbitrary code that runs on every
|
|
5
|
-
# `npm ci` (and on every CI job), so the list is short and each entry is a decision, not a default.
|
|
6
|
-
#
|
|
7
|
-
# example:
|
|
8
|
-
# esbuild
|
|
9
|
-
# sharp
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# reports/<slug>/report.yaml — one report, one file, one schema.
|
|
2
|
-
#
|
|
3
|
-
# A report is a file with a schema, not prose in a card body: prose invites the agent to fill
|
|
4
|
-
# the gaps by guessing, and a guess at intake poisons everything downstream. The validator is
|
|
5
|
-
# `automations/bugreporter-intake.sh`; the schema it enforces is `automations/report.schema.tsv`.
|
|
6
|
-
|
|
7
|
-
repo: # REQUIRED. path or remote of the repository the defect is in
|
|
8
|
-
symptom: # REQUIRED. one line, observable
|
|
9
|
-
expected: # REQUIRED. one line
|
|
10
|
-
observed: # REQUIRED. one line
|
|
11
|
-
repro_steps: # REQUIRED. ordered list, one item per line, 4-space indented
|
|
12
|
-
-
|
|
13
|
-
revision: # REQUIRED. a commit that exists in that repository
|
|
14
|
-
dedup_key: # REQUIRED. bug:<repo>:<sha256(normalised symptom)[:12]> - content only
|
|
15
|
-
environment: # optional. platform/version; absent is recorded as unknown, never guessed
|
|
16
|
-
evidence: # optional. paths to captures; evidence for a human, never harness proof
|