@chrono-meta/fh-gate 1.4.25 → 1.4.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "1.4.25",
3
+ "version": "1.4.26",
4
4
  "description": "FH runtime adapters — run FH governance, skills, and agents via Claude or Codex with machine-parseable gates.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -86,9 +86,9 @@ If this is your first time with FH, confirm 3 things before install. All should
86
86
  Fewer than 2 of 3 (first three) → Proceed with install but recommend using only core skills (`context-doctor`, `harness-doctor`) first.
87
87
  All 3 → Proceed in order: Step 0-B (token injection) → Step 0 (environment card) → Step 0-C (existing harness).
88
88
 
89
- **Mode D detected (FH developer/researcher)**: Guide companion-store setup before Step 1.
89
+ **Mode D detected (FH developer/researcher)**: Guide companion-store setup before Step 1. **Ask the backend first** — the store is a role (durable private home for artifacts), not a fixed `*-be` git repo: Obsidian vault / gbrain-ingest / `*-be` git repo (default) all qualify. Do not assume the repo path.
90
90
 
91
- > **Detail**: See `SKILL_detail.md §Mode-D-Companion-Setup` — recommended public/private layout, remote-backed and local-only setup commands — read when Mode D is detected.
91
+ > **Detail**: See `SKILL_detail.md §Mode-D-Companion-Setup` — backend-branching question (Obsidian / gbrain / *-be git default), remote-backed and local-only setup commands, cross-backend invariants — read when Mode D is detected.
92
92
 
93
93
  ### Step 0-B. Git Token Pre-injection (when repo creation/fork/push included)
94
94
 
@@ -12,33 +12,55 @@ load: on-demand
12
12
 
13
13
  ## §Mode-D-Companion-Setup
14
14
 
15
- Guide companion-store setup before Step 1 when Mode D (FH developer/researcher) is detected:
16
-
15
+ Guide companion-store setup before Step 1 when Mode D (FH developer/researcher) is detected.
16
+
17
+ **Ask the backend question FIRST — do not assume a `*-be` git repo.** The companion store is a
18
+ *role* (durable private home for drafts · signals · handoffs · gitignored-session mirror), not a
19
+ fixed technology. FH emits the same artifact for every backend — **markdown output files** — so the
20
+ only thing that changes is where those files land. Branch on what the user already runs (see
21
+ `modes_and_value.md §Pluggable backends`):
22
+
23
+ ```
24
+ You're developing FH itself — you need a durable PRIVATE companion store
25
+ alongside the public mirror. Where should research artifacts live?
26
+
27
+ Q: Do you already run a durable knowledge store?
28
+
29
+ ┌─ Already garden knowledge in Obsidian
30
+ │ → point the output path AT the vault. Obsidian IS markdown, so drafts
31
+ │ are backlinked instantly — zero new infra, nothing to git init.
32
+ │ Set BE_DIR=/path/to/vault/fh (the sync target is just a folder)
33
+ │ ⚠ use a NON-git vault subfolder: if BE_DIR lands inside a git-backed
34
+ │ vault (Obsidian Git plugin), the sync script auto-commits private
35
+ │ session-meta (incl. CLAUDE.local.md) into the vault's remote.
36
+
37
+ ├─ Run a queryable memory brain (gbrain / LLM-wiki)
38
+ │ → your gbrain INGESTS the emitted markdown (`gbrain ingest <path>`).
39
+ │ Set BE_DIR=/path/to/staging (same env var as the other backends — FH
40
+ │ writes markdown there; your brain then `gbrain ingest`s that path).
41
+ │ (A deeper FH→gbrain MCP integration is a future candidate — not wired today.)
42
+
43
+ └─ None of the above (DEFAULT) → a private *-be git repo
44
+ Quick setup (remote-backed):
45
+ gh repo create {org}/{hub}-be --private
46
+ git clone https://github.com/{org}/{hub}-be ~/path/to/{hub}-be
47
+ mkdir -p {hub}-be/{paper-drafts,paper-signals,digests,handoff}
48
+ Local-only variant (no GitHub — data never leaves the machine):
49
+ git init ~/path/to/{hub}-be # no remote needed
50
+ mkdir -p ~/path/to/{hub}-be/{paper-drafts,paper-signals,digests,handoff}
51
+ → the sync script detects the missing upstream and skips push
52
+ automatically; local git history carries durability.
53
+
54
+ Any store name/path works — set BE_DIR (and HUB_DIR) env vars to your paths.
55
+
56
+ Invariant across ALL backends:
57
+ · methodology stays in the public mirror (single-source guard) — NEVER copied
58
+ into the store; the store holds only OUTPUTS, never a rule copy
59
+ · knowledge/shared/ drafts stay local via .gitignore glob
60
+ · push/ingest snapshots explicitly — never auto-push
61
+ · handoff/ files bridge cloud session → local without exposing content
17
62
  ```
18
- You're developing FH itself — you need a private companion store
19
- alongside the public mirror.
20
-
21
- Recommended layout:
22
- public: {org}/{hub} (methodology, skills, rules)
23
- private: {org}/{hub}-be (paper drafts, experiment logs,
24
- raw signals, handoff files)
25
-
26
- Quick setup (remote-backed):
27
- gh repo create {org}/{hub}-be --private
28
- git clone https://github.com/{org}/{hub}-be ~/path/to/{hub}-be
29
- mkdir -p {hub}-be/{paper-drafts,paper-signals,digests,handoff}
30
63
 
31
- Local-only variant (no GitHub — your data never leaves the machine):
32
- git init ~/path/to/{hub}-be # no remote needed
33
- mkdir -p ~/path/to/{hub}-be/{paper-drafts,paper-signals,digests,handoff}
34
- → the sync script detects the missing upstream and skips push
35
- automatically; local git history carries durability. Any store
36
- name works — set BE_DIR (and HUB_DIR) env vars to your paths.
37
-
38
- Key rule: knowledge/shared/ drafts stay local via .gitignore glob.
39
- Push snapshots to the companion store explicitly — never auto-push.
40
- handoff/ files bridge cloud session → local without exposing content.
41
- ```
42
64
 
43
65
  ---
44
66
 
@@ -417,11 +439,15 @@ install-wizard — Complete
417
439
  New skill proposal → PR:
418
440
  https://github.com/chrono-meta/forge-harness
419
441
 
420
- 🔬 Developing FH itself? Set up a private companion store:
421
- gh repo create {org}/{hub}-be --private # paper drafts, experiment logs, handoffs
422
- (or local-only: git init ~/path/{hub}-be no remote; push is auto-skipped)
423
- public mirror holds methodology · private store holds research artifacts
424
- field projects (internal harness) can use the same dual-repo pattern
442
+ 🔬 Developing FH itself? Set up a durable PRIVATE companion store.
443
+ Backend is your choice the store is a role, not a fixed tech (it holds
444
+ research artifacts; methodology stays in the public mirror):
445
+ · Obsidian user point output path at your vault (zero new infra)
446
+ · gbrain / memory-brain it ingests FH's emitted markdown
447
+ · neither (default) → gh repo create {org}/{hub}-be --private
448
+ (or local-only: git init ~/path/{hub}-be — push auto-skipped)
449
+ → see install-wizard SKILL_detail §Mode-D-Companion-Setup for the full branch
450
+ → field projects (internal harness) can use the same dual-store pattern
425
451
 
426
452
  🔀 Don't want to lose your accumulated assets — fork as your own hub:
427
453
  Personal skills/rules/notes added directly to FH may be lost on FH updates.