@chrono-meta/fh-gate 1.4.41 → 1.4.42

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.
Files changed (32) hide show
  1. package/AGENTS.md +2 -2
  2. package/CLAUDE.md +65 -130
  3. package/docs/CONTRIBUTING.md +2 -2
  4. package/knowledge/shared/dialogue/ai_dialogue_playbook.md +137 -0
  5. package/knowledge/shared/dialogue/claude_code_runtime_flow.md +170 -0
  6. package/knowledge/shared/dialogue/memory_intent_recall.md +209 -0
  7. package/knowledge/shared/harness-core/claude_md_gate_details.md +170 -0
  8. package/knowledge/shared/harness-core/companion_store_pluggable_cross_audit_2026-06-11.md +118 -0
  9. package/knowledge/shared/harness-core/crucible_mode.md +112 -0
  10. package/knowledge/shared/harness-core/deep_research_capability_ladder.md +122 -0
  11. package/knowledge/shared/harness-core/fh_detail_protocols.md +163 -0
  12. package/knowledge/shared/harness-core/fh_ecosystem_positioning.md +147 -0
  13. package/knowledge/shared/harness-core/fh_opencode_governance_wrapper.md +163 -0
  14. package/knowledge/shared/harness-core/fh_synergy_playbook.md +217 -0
  15. package/knowledge/shared/harness-core/gate_locality_principle.md +57 -0
  16. package/knowledge/shared/harness-core/goal_quench_anthropic_issue.md +104 -0
  17. package/knowledge/shared/harness-core/harness_6axis_framework.md +136 -0
  18. package/knowledge/shared/harness-core/harness_design_decision_lens.md +108 -0
  19. package/knowledge/shared/harness-core/harness_frontier_diagnosis_2026-06-02.md +102 -0
  20. package/knowledge/shared/harness-core/hub_compounding_loop.md +109 -0
  21. package/knowledge/shared/harness-core/hub_maturity_roadmap.md +201 -0
  22. package/knowledge/shared/harness-core/hybrid_orchestration_architecture_roadmap.md +196 -0
  23. package/knowledge/shared/harness-core/live_surface_automation_pattern.md +110 -0
  24. package/knowledge/shared/harness-core/measurement-integrity-checklist.md +54 -0
  25. package/knowledge/shared/harness-core/meta_harness_engineering_definition.md +116 -0
  26. package/knowledge/shared/harness-core/multi_model_sidecar_strategy.md +650 -0
  27. package/knowledge/shared/harness-core/persona_container_schema.md +172 -0
  28. package/knowledge/shared/harness-core/return_path_gate.md +120 -0
  29. package/knowledge/shared/harness-core/self_evolution_routine.md +268 -0
  30. package/knowledge/shared/harness-core/skill_quality_rubric.md +71 -0
  31. package/knowledge/shared/harness-core/tpa_schema.md +136 -0
  32. package/package.json +3 -2
@@ -0,0 +1,136 @@
1
+ ---
2
+ name: tpa-schema
3
+ description: Canonical Target Profile Analysis schema for FH meta-harness skills. All skills that run TPA (sim-conductor, steel-quench, phantom-quench, agent-composer) MUST derive their routing decisions from this schema.
4
+ type: reference
5
+ scope: meta-harness
6
+ ---
7
+
8
+ # Target Profile Analysis (TPA) — Canonical Schema
9
+
10
+ > **Meta-harness scope**: FH operates on harness assets themselves (SKILL.md, CLAUDE.md, agents, templates), not on application code. A mistake in a SKILL.md propagates to every future session that loads it — the risk profile is categorically higher than application code of the same line count.
11
+
12
+ All four skills that perform TPA **reference this file** rather than defining their own taxonomy:
13
+ - `sim-conductor` Step 0.3
14
+ - `steel-quench` Step 0.3
15
+ - `phantom-quench` Step 0.5
16
+ - `agent-composer` Step 0.2
17
+
18
+ ---
19
+
20
+ ## Canonical Fields
21
+
22
+ | Field | Type | Values | Derivation |
23
+ |---|---|---|---|
24
+ | `artifact_type` | enum | See §Artifact Type Table | From file path / extension / user declaration |
25
+ | `audience` | enum | `internal` · `external` · `mixed` | From scope + external_publish |
26
+ | `claim_density` | enum | `low` (≤3) · `medium` (4–10) · `high` (>10) | Count verifiable claims in artifact |
27
+ | `risk_level` | enum | `low` · `medium` · `high` | From §Risk Default Table (override allowed) |
28
+ | `novelty` | bool | `true` · `false` | `true` if no prior session evidence or first-of-its-kind pattern |
29
+ | `scope` | enum | `internal` · `external` | `external` if published/publishable or public repo |
30
+ | `phantom_risk` | derived | `true` · `false` | `true` if artifact contains arXiv/DOI/http citations OR code fences in a knowledge doc |
31
+
32
+ > `phantom_risk` is **derived** — do not ask the user. If `artifact_type` is `skill_md` or `design_doc` and citations or URLs are present → `true`. Use as input to `phantom-quench` gate trigger.
33
+
34
+ ---
35
+
36
+ ## §Artifact Type Table (Meta-Harness First)
37
+
38
+ ### Meta-Harness Artifact Types
39
+
40
+ | `artifact_type` | Examples | Default Risk | Why High |
41
+ |---|---|:---:|---|
42
+ | `skill_md` | `plugins/*/skills/*/SKILL.md` | **high** | Behavioral rule for AI — executes every session it's loaded |
43
+ | `claude_md` | `CLAUDE.md`, `.claude/rules/*.md` | **high** | Governance layer — one drift affects all connected projects |
44
+ | `agent_md` | `.claude/agents/*.md` | **medium-high** | Sub-agent behavioral rule — dispatched autonomously |
45
+ | `template` | `templates/**` | **high** | Propagates to target projects — a mistake multiplies |
46
+ | `skill_detail_md` | `*/SKILL_detail.md` | **medium** | On-demand reference — lower broadcast risk than SKILL.md |
47
+ | `knowledge_doc` | `knowledge/shared/*.md` | **medium** | Reference only, but substantive carve-out applies |
48
+ | `cheatsheet` | `CHEATSHEET.md` | **medium** | User-facing guide — external audience |
49
+ | `readme` | `README.md` | **medium-high** | External facing — first impression for all users |
50
+ | `bash_script` | `templates/*.sh`, `scripts/*.sh` | **high** | Executes in user environment |
51
+ | `session_card` | `tracks/_meta/reference_next_session_starter.md` | **low** | Ephemeral state — low blast radius |
52
+ | `catalog_entry` | `CATALOG.md` additions | **low** | Index only — no behavioral impact |
53
+
54
+ ### Standard Artifact Types (Field Project Work)
55
+
56
+ | `artifact_type` | Examples | Default Risk |
57
+ |---|---|:---:|
58
+ | `code` | `.py`, `.ts`, `.go`, `.java` | **medium** |
59
+ | `pr_diff` | git diff output | **medium** |
60
+ | `config` | `.yaml`, `.json`, `.toml` | **medium-high** |
61
+ | `api_spec` | OpenAPI, Proto | **medium** |
62
+ | `test_suite` | `*_test.py`, `*.spec.ts` | **low** |
63
+ | `design_doc` | ADRs, RFCs, architecture docs | **medium** |
64
+
65
+ ---
66
+
67
+ ## §Gate Routing Table
68
+
69
+ Which gates are **mandatory** vs optional for each (artifact_type × risk_level) combination.
70
+
71
+ | `artifact_type` | `scope` | steel-quench | phantom-quench | sim-conductor Area |
72
+ |---|---|:---:|:---:|:---:|
73
+ | `skill_md` | any | **MANDATORY** | **MANDATORY** if `phantom_risk=true` | D-skill |
74
+ | `claude_md` / `agent_md` | any | **MANDATORY** | optional | D-skill (for agent_md) |
75
+ | `template` | any | **MANDATORY** | **MANDATORY** | A (external publish check) |
76
+ | `readme` / `cheatsheet` | external | **MANDATORY** | optional | **A MANDATORY** |
77
+ | `bash_script` | any | **MANDATORY** (Wave 1 real-code first) | optional | — |
78
+ | `knowledge_doc` | any | optional | **MANDATORY** if `phantom_risk=true` | — |
79
+ | `code` / `pr_diff` | any | optional | optional | D-code |
80
+ | `config` | external | **MANDATORY** | optional | — |
81
+ | `design_doc` | external | **MANDATORY** | **MANDATORY** if citations | A |
82
+
83
+ **Enforcement note**: "mandatory" means the gate BLOCKS the downstream step if skipped — not advisory. `pipeline-conductor` Step 0.5 implements this: HIGH severity OPEN chains from `return-path-gate` = FAIL (halt sweep), not CONDITIONAL_PASS. User override available via `S` but records as `degraded` and disqualifies `CLEAN (--full)`.
84
+
85
+ ---
86
+
87
+ ## §Profile Output Format
88
+
89
+ All TPA-performing skills output this block (copy verbatim):
90
+
91
+ ```
92
+ TPA Profile:
93
+ artifact_type: [type]
94
+ audience: [internal | external | mixed]
95
+ claim_density: [low | medium | high] ([N] claims)
96
+ risk_level: [low | medium | high]
97
+ novelty: [true | false]
98
+ scope: [internal | external]
99
+ phantom_risk: [true | false]
100
+ required_gates: [list from §Gate Routing Table]
101
+ optional_gates: [list]
102
+ ```
103
+
104
+ Skills MAY add skill-specific derived fields (e.g., `steel-quench` adds `wave_weights`, `sim-conductor` adds `recommended_area`) but the canonical 8 fields above are the shared contract.
105
+
106
+ ---
107
+
108
+ ## Override Rules
109
+
110
+ 1. User may explicitly override `risk_level` — accepted without question.
111
+ 2. `scope` override: if artifact is in `templates/` or public repo, `scope=external` is forced regardless of user declaration.
112
+ 3. `phantom_risk` is derived-only — cannot be overridden to `false` if citations or code fences exist.
113
+ 4. `required_gates` cannot be overridden to empty — skip must be explicitly declared as `degraded: [gate] (user skipped)` in output.
114
+
115
+ ---
116
+
117
+ ## Meta-Harness Amplification Rule
118
+
119
+ > A defect in a `skill_md` or `claude_md` artifact runs in every session that loads it — potentially hundreds of times before being caught. Apply the following multiplier when assessing severity:
120
+ >
121
+ > - `skill_md` / `claude_md` / `template`: **severity × 3** (broadcast multiplier)
122
+ > - `agent_md`: **severity × 2**
123
+ > - Standard artifact types: no multiplier
124
+
125
+ This is why meta-harness defaults to `risk_level=high` for these types: the blast radius is not the artifact itself but every downstream invocation.
126
+
127
+ ---
128
+
129
+ ## Skill Integration Pointers
130
+
131
+ | Skill | How to use this schema |
132
+ |---|---|
133
+ | `sim-conductor` Step 0.3 | Replace inline table with `artifact_type` lookup from §Artifact Type Table → `required_gates` from §Gate Routing Table |
134
+ | `steel-quench` Step 0.3 | Derive `phantom_risk` per §Canonical Fields. Wave 5 activation condition: `scope=external AND risk_level=high` |
135
+ | `phantom-quench` Step 0.5 | Gate trigger: `phantom_risk=true` OR `risk_level=high` |
136
+ | `agent-composer` Step 0.2 | Capability fit scoring input: `artifact_type` determines `role_match` lookup domain |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrono-meta/fh-gate",
3
- "version": "1.4.41",
3
+ "version": "1.4.42",
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": [
@@ -61,7 +61,8 @@
61
61
  "plugins/fh-meta/agents",
62
62
  "plugins/fh-commons/skills",
63
63
  "plugins/fh-commons/agents",
64
- "knowledge/shared/harness-core/fh_integration_contract.md",
64
+ "knowledge/shared/harness-core",
65
+ "knowledge/shared/dialogue",
65
66
  "README.md"
66
67
  ]
67
68
  }