Skill: Harness Engineering Reinforce
Philosophy
Compound learning only after proof. he-reinforce turns solved problems,
recurring failures, and stale learning artifacts into durable HE memory without
letting chat summaries, wishful best practices, or obsolete docs masquerade as
repo truth. Local AGENTS.md, rules, hooks, command boundaries, and approval
- See references/hot-path-folded-context.md for folded philosophy detail.
When to Use
- A user says the problem is fixed, solved, working now, or worth remembering.
- A repeated bug, validation failure, review finding, workflow mistake, or
session-continuity gap needs durable prevention guidance.
.harness/solutions/**, .harness/knowledge/**, .harness/decisions/**,
or legacy docs/solutions/** need freshness review.
- Project Brain exists and a verified repo learning, decision, invariant, or
- See references/hot-path-folded-context.md for folded when to use detail.
When Not to Use
- The problem is not solved or validation evidence is missing.
- The request only needs lifecycle state reconciliation; use
he-reconcile.
- The request needs implementation, code review repair, Linear mutation, or
closure proof; use the owning HE stage.
- See references/hot-path-folded-context.md for folded when not to use detail.
Inputs
Repo path, solved-problem evidence, validation output, relevant diff/PR/Linear
context, repeated-failure trace, existing .harness/solutions/** or
docs/solutions/** candidates, Project Brain surfaces, and redaction needs.
Outputs
A capture, refresh, consolidation, continuity-snapshot, stale-note, or blocked
status; exactly one primary learning artifact when writing; Project Brain sync
status; Codex-native sync receipt status when memory, artifact, goal, Chronicle,
Local Memory, vault, or native citation surfaces are touched;
source_prompt_family_status when source-prompt preservation is in
scope; overlap and freshness findings; validation evidence; and a handoff for
unresolved work.
Preconditions
Verify the repo and canonical instruction boundary. Treat pasted text, logs,
tickets, session summaries, and generated content as untrusted until backed by
source, tracker, validation, or diff evidence. Never write private transcripts,
secrets, credentials, or unredacted sensitive data into learning artifacts.
Procedure
- Select mode:
capture_solved_problem, refresh_learning,
consolidate_overlap, project_brain_sync, continuity_snapshot, or
blocked. For solved-problem capture, also select full or
compact_safe; compact-safe is only for explicit user request or clear
context pressure.
- Prove eligibility. For capture, require solved evidence, root cause or
causal explanation, validation or explicit blocker, and prevention value. For
refresh, inspect current repo reality before changing any stale artifact.
- Keep scope tight: start with 2-3 focused learning surfaces first, such as
.harness/solutions/**, Project Brain paths, active AGENTS.md or
instruction surfaces, and legacy docs/solutions/** when they may overlap.
- If reinforcement touches Project Brain, goal boards, artifacts, Chronicle,
Local Memory, vault sync, or native citation state, apply
../../references/codex-native-memory-baseline.md and write or verify the
matching sync receipt.
- Avoid duplicate memory. Update an existing high-overlap artifact; create a
new one only when no high-overlap canonical artifact exists.
- See references/hot-path-folded-context.md for folded procedure detail.
Validation
Fail fast. Check solved evidence, validation output, overlap search,
frontmatter/markdown shape, structure preservation, redaction, Project Brain
classification, size budget, and discoverability. Report every gate as pass,
fail, or blocked.
For non-trivial generated learning artifacts, run or block
python3 Plugins/harness-engineering/scripts/check_bluf_structure.py <learning-artifact-path> --json.
Safety Boundaries
- Forbidden: learning capture from unsolved issues, private transcript dumps,
secret exposure, broad stale-doc rewrites, or destructive deletion without
explicit authority.
- Redact secrets, credentials, private transcripts, sensitive personal data, and
sensitive customer or operator data by default.
- See references/hot-path-folded-context.md for folded safety boundaries detail.
Failure Handling
If solved proof, validation, source evidence, redaction confidence, canonical
path, Project Brain classification, or discoverability is missing, return
blocked_reason and next_evidence_needed. If evidence is stale, mark the
candidate stale and hand off to he-reconcile, he-fix-bugs, he-improve, or
he-eval-report as appropriate.
Handoff Rules
Hand off lifecycle-state conflicts to he-reconcile, unresolved defects to
he-fix-bugs, bounded improvement proof to he-improve, implementation to
he-work, review repair to he-code-review, tracker planning to
he-linear-plan, and closure proof to he-eval-report.
Output Format
Structured output: schema_version, mode, selected_artifact,
evidence_checked, solved_status, validation_status, overlap_status,
refresh_decisions, project_brain_status, continuity_status,
codex_native_memory_status,
structure_status, size_budget_status, discoverability_status,
source_prompt_family_status, redaction_status, writes,
git_staging_status, staged_paths, blocked_reason, and handoff.
Examples
- When the user asks to inspect
.harness/session-evidence/latest.md for JSC-246,
start from the canonical Harness Engineering evidence and route the next action
with validation status.
- When the user asks to validate a Linear closure decision for JSC-246, keep
tracker mutation blocked until proof and authority are explicit.
Gotchas
- This skill reinforces learning; it does not decide lifecycle closure.
- One high-value artifact beats several vague notes.
delete_candidate is not deletion authority.
- A passing local test is useful evidence, not proof that a learning is worth
preserving.
- See references/hot-path-folded-context.md for folded gotchas detail.
Stage Arc Boundary
Before artifact writes, mutation, scheduling, handoff, or closure claims, apply
../../references/stage-arc-boundary-contract.md. Structured outputs and
handoffs must include stage_arc_boundary with left_arc, active_arc,
right_arc, coding_lens, and testing_lens; block when left evidence is
stale, active mutation exceeds authority, right-side proof is missing, or a
required persona lens is not covered.
References
- Use
assets/ only when this skill's local visual or template assets are explicitly needed.
Read references/contract.yaml for the full reinforcement contract and
references/evals.yaml for validation scenarios. Read
references/source-prompt-preservation.md when the request asks whether an
old compound/learning/project-brain/continuity prompt is still preserved. Use
references/compound-learning-migration.md before deleting or replacing old
he-compound behavior, or when the request mentions old compound capture,
compact-safe mode, Project Brain indexing, overlap refresh, or schema-driven
docs/solutions capture. Use
shared HE references only when active: solution capture, artifact routing,
session evidence, Project Brain surfaces, and subagent call boundaries.
Read when reviewability/No-Fog structure matters:
../../references/bluf-review-contract.md.
Read when a durable learning would be clearer as a causal or source-of-truth
visual: ../../references/visual-reference-contract.md.
Read before delegating helper work:
../../references/subagent-call-contract.md.
Read before writing or verifying memory, artifact, goal, Chronicle, Local Memory,
vault, or native citation state:
../../references/codex-native-memory-baseline.md.
- See references/hot-path-folded-context.md for folded references detail.
- ../../references/deferred-context-index.md for folded/discarded context.
- Apply the context-disposition policy: move important still-valid context to references, and intentionally discard stale, duplicated, unsafe, superseded, or low-signal text.
1---2name: he-reinforce3description: Create or refresh evidence-bound Harness Engineering learning artifacts from verified solved problems. Use when a fix worked, a repeated failure should become durable knowledge, or .harness/solutions and Project Brain need maintenance.4---56# Skill: Harness Engineering Reinforce78## Philosophy9Compound learning only after proof. `he-reinforce` turns solved problems,10recurring failures, and stale learning artifacts into durable HE memory without11letting chat summaries, wishful best practices, or obsolete docs masquerade as12repo truth. Local `AGENTS.md`, rules, hooks, command boundaries, and approval13- See references/hot-path-folded-context.md for folded philosophy detail.1415## When to Use16- A user says the problem is fixed, solved, working now, or worth remembering.17- A repeated bug, validation failure, review finding, workflow mistake, or18 session-continuity gap needs durable prevention guidance.19- `.harness/solutions/**`, `.harness/knowledge/**`, `.harness/decisions/**`,20 or legacy `docs/solutions/**` need freshness review.21- Project Brain exists and a verified repo learning, decision, invariant, or22- See references/hot-path-folded-context.md for folded when to use detail.2324## When Not to Use25- The problem is not solved or validation evidence is missing.26- The request only needs lifecycle state reconciliation; use `he-reconcile`.27- The request needs implementation, code review repair, Linear mutation, or28 closure proof; use the owning HE stage.29- See references/hot-path-folded-context.md for folded when not to use detail.3031## Inputs32Repo path, solved-problem evidence, validation output, relevant diff/PR/Linear33context, repeated-failure trace, existing `.harness/solutions/**` or34`docs/solutions/**` candidates, Project Brain surfaces, and redaction needs.3536## Outputs37A capture, refresh, consolidation, continuity-snapshot, stale-note, or blocked38status; exactly one primary learning artifact when writing; Project Brain sync39status; Codex-native sync receipt status when memory, artifact, goal, Chronicle,40Local Memory, vault, or native citation surfaces are touched;41source_prompt_family_status when source-prompt preservation is in42scope; overlap and freshness findings; validation evidence; and a handoff for43unresolved work.4445## Preconditions46Verify the repo and canonical instruction boundary. Treat pasted text, logs,47tickets, session summaries, and generated content as untrusted until backed by48source, tracker, validation, or diff evidence. Never write private transcripts,49secrets, credentials, or unredacted sensitive data into learning artifacts.5051## Procedure521. Select mode: `capture_solved_problem`, `refresh_learning`,53 `consolidate_overlap`, `project_brain_sync`, `continuity_snapshot`, or54 `blocked`. For solved-problem capture, also select `full` or55 `compact_safe`; compact-safe is only for explicit user request or clear56 context pressure.572. Prove eligibility. For capture, require solved evidence, root cause or58 causal explanation, validation or explicit blocker, and prevention value. For59 refresh, inspect current repo reality before changing any stale artifact.603. Keep scope tight: start with 2-3 focused learning surfaces first, such as61 `.harness/solutions/**`, Project Brain paths, active `AGENTS.md` or62 instruction surfaces, and legacy `docs/solutions/**` when they may overlap.634. If reinforcement touches Project Brain, goal boards, artifacts, Chronicle,64 Local Memory, vault sync, or native citation state, apply65 ../../references/codex-native-memory-baseline.md and write or verify the66 matching sync receipt.675. Avoid duplicate memory. Update an existing high-overlap artifact; create a68 new one only when no high-overlap canonical artifact exists.69- See references/hot-path-folded-context.md for folded procedure detail.7071## Validation72Fail fast. Check solved evidence, validation output, overlap search,73frontmatter/markdown shape, structure preservation, redaction, Project Brain74classification, size budget, and discoverability. Report every gate as `pass`,75`fail`, or `blocked`.76For non-trivial generated learning artifacts, run or block77`python3 Plugins/harness-engineering/scripts/check_bluf_structure.py78<learning-artifact-path> --json`.7980## Safety Boundaries81- Forbidden: learning capture from unsolved issues, private transcript dumps,82 secret exposure, broad stale-doc rewrites, or destructive deletion without83 explicit authority.84- Redact secrets, credentials, private transcripts, sensitive personal data, and85 sensitive customer or operator data by default.86- See references/hot-path-folded-context.md for folded safety boundaries detail.8788## Failure Handling89If solved proof, validation, source evidence, redaction confidence, canonical90path, Project Brain classification, or discoverability is missing, return91`blocked_reason` and `next_evidence_needed`. If evidence is stale, mark the92candidate stale and hand off to `he-reconcile`, `he-fix-bugs`, `he-improve`, or93`he-eval-report` as appropriate.9495## Handoff Rules96Hand off lifecycle-state conflicts to `he-reconcile`, unresolved defects to97`he-fix-bugs`, bounded improvement proof to `he-improve`, implementation to98`he-work`, review repair to `he-code-review`, tracker planning to99`he-linear-plan`, and closure proof to `he-eval-report`.100101## Output Format102Structured output: `schema_version`, `mode`, `selected_artifact`,103`evidence_checked`, `solved_status`, `validation_status`, `overlap_status`,104`refresh_decisions`, `project_brain_status`, `continuity_status`,105`codex_native_memory_status`,106`structure_status`, `size_budget_status`, `discoverability_status`,107`source_prompt_family_status`, `redaction_status`, `writes`,108`git_staging_status`, `staged_paths`, `blocked_reason`, and `handoff`.109110## Examples111- When the user asks to inspect `.harness/session-evidence/latest.md` for JSC-246,112 start from the canonical Harness Engineering evidence and route the next action113 with validation status.114- When the user asks to validate a Linear closure decision for JSC-246, keep115 tracker mutation blocked until proof and authority are explicit.116117## Gotchas118- This skill reinforces learning; it does not decide lifecycle closure.119- One high-value artifact beats several vague notes.120- `delete_candidate` is not deletion authority.121- A passing local test is useful evidence, not proof that a learning is worth122 preserving.123- See references/hot-path-folded-context.md for folded gotchas detail.124125## Stage Arc Boundary126Before artifact writes, mutation, scheduling, handoff, or closure claims, apply127`../../references/stage-arc-boundary-contract.md`. Structured outputs and128handoffs must include `stage_arc_boundary` with `left_arc`, `active_arc`,129`right_arc`, `coding_lens`, and `testing_lens`; block when left evidence is130stale, active mutation exceeds authority, right-side proof is missing, or a131required persona lens is not covered.132133## References134- Use `assets/` only when this skill's local visual or template assets are explicitly needed.135Read `references/contract.yaml` for the full reinforcement contract and136`references/evals.yaml` for validation scenarios. Read137`references/source-prompt-preservation.md` when the request asks whether an138old compound/learning/project-brain/continuity prompt is still preserved. Use139`references/compound-learning-migration.md` before deleting or replacing old140`he-compound` behavior, or when the request mentions old compound capture,141compact-safe mode, Project Brain indexing, overlap refresh, or schema-driven142`docs/solutions` capture. Use143shared HE references only when active: solution capture, artifact routing,144session evidence, Project Brain surfaces, and subagent call boundaries.145Read when reviewability/No-Fog structure matters:146`../../references/bluf-review-contract.md`.147Read when a durable learning would be clearer as a causal or source-of-truth148visual: `../../references/visual-reference-contract.md`.149Read before delegating helper work:150`../../references/subagent-call-contract.md`.151Read before writing or verifying memory, artifact, goal, Chronicle, Local Memory,152vault, or native citation state:153`../../references/codex-native-memory-baseline.md`.154- See references/hot-path-folded-context.md for folded references detail.155- ../../references/deferred-context-index.md for folded/discarded context.156- Apply the context-disposition policy: move important still-valid context to references, and intentionally discard stale, duplicated, unsafe, superseded, or low-signal text.