User stories

MechaHarness acceptance paths are told as user stories: short scenes about what a product needs to do, written for readers who understand features but not code. Each story has a human narrative, an implementation section that traces library code fulfilling the feature, and a validation section that describes how the story is tested. Related stories are grouped into suites (suite.yaml + stages/*.yaml) with shared vars/setup and parallel or sequential execution. Stage order is lexicographic stage filenames (010_…, 020_…). Story and suite text live only in fixtures under tests/fixtures/models/. This guide is generated from those fixtures.

See the Cursor skill .cursor/skills/user-stories/SKILL.md when adding features: edit stage YAML, regenerate this page, and keep twin copies of the same story id identical.

Personas

Nubble — operations / DevOps

Nubble keeps production and CI reliable. He cares about the right inference profile being loaded, cost and progress signals he can forward to billing or monitoring, and metrics that explain whether parallel work actually helped.

Fangore — application developer

Fangore builds product applications on MechaHarness. He cares about deny-by-default permissions, product rules that models cannot override, durable local plans that survive crashes, loops that stop when they are not making progress, and context that never silently drops mandatory requirements.

Taloneth — ML engineer

Taloneth owns judge contracts, adapter drift checks, and harness experiments. He cares about offline fixture batches, versioned recorded replies, honest shadow comparisons, validator qualification before promotion, research that rejects failing candidates, and decision exports that do not leak future outcomes.

Running the suite

Default CI runs every story offline (static fixture + cassettes) — no skips. ./run_checks.sh runs unit pytest without the story suite modules, then runs those suites once under scripts/story_coverage.py (so stages are not paid for twice).

# CI / offline — all stories, zero skips
pytest -q tests/stories

# Full suite (unit + stories)
pytest -q

# Live — every model-using story against real reason + judge hosts
# (HTTP twins + static infer/judge walks; softens cassette-exact token counts)
MECHA_STORY_BACKEND=live   MECHA_BASE_URL=http://127.0.0.1:8000/v1   MECHA_MODEL=qwen3-30b-thinking   MECHA_JUDGE_BASE_URL=http://127.0.0.1:8009   MECHA_JUDGE_MODEL=laya   MECHA_MAX_TOKENS=1024   pytest -q tests/stories

# Live OpenAI-compat only
MECHA_STORY_BACKEND=live MECHA_STORY_MODEL=openai_compat/qwen3-30b-thinking \
  MECHA_BASE_URL=http://127.0.0.1:8000/v1 pytest -q tests/stories -k nubble_run_cost

# Live System One only
MECHA_STORY_BACKEND=live MECHA_STORY_MODEL=systemone/laya \
  MECHA_JUDGE_BASE_URL=http://127.0.0.1:8009 pytest -q tests/stories -k refund_verdict

# Shorthand aliases (still dual-mode stories, not separate skipif modules)
MECHA_LIVE_OPENAI=1 MECHA_MODEL=gpt-6-luna pytest -q tests/stories -k nubble_run_cost
MECHA_LIVE_OPENAI_COMPAT=1 MECHA_BASE_URL=… pytest -q tests/stories -k nubble_run_cost
MECHA_LIVE_QWEN=1 MECHA_BASE_URL=… pytest -q tests/stories -k nubble_run_cost
MECHA_LIVE_JUDGE=1 pytest -q tests/stories -k 'refund_verdict or systemone_cassette'

MECHA_STORY_BACKEND

Behavior

static (default)

In-process fixture + HTTP cassettes

live

Real servers; behavioral expects hard, cassette-exact token counts soft

Live collects HTTP cassette twins and static stories that call infer / judge / judge_route (not pure policy, recipe-shape, tool_loop, or Anthropic-only walks). Flip MECHA_STORY_BACKEND=live with reason + judge URLs to prove cassettes are not fantasy.

Models

Path

Role

static/fixture/v1

Generic in-process model; model-agnostic paths

openai_compat/<served-id>/v1

Captured OpenAI-compat chat

systemone/<served-id>/v1

Captured System One judge wire

Suites

Suites live under static/fixture/v1/suites/<suite_id>/. Authored meta is suite.yaml (title, persona, execution mode, workspace, setup). Stages are stages/<nn>_<slug>.yaml (prose + runnable walk in one file). Generated suite.json mirrors discovered stages for the harness. Parallel suites run stages as isolated cases (name order is for stable CI only). Sequential suites share a workspace and stop on the first failure; stage order is the lexicographic stage filename. Pytest: test_user_story_suite; HTTP twins still run via test_user_story.

Sequential run ids: each sequential suite run creates a durable id under .mechaharness/suite_runs/<run_id>/ (workspace + manifest.json + RUN_ID.txt). The id is printed in a banner (pytest -s) and as a warning; LATEST / <suite_id>.latest point at it. Resume or rerun from a stage without redoing priors:

# Fresh sequential run (note the printed run_id)
pytest -s -q tests/stories/test_user_story_suites.py -k calc_cli

# Continue / rerun from a stage stem using the shared workspace
MECHA_SUITE_RUN_ID=$(cat .mechaharness/suite_runs/calc_cli.latest) \
  MECHA_SUITE_FROM=030_fangore_calc_mul_div \
  pytest -s -q tests/stories/test_user_story_suites.py -k calc_cli

MECHA_SUITE_FROM accepts story/scenario, a unique scenario stem, or a 0-based index. MECHA_SUITE_RUNS_DIR overrides the runs root.

Sequential coding-delegate arcs (shared workspace, live Completer, contract verify): calc_cli (single-file expression CLI), counter_pkg (package + pytest + CLI), and delegate_pkg (list-mode, thorough guidance, red-green, refactor). Live Completer is the gate before trusting static stubs. MCP reuses the same graph — see docs/guides/coding-delegate-suites.md.

After editing stage YAML or suite.yaml / personas.json:

python -m tests.stories.commands sync-suites
python -m tests.stories.commands sync-guide
python -m tests.stories.commands sync-suites --check
python -m tests.stories.commands sync-guide --check

calc_cli — Grow a CLI math expression calculator

Persona fangore; execution sequential (ordered); 6 stage(s).

Stories: fangore_calc_add_sub, fangore_calc_exponent, fangore_calc_functions, fangore_calc_grouping, fangore_calc_mul_div, fangore_calc_parse_number

counter_pkg — Grow a Counter package with tests and CLI

Persona fangore; execution sequential (ordered); 4 stage(s).

Stories: fangore_counter_bootstrap, fangore_counter_cli, fangore_counter_mutate, fangore_counter_persist

delegate_pkg — Delegate coding arcs on a shared Widget package

Persona fangore; execution sequential (ordered); 6 stage(s).

Stories: fangore_delegate_guidance_thorough, fangore_delegate_list_bootstrap, fangore_delegate_mcp_repair, fangore_delegate_red_green, fangore_delegate_refactor, fangore_delegate_verified_noop

fangore_access_authority — Grants, capability envelopes, and authority gates

Persona fangore; execution parallel; 15 stage(s).

Stories: fangore_admit_authority, fangore_capability_envelope_narrow, fangore_compound_grants__grant_gate_allowed, fangore_compound_grants__grant_gate_denied, fangore_human_review_pending, fangore_insp_auth_epoch_resume, fangore_insp_authority_gate, fangore_insp_cross_task_isolation, fangore_insp_denial_equivalence, fangore_insp_evolution_ownership_split, fangore_insp_execution_token, fangore_insp_isolation_io, fangore_insp_risk_autonomy, fangore_insp_soft_vs_hard, fangore_insp_state_governance

fangore_bag_inference_continuity — Walk bag continuity, ContextSpec inference, snapshot inspect, and judge

Persona fangore; execution parallel; 8 stage(s).

Stories: fangore_bag_checkpoint_persist, fangore_bag_context_spec_continuity, fangore_bag_discovery_hard_nodes, fangore_bag_judge_no_tools, fangore_bag_snapshot_inspect, fangore_bag_subgraph_bindings, fangore_inference_frame_return, fangore_recursive_return

fangore_change_decomposition — ChangePlan decomposition and gastronomic plan tiling

Persona fangore; execution parallel; 2 stage(s).

Stories: fangore_change_decomposition_ordered, fangore_change_decomposition_shape

fangore_change_execution — ChangeExecution scoped apply and gastronomic execute tiling

Persona fangore; execution parallel; 3 stage(s).

Stories: fangore_change_execution_apply, fangore_change_execution_propose, fangore_change_execution_shape

fangore_change_verification — ChangeVerification host-observed checks and gastronomic verify tiling

Persona fangore; execution parallel; 2 stage(s).

Stories: fangore_change_verification_host, fangore_change_verification_shape

fangore_context_memory — Context layers, compaction, and derived memory

Persona fangore; execution parallel; 8 stage(s).

Stories: fangore_context_compiler_deficit, fangore_context_observation_chain, fangore_ctx_attr_evidence_survival, fangore_ctx_attr_structured_tool_delivery, fangore_derived_memory, fangore_insp_context_compaction, fangore_insp_context_layers, fangore_insp_context_provider

fangore_contract_extraction — ChangeContract extraction and gastronomic product tiling

Persona fangore; execution parallel; 3 stage(s).

Stories: fangore_contract_extraction_found, fangore_contract_extraction_shape, fangore_gastronomic_guided_development_shape

fangore_decision_plane — Decision plane policy, projection, and audited infer

Persona fangore; execution parallel; 15 stage(s).

Stories: fangore_audited_infer_accept, fangore_decision_plane_model_policy, fangore_decision_plane_policy__accept_billing, fangore_decision_plane_policy__invalid_team, fangore_decision_plane_policy__low_confidence, fangore_decision_plane_projection, fangore_decision_plane_recipe, fangore_decision_plane_shadow, fangore_decision_plane_telemetry, fangore_decision_surface_reject, fangore_insp_anchor_evidence, fangore_insp_decision_conflict_checkpoint__cleared_at_c, fangore_insp_decision_conflict_checkpoint__cycle_never_cleared, fangore_insp_decision_conflict_checkpoint__no_conflicts, fangore_refund_verdict

fangore_development_acceptance — DevelopmentAcceptance outcome gate and gastronomic accept tiling

Persona fangore; execution parallel; 6 stage(s).

Stories: fangore_development_acceptance_completed, fangore_development_acceptance_failed, fangore_development_acceptance_guidance, fangore_development_acceptance_judge_advisory, fangore_development_acceptance_shape, fangore_development_acceptance_validate_errors

fangore_durable_ioc — Durable IoC, guidance yield, and local plan resume

Persona fangore; execution parallel; 10 stage(s).

Stories: fangore_insp_approval_interrupt, fangore_insp_driver_session_resume, fangore_insp_durable_graph_generator, fangore_insp_durable_resume, fangore_insp_graph_guidance_yield, fangore_insp_guidance_controller_auth, fangore_insp_guidance_resume_idempotent, fangore_insp_guidance_survive_restart, fangore_insp_sparse_advisor, fangore_local_plan_resume

fangore_failure_diagnosis — FailureDiagnosis classification and gastronomic diagnose tiling

Persona fangore; execution parallel; 12 stage(s).

Stories: fangore_failure_diagnosis_classify, fangore_failure_diagnosis_green, fangore_failure_diagnosis_incomplete, fangore_failure_diagnosis_regression, fangore_failure_diagnosis_repeat, fangore_failure_diagnosis_runtime, fangore_failure_diagnosis_scope, fangore_failure_diagnosis_shape, fangore_failure_diagnosis_syntax, fangore_failure_diagnosis_tool_protocol, fangore_failure_diagnosis_unknown, fangore_failure_diagnosis_validate_errors

fangore_gastronomic_calc — Gastronomic Completer-propose calc growth (arm B control)

Persona fangore; execution sequential (ordered); 6 stage(s).

Stories: fangore_gastronomic_calc_add_sub, fangore_gastronomic_calc_exponent, fangore_gastronomic_calc_functions, fangore_gastronomic_calc_grouping, fangore_gastronomic_calc_mul_div, fangore_gastronomic_calc_parse_number

fangore_gastronomic_comparison — Gastronomic vs guided_coding comparison trial records

Persona fangore; execution parallel; 5 stage(s).

Stories: fangore_gastronomic_comparison_live_status, fangore_gastronomic_comparison_shape, fangore_gastronomic_comparison_summary, fangore_gastronomic_comparison_timing_metrics, fangore_gastronomic_comparison_trial

fangore_gastronomic_offline_e2e — Offline gastronomic late-stage e2e to DevelopmentOutcome and trial

Persona fangore; execution parallel; 4 stage(s).

Stories: fangore_delegate_matched_trials, fangore_delegate_trial_cost, fangore_gastronomic_offline_e2e_completed, fangore_gastronomic_offline_e2e_failed

fangore_graph_executor — Graph executor, soft points, traversal, and budgets

Persona fangore; execution parallel; 20 stage(s).

Stories: fangore_convergence_ceiling, fangore_graph_executor, fangore_graph_linkage_preflight, fangore_graph_one_step, fangore_graph_soft_enter, fangore_graph_template_soft_points, fangore_graph_until_before, fangore_insp_budget_subgraph_rollup, fangore_insp_dynamic_subgraph, fangore_insp_exit_clean_state, fangore_insp_failure_attribution, fangore_insp_graph_budget, fangore_insp_graph_transitions, fangore_insp_inference_capture_preflight, fangore_insp_linkage_preflight, fangore_insp_loop_health, fangore_insp_targeted_rollback, fangore_insp_verification_gate, fangore_node_components, fangore_traversal_contract

fangore_guided_coding — Guided coding recipe and instruction todo plan

Persona fangore; execution parallel; 26 stage(s).

Stories: fangore_coding_ci_diagnose, fangore_coding_ci_repair, fangore_coding_denied_effects, fangore_coding_exhausted_repair, fangore_coding_git_inspect, fangore_coding_git_open_pr, fangore_coding_interleaved_restore, fangore_coding_missing_provider, fangore_coding_no_check, fangore_coding_refused_diff, fangore_coding_review_patch, fangore_coding_run_scoped_recovery, fangore_coding_static_checks__mypy, fangore_coding_static_checks__ruff, fangore_coding_task_specific_repair, fangore_coding_verify_boundary, fangore_coding_write_guard, fangore_guided_coding_recipe__helper_run_python, fangore_guided_coding_recipe__session, fangore_insp_instruction_gotchas, fangore_insp_instruction_scope, fangore_instruction_todo_plan__conflict_list_refinement, fangore_instruction_todo_plan__explicit_list_mode, fangore_instruction_todo_plan__numbered_list, fangore_instruction_todo_plan__oneshot_from_goal, fangore_instruction_todo_plan__session

fangore_host_kit — Host kit, completer flavors, and harness families

Persona fangore; execution parallel; 9 stage(s).

Stories: fangore_backend_describe_recipe, fangore_completer_flavors, fangore_config_access_policy, fangore_harness_family_react, fangore_harness_run_recipe, fangore_harness_tool_loop_graph, fangore_host_kit_event_tap, fangore_host_kit_submit_once__dispatch_durable_ok, fangore_host_kit_submit_once__resume_uncertain_with_handle

fangore_jev — Judge evaluation vocabulary scenarios

Persona fangore; execution parallel; 19 stage(s).

Stories: fangore_jev_action_safety__delete_low_risk_no_grant, fangore_jev_action_safety__read_high_risk_with_grant, fangore_jev_action_safety__read_low_risk_with_grant, fangore_jev_citation_growth_mismatch, fangore_jev_citation_matching_claim, fangore_jev_citation_missing_source, fangore_jev_citation_uncertain_support, fangore_jev_context_budget_pack, fangore_jev_context_exclude_injection, fangore_jev_context_filter_stale_untrusted, fangore_jev_context_missing_scores_fallback, fangore_jev_req_review_approve_missing_crash_tests, fangore_jev_req_review_covered_with_tests, fangore_jev_req_review_gap_found, fangore_jev_req_review_template_shape, fangore_jev_task_route_complex_frontier, fangore_jev_task_route_invalid, fangore_jev_task_route_low_confidence, fangore_jev_task_route_simple_local

fangore_job_lanes — Job lane exposure, handoff, and deny rules

Persona fangore; execution parallel; 6 stage(s).

Stories: fangore_job_lane_cross_deny, fangore_job_lane_handoff_oneshot, fangore_job_lane_key_expose_artifacts, fangore_job_lane_meta_allowlist, fangore_job_lane_observe_before, fangore_job_lane_same_lane_lineage

fangore_lifecycle_ops — Lifecycle extensions, wake, WIP, and tool effects

Persona fangore; execution parallel; 13 stage(s).

Stories: fangore_insp_alert_escalation_rules, fangore_insp_effect_revalidation, fangore_insp_handoff_record, fangore_insp_lifecycle_block, fangore_insp_lifecycle_graph_observe, fangore_insp_lifecycle_observe, fangore_insp_lifecycle_replace, fangore_insp_lifecycle_rewrite, fangore_insp_operation_compensation, fangore_insp_tool_effect_classes, fangore_insp_tool_result_freshness, fangore_insp_wake_reresolve, fangore_insp_wip_backpressure

fangore_recipe_registry — Recipe registry lineage, ports, and soft evolution

Persona fangore; execution parallel; 6 stage(s).

Stories: fangore_insp_recipe_lineage_promote, fangore_insp_recipe_port_search, fangore_insp_recipe_version_pointer, fangore_insp_registry_only_compose, fangore_insp_soft_evolution_allowlist, fangore_insp_template_incubation

fangore_recipes_tiling — Agentic Recipe tiling and repair loops

Persona fangore; execution parallel; 12 stage(s).

Stories: fangore_bounded_repair_loop, fangore_bounded_retry_recipe, fangore_conversational_tool_loop, fangore_environment_repair_recipe, fangore_insp_fan_in_policy, fangore_insp_independent_review, fangore_insp_initialize_preflight, fangore_insp_produce_critique_refine, fangore_insp_stop_contract, fangore_recipe_as_tool, fangore_recipe_namespace_tile, fangore_verify_repair_recipe

fangore_strategy_revision — StrategyRevision gate and gastronomic revise tiling

Persona fangore; execution parallel; 7 stage(s).

Stories: fangore_strategy_revision_accept, fangore_strategy_revision_change, fangore_strategy_revision_retry, fangore_strategy_revision_shape, fangore_strategy_revision_stop, fangore_strategy_revision_validate_errors, fangore_strategy_revision_yield

fangore_tdr_crash — Transactionally durable crash recovery

Persona fangore; execution parallel; 6 stage(s).

Stories: fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_final_commit, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_reduce_before_checkpoint, fangore_tdr_crash_before_intent

fangore_workspace_discovery — Read-only workspace_discovery Agentic Recipe outcomes

Persona fangore; execution parallel; 9 stage(s).

Stories: fangore_workspace_discovery_checkpoint, fangore_workspace_discovery_continuity, fangore_workspace_discovery_failed, fangore_workspace_discovery_found, fangore_workspace_discovery_inconclusive, fangore_workspace_discovery_negative_control, fangore_workspace_discovery_not_found, fangore_workspace_discovery_recipe_shape, fangore_workspace_discovery_snapshot_tools

nubble_observability — Cost, trace, and audit observability

Persona nubble; execution parallel; 13 stage(s).

Stories: nubble_anthropic_cassette_infer, nubble_graph_event_correlators, nubble_insp_coordination_cost, nubble_insp_efficiency_scorecard, nubble_insp_guidance_cost_budget, nubble_insp_model_input_replay, nubble_insp_recipe_audit_dimensions, nubble_insp_resume_cost, nubble_insp_review_audit_reconstruct, nubble_insp_trace_envelope, nubble_insp_trace_reconciliation, nubble_run_cost_events__event_timestamps, nubble_run_cost_events__event_types

nubble_routing_topology — Model routing, lanes, and environment topology

Persona nubble; execution parallel; 9 stage(s).

Stories: nubble_insp_environment_delta, nubble_insp_environment_linkage, nubble_insp_model_routing, nubble_insp_rollout_graph, nubble_insp_workspace_isolation, nubble_lane_load_hint, nubble_model_affinity, nubble_repo_topology, nubble_topology_efficiency

taloneth_decision_eval — Offline decision eval, shadow, and exports

Persona taloneth; execution parallel; 7 stage(s).

Stories: taloneth_decision_plane_shadow_compare__candidate_unavailable, taloneth_decision_plane_shadow_compare__disagree, taloneth_fixture_judge_batch, taloneth_offline_decision_export, taloneth_policy_replay, taloneth_shadow_decision_backends, taloneth_validator_qualification

taloneth_harness_research — Harness research, ablation, and promotion gates

Persona taloneth; execution parallel; 29 stage(s).

Stories: taloneth_atk_research_reject, taloneth_cache_layout_experiment, taloneth_insp_component_ablation, taloneth_insp_correction_spec_debt, taloneth_insp_cross_harness_failure, taloneth_insp_eval_claims, taloneth_insp_eval_matrix, taloneth_insp_evaluation_outcome, taloneth_insp_evaluator_compose, taloneth_insp_experiment_dimensions, taloneth_insp_experiment_lineage, taloneth_insp_exposure_discriminative, taloneth_insp_gated_objective, taloneth_insp_harness_fingerprint, taloneth_insp_harness_health, taloneth_insp_harness_hypothesis, taloneth_insp_learning_export, taloneth_insp_objective_policy, taloneth_insp_recipe_evolution_loop, taloneth_insp_recipe_final_test_gate, taloneth_insp_rule_promotion, taloneth_insp_run_parity, taloneth_insp_safety_eval_recipes, taloneth_insp_scaffolding_retire, taloneth_insp_scripted_driver_replay, taloneth_insp_trial_reliability, taloneth_layered_eval, taloneth_request_prefix, taloneth_wire_request

Nubble’s stories

nubble_anthropic_cassette_infer — Infer through the Anthropic strategy with a cassette

Nubble proves the Anthropic Messages backend is a first-class reason lane without a live model. He starts the CLI host with family pass-through and backend anthropic (cassette from response.json), uses the default one-shot infer universe, runs infer with a short prompt, and verifies completion by matching the cassette text plus inference/cost events and token totals from the recorded usage.

Implementation

UserStoryScenario.environment.backend=anthropic builds AnthropicStrategy + MemoryAsyncHttpClient against response.json (/v1/messages). cli:infer / CliInferRunner emits core:inference with usage and priced core:cost.

Validation

Harness user_story stage 010_nubble_anthropic_cassette_infer.yaml: environment backend anthropic, infer step, complete expects for event_types, text, tokens, cost_units.

nubble_ci_static_smoke — Prove the HTTP adapter in CI without a live model host

The local inference host is offline, but a pull request still needs green CI. Nubble wants the OpenAI-compatible path proven from a cassette — a recorded reply replayed through the real HTTP client — so merges do not depend on LAN reachability.

Implementation

OpenAICompatStrategy implements Chat Completions HTTP for reason-lane backends. CLI universe cli:infer via CliInstrumentor / CliInferRunner runs that strategy so cassette replay exercises the real client path and the same EventLog baseline as other one-shot runs.

Covers: offline CI / OpenAI-compat smoke.

Validation

Harness cli scenario cassette_smoke.yaml: nonempty assistant text, positive cost units, exact baseline EventLog types. Cassette response.json. Live: MECHA_STORY_BACKEND=live.

Footnotes

  1. OpenAI Chat Completions — Wire models for reason-lane HTTP

nubble_graph_event_correlators — Join every graph event to its graph, recipe, and authority

Nubble starts the CLI host with family pass_through and backend mock. Nubble loads graph events into a warehouse and cannot afford to open checkpoints to learn which graph, recipe, or authorization epoch produced a row. A multi-node run with a nested subgraph must stamp every event with the same graph id, recipe stamp, and epoch, and nested runs must point at their parent run so a flat table can rebuild per-node attempts[1].

Implementation

Graph lifecycle emits carry warehouse correlators (graph_id, recipe_id, authorization_epoch, nest parent_run_id / nest_depth). project_node_attempt_rows projects attempt rows. CliInstrumentor verb graph_event_correlators.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_insp_coordination_cost — Report parallel coordination cost on fan-out

Nubble starts the CLI host with family pass_through and backend mock. Nubble compares wall-clock critical path, duplicated context, and fan-in review cost so parallelism is measured rather than assumed beneficial. Accepts WalkingLabs L14 and P08 guidance[2][3].

Implementation

CoordinationCostMetrics and summarize_coordination_cost in mechaharness.coordination_cost report fan-out orchestration cost, including graphs tiled from the fan_out_aggregate Agentic Recipe.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_efficiency_scorecard — Keep multidimensional efficiency dimensions observable

Nubble starts the CLI host with family pass_through and backend mock. Nubble needs tool calls, tokens, latency, and coordination cost kept as separate efficiency dimensions rather than a single opaque proxy. Accepts FineEnvs tool-call efficiency observations[4].

Implementation

EfficiencyScorecard and build_efficiency_scorecard in mechaharness.efficiency_scorecard compose topology/cost/coordination/resume dimensions without silent collapse.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_environment_delta — Project environment context as versioned deltas

Nubble starts the CLI host with family pass_through and backend mock. Nubble sends environment deltas instead of repeating full snapshots while still reconstructing deterministic state. Accepts WalkingLabs Codex guidance[5].

Implementation

EnvironmentSnapshot, EnvironmentDelta, emit_delta, and apply_deltas in mechaharness.environment_delta.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_environment_linkage — Surface environment incompatibility as linkage failure

Nubble starts the CLI host with family pass_through and backend mock. Missing environment capability must become a structured pre-exec failure, not a mysterious mid-run error. Accepts inspiration requirement 16[6].

Implementation

DefaultLinkageResolver environment grant check. CliInstrumentor verb environment_linkage_fail.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_insp_guidance_cost_budget — Count local steps and guidance frequency on generator runs

Nubble starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller ops, store memory). Operators need to see how often a frontier driver was asked for advice versus how much local work ran, so they can optimize verified useful work per intervention. Tracks R-IOC-BUDGET. He walks product steps (start, answer) and verifies completion from the structured observation expects on this scenario. [7]

Implementation

GeneratorCostCounters on GeneratorRunRecord exposed via inspect().cost (local_steps, guidance_yields, resumes, rejected_resumes).

Validation

Harness user_story stage 050_nubble_insp_guidance_cost_budget.yaml: environment + graph + steps + complete expects.

Footnotes

nubble_insp_model_input_replay — Replay model-visible inputs from a recorded manifest

Nubble starts the CLI host with family pass_through and backend mock. Nubble needs every model call to leave a reconstructible record of what the model saw — messages, tools, and instructions — so offline replay does not depend on hidden memory. Accepts WalkingLabs DeepSeek and P06 observability guidance. He walks product steps (replay_model_input) and verifies completion from the structured observation expects on this scenario. [8][9]

Implementation

ModelInputManifest in mechaharness.model_input_manifest records messages, tool definitions, instructions, and content hashes; reconstruct_messages rebuilds the call without in-memory state. CliInstrumentor verb replay_model_input exposes this diagnostic. Decision records may reference the manifest via context_manifest_ref.

Validation

Harness user_story stage 060_nubble_insp_model_input_replay.yaml: environment + graph + steps + complete expects.

Footnotes

nubble_insp_model_routing — Route nodes by declared capability needs

Nubble starts the CLI host with family pass_through and backend mock. Nubble prefers declaring what a step needs instead of hard-coding a model id, then picking among available classes. Accepts inspiration requirement 13. He walks product steps (route_capabilities) and verifies completion from the structured observation expects on this scenario. [10]

Implementation

route_for_capability_needs in mechaharness.routing selects a model class from declared needs and available classes. CliInstrumentor verb route_capabilities exposes the host diagnostic.

Validation

Harness user_story stage 030_nubble_insp_model_routing.yaml: environment + graph + steps + complete expects.

Footnotes

nubble_insp_recipe_audit_dimensions — Audit recipe selection and freshness without reading full transcripts

Nubble starts the CLI host with family pass_through and backend mock. A quarterly audit can see which recipe and version made each decision, how the verdicts split, and how much of the evidence was fresh or stale, without reading whole transcripts. Decisions that do not name a recipe are left out of the per-recipe rollup instead of being guessed. Cost and decision telemetry already ship via fangore_decision_plane_telemetry and nubble_insp_trace_envelope. Tracks MH-PA-08[11].

Implementation

Optional recipe_id, recipe_version, and freshness_summary (plus approval, denial, and effect ids) on DecisionRecord and TraceEnvelope; summarize_freshness() in tool_result_freshness.py counts fresh versus stale tool results; summarize_recipe_audit() and RecipeAuditRow in review_audit.py roll decisions up per recipe selection. The new envelope fields are optional and do not change envelope_complete.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_insp_resume_cost — Measure wake-to-productive resume cost

Nubble starts the CLI host with family pass_through and backend mock. Nubble records how expensive resume is — rebuild tokens, tool calls, and wake-to-first-productive time — so continuity work can be optimized. Accepts WalkingLabs L05 and P03 guidance[12][13].

Implementation

ResumeCostMetrics and summarize_resume_cost in mechaharness.resume_cost capture resume telemetry.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_review_audit_reconstruct — Reconstruct why a consequential action was allowed without model recollection

Nubble starts the CLI host with family pass_through and backend mock. An auditor can rebuild a review from the saved decision log and trace alone: which recipe ran, what the policy decided and under which revision, how trusted the source was, what scope was delegated, why something was denied, who approved it, and which side effects actually happened. When any of that is missing the record says exactly which part, instead of relying on what the model remembers. Related: taloneth_policy_replay, nubble_insp_trace_reconciliation. Tracks MH-DOTS-09[14].

Implementation

ReviewAuditRecord in review_audit.py composes DecisionRecord and TraceEnvelope (recipe id and version, policy_version / policy_revision, approval, denial, and effect ids, freshness summary) with caller-attested source trust, delegated scope, and denial reasons. from_records() prefers the decision over the envelope on overlap; missing_dimensions() and reconstructable() name gaps (denials need reasons and ids, human-approved verdicts need approval ids, executed actions need effect ids).

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_insp_rollout_graph — Reconstruct retries and delegated agents as observed rollout branches

Nubble starts the CLI host with family pass_through and backend mock. Nubble needs the observed run topology — retries, spawned reviewers, and terminals — as a first-class graph linked back to the intended plan, not only the planned node list. Accepts FineEnvs training-sequence reconstruction[15].

Implementation

build_rollout_graph; CliInstrumentor verb rollout_graph_build.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_insp_trace_envelope — Require provenance on every trace envelope

Nubble starts the CLI host with family pass_through and backend mock. Nubble rejects incomplete traces that omit config fingerprint, routing, context provenance, or capability envelope refs so offline archaeology can reconstruct the decision path. Accepts WalkingLabs L11 and DeepSeek guidance[16][17]. Trace audit substrate for personal-agent MH-PA-08[18].

Implementation

TraceEnvelope, envelope_complete, and require_trace_envelope in mechaharness.trace_envelope define required provenance fields for run/node events.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_trace_reconciliation — Reject rollouts when independent traces disagree

Nubble starts the CLI host with family pass_through and backend mock. Nubble needs executor events and gateway capture to reconcile before a rollout is accepted for training or self-improvement. Accepts FineEnvs independent trajectory checks[19]. Trace reconciliation for Dots MH-DOTS-09[20].

Implementation

ObservationSurface, reconcile_traces, and require_reconciled in mechaharness.trace_reconciliation compare event ids and digests across surfaces.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

nubble_insp_workspace_isolation — Acquire workspace isolation through a host provider seam

Nubble starts the CLI host with family pass_through and backend mock. Nubble asks branches for isolation without hard-coding worktrees or containers — the host provider supplies the mechanism. Accepts WalkingLabs L13 and Codex guidance[21][22].

Implementation

WorkspaceIsolationProvider and InMemoryWorkspaceIsolationProvider in mechaharness.isolation.workspace_isolation define the acquire/release capability seam.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

nubble_lane_load_hint — Refuse work when the wrong inference profile is loaded

Nubble starts the CLI host with family pass_through and backend mock. Nubble is on call when a refund-routing job fails on the local inference host. The job needs the judge profile, but an earlier experiment left the reason profile loaded instead. The harness must not fail with a vague error. It must tell him, in plain operator language, that this work needs the judge lane and which load command to run. When he switches to the correct profile, the page clears. He uses this story whenever a profile mismatch wastes incident time.

Implementation

Exclusive lanes (reason / decide-judge / media) on InferenceEnvironment refuse cross-lane work and surface load hints (DEFAULT_LANE_LOAD_HINTS). This is the operator-facing half of decide-versus-reason profile discipline: bounded judge work must not run under a generative reason profile. Hosts supply a real environment via Config instead of NoOpInferenceEnvironment.

Covers: INF-02.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

nubble_model_affinity — Keep model affinity inside a coherent work loop

Nubble starts the CLI host with family pass_through and backend mock. Within one coherent loop, Nubble wants routing to prefer the already-chosen lane unless a phase boundary justifies a switch. Random lane thrash must not win on unit price alone. He walks product steps (check_model_affinity) and verifies completion from the structured observation expects on this scenario.

Implementation

route_at_boundary and activate_scoped_policy in mechaharness.routing keep affinity inside a coherent work loop; uncalibrated policies do not activate. CliInstrumentor verb check_model_affinity exposes the diagnostic.

Validation

Harness user_story stage 070_nubble_model_affinity.yaml: environment + graph + steps + complete expects.

nubble_repo_topology — Index supplied repository sources within a budget

Nubble starts the CLI host with pass_through and mock. He supplies two source files and a revision label to repo_topology with a budget of one entry. He checks that a.py is indexed, b.py is explicitly omitted, and revision_origin says caller_supplied. This walk checks budgeted indexing; it does not authenticate the revision or exercise stale-map recovery.

Implementation

RepoTopologyParams validates supplied files, revision label and budget. RepositoryTopologyProvider.index returns entries and omissions from those actual inputs.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

nubble_run_cost_events__event_timestamps — Record cost and inference events for every harness run (event_timestamps)

Finance asks Nubble whether a harness run burned billable units. He starts the CLI host with the default pass-through family and a mock reason backend, uses the built-in one-shot infer universe (no custom recipe load), runs infer with a short prompt, and verifies completion by reading the event log: an inference event and a cost event with non-zero units — the same signals he would forward to billing. He also checks that those events carry the host clock timestamps he expects. This stage covers the event_timestamps scenario.

Implementation

CLI universe cli:infer via CliInstrumentor / CliInferRunner emits structured EventLog records for inference and cost (CostAccountant / core:cost, core:inference) on the same stream as graph lifecycle events. This is the baseline observability stream for every run — decisions, routing, and tools extend the same log rather than a separate ledger.

Covers: OBS-01.

Validation

Harness user_story scenarios event_types.yaml (environment + infer step + complete event/cost/token expects) and event_timestamps.yaml (environment.clock + infer + complete timestamp expects). Cassette response.json. Related: tests/test_events.py. Live: MECHA_STORY_BACKEND=live. Stage id nubble_run_cost_events__event_timestamps (scenario event_timestamps).

nubble_run_cost_events__event_types — Record cost and inference events for every harness run (event_types)

Finance asks Nubble whether a harness run burned billable units. He starts the CLI host with the default pass-through family and a mock reason backend, uses the built-in one-shot infer universe (no custom recipe load), runs infer with a short prompt, and verifies completion by reading the event log: an inference event and a cost event with non-zero units — the same signals he would forward to billing. He also checks that those events carry the host clock timestamps he expects. This stage covers the event_types scenario.

Implementation

CLI universe cli:infer via CliInstrumentor / CliInferRunner emits structured EventLog records for inference and cost (CostAccountant / core:cost, core:inference) on the same stream as graph lifecycle events. This is the baseline observability stream for every run — decisions, routing, and tools extend the same log rather than a separate ledger.

Covers: OBS-01.

Validation

Harness user_story scenarios event_types.yaml (environment + infer step + complete event/cost/token expects) and event_timestamps.yaml (environment.clock + infer + complete timestamp expects). Cassette response.json. Related: tests/test_events.py. Live: MECHA_STORY_BACKEND=live. Stage id nubble_run_cost_events__event_types (scenario event_types).

nubble_topology_efficiency — Separate wall-clock speedup from total work and queue wait

Nubble starts the CLI host with family pass_through and backend mock. Nubble is asked whether parallel agents sped things up. Wall time dropped, but total work grew and queue waits hid under a vanity speedup. He needs metrics that separate critical path, total work, and elapsed time — and that refuse misleading efficiency claims without a serial baseline and worker-count note.

Implementation

TopologySpan and compute_topology_metrics in mechaharness.decision_log. CliInstrumentor verb topology_efficiency.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Fangore’s stories

fangore_admit_authority — Review supplied source labels without authorizing effects

Fangore starts the CLI host with family pass_through and backend mock. His trusted ledger allows an edit of repo:acme/widget and a read of object:X. He wrote “do not email the customer” himself. A fetched page tells the agent to edit repo:evil/other and to ignore that exclusion. Memory claims the revoke of write on object:X was a mistake. A vague user line, “make it better”, has no checkable predicate. He runs admit_authority. His own exclusion is accepted as a caller source label. The fetched repo is only a candidate. The fetched instruction and the memory grant are rejected. The vague line asks a human. The widget edit and object read match the supplied ledger. The evil edit and restored write miss it. gate_status stays not_evaluated; no effect is authorized by this report.

Implementation

Typed AdmissionClaim, ResourceOperation and AdmissionReport in mechaharness.authority_admission validate inputs. The report exposes ledger_match/ledger_miss and gate_status=not_evaluated; source_label_accepted records the caller label, not verified authority. Hosts still enforce actual effects with AuthorityGate.

Validation

Harness user_story stage 150_fangore_admit_authority drives admit_authority. Unit cases in tests/test_authority_admission.py cover discovery text, which stays a candidate.

Footnotes

  1. Trouble resource scope (MH-REALM-01) — Discovered resources are not grants

  2. Trouble memory authority (MH-EAL-01) — Memory prose is not an authorization token

  3. Trouble requirement integrity (MH-REQ-01) — Retrieved text must not enter the authoritative requirement list

fangore_audited_infer_accept — Expand an audited infer-accept generate and gate spine

Fangore starts the CLI host with family pass_through and backend mock, and works with the audited_infer_accept recipe. He wants a generate → freeze criteria → decide → independent QA → deterministic → gate control pattern that a video production host can migrate onto, without shipping Comfy in the library. Soft modality selects text decide/QA kinds; principals for decide and QA differ. Complements fangore_verify_repair_recipe (oracle loop) and fangore_guided_coding_recipe (which tiles this spine). He walks product steps (instantiate_recipe) and verifies completion from the structured observation expects on this scenario.

Implementation

Agentic Recipe catalog id audited_infer_accept (AuditedInferAcceptTemplate + append_audited_infer_accept). Domain mechaharness.audited_decision (STAGES, criteria_hash, assert_principals_distinct, repair_target). Default node kinds audited.*; hosts soft-bind runners (e.g. host.infer.*). Migration notes: docs/inspiration/video-production-audited-infer-migration.md.

Validation

Harness user_story stage 010_fangore_audited_infer_accept.yaml: environment + instantiate_recipe expects. Unit tests tests/test_audited_decision.py.

fangore_backend_describe_recipe — Describe an inference backend through the backend_describe recipe

Fangore starts the CLI host with family pass_through and backend mock, and works with the backend_describe recipe. Before Fangore wires a host, he wants a machine-readable description of a configured backend — name, network behavior, auth — without leaving the recipe catalog. He runs backend_describe with the mock backend and gets the same metadata the classic describe command used to print. Complements fangore_harness_run_recipe. He walks product steps (run_recipe) and verifies completion from the structured observation expects on this scenario.

Implementation

Agentic Recipe catalog id backend_describe (BackendDescribeTemplate) with a single describe node. BackendDescribeRunner calls InferenceStrategy.describe() via DI. CliInstrumentor verb run_recipe calls recipe_runner.run_backend_describe_recipe. CLI describe / recipes run backend_describe share this path. Soft points: backend (required), model, base_url, api_key, describe_kind.

Validation

Harness user_story stage 010_fangore_backend_describe_recipe.yaml: environment + graph + steps + complete expects.

fangore_bag_checkpoint_persist — Carry bag evidence across a stepped graph checkpoint

Fangore starts the CLI host with family pass_through and backend mock. He loads a two-node inline graph where the first leaf publishes discovery evidence onto the walk bag (acc) and the second leaf requires that register before succeeding. He pauses after the writer (graph_walk start / one_step), asserts the bag observation still holds the evidence, then resumes (step). The consumer must see the same acc values from the checkpoint — not an empty bag — so later inference nodes can trust inter-step continuity.

Implementation

WalkBag.serialize / deserialize on ExecutionGraph.walk_bag; GraphExecutor hydrates GraphRunContext.bag on resume and syncs the bag before every checkpoint save; story-host graph_walk runners honor payload.bag_put / payload.bag_require and surface bag on observations.

Validation

Suite stage 010_fangore_bag_checkpoint_persist — start pauses with bag.acc populated; step resume completes with the same nested evidence and no node_error.

Footnotes

  1. Gastronomic guided-development M1 (bag durability) — Checkpoint/resume must carry WalkBag with graph state

fangore_bag_context_spec_continuity — Compile bag evidence into a second inference request

Fangore starts the CLI host with family pass_through and backend mock. He loads an inline graph that seeds a goal plus unrelated bag noise, runs a bag-aware discovery inference that publishes structured hypotheses to out.discovery, validates that evidence with a hard compute node into out.verified, then pauses before the planning inference. On resume the planner’s ContextSpec must compile only the goal, discovery, and verified evidence into the Completer request — not the noise register — and publish out.plan from the scripted completion.

Implementation

ContextSpec / compile_context_spec / publish_response_to_bag in context_spec; bag-aware CliInferRunner freezes the walk bag per invocation, records model_inputs, and calls Completer; story-host graph_walk registers infer/cli:infer via CliInferRunner and surfaces model_inputs observations.

Validation

Suite stage 030_fangore_bag_context_spec_continuity — pause before plan shows nonempty bag.out.discovery and hard-node out.verified; continue completes with model_inputs.plan.includes_verified_discovery=true and includes_unrelated_bag_data=false, plus nonempty bag.out.plan. Static mock uses payload.completion scripts; live upgrades onto the reason Completer.

Footnotes

  1. Gastronomic guided-development M2 (ContextSpec + infer publication) — Second inference must see authorized bag state from the first, not noise

fangore_bag_discovery_hard_nodes — Run P0 discovery hard nodes over a tiny workspace

Fangore starts the CLI host with family pass_through and backend mock. He seeds a calculator workspace and WalkBag hypotheses, then steps deterministic hard nodes — workspace_manifest, file_search, source_extract, evidence_resolve, bag_project, bag_validate, and coverage_measure — so verified evidence lands on declared bag paths without partial writes or invented citations.

Implementation

DiscoveryHardNodeRunner / P0 capabilities in discovery_hard_nodes; graph_walk registers hard kinds alongside compute / infer / judge. Workspace confinement reuses WorkspacePaths.

Validation

Suite stage 060_fangore_bag_discovery_hard_nodes — after the walk, manifest lists two files, search matches ZeroDivisionError, bag.acc.discovery.verified.ok is false (fabricated path rejected), projected summary omits noise, unrelated bag state is preserved, and coverage is sufficient. Typed non-exceptional failures (stale hash, invalid regex, extract rejects, truncation/inconclusive coverage, atomic failed writes) live in tests/test_discovery_hard_nodes.py.

Footnotes

  1. Gastronomic guided-development M4 (P0 discovery hard nodes) — Deterministic hard nodes publish to declared bag paths only

fangore_bag_judge_no_tools — Judge bag evidence with zero tool definitions

Fangore starts the CLI host with family pass_through and backend mock. He seeds a proposal plus verified evidence (and unrelated noise), then runs a bag-aware judge node whose ContextSpec selects only the authorized paths. The judge Completer receives no tool schemas, performs no tool calls, and publishes a typed verdict to out.judgment.

Implementation

CliJudgeRunner compiles ContextSpec against a frozen bag snapshot, refuses tool loops, validates typed verdicts, and publishes to the live bag; graph_walk registers judge/cli:judge and surfaces inference.judge.*.

Validation

Suite stage 050_fangore_bag_judge_no_tools — continue completes with inference.judge.tool_call_count=0, inference.judge.includes_verified_evidence=true, and bag.out.judgment.valid=true.

Footnotes

  1. Gastronomic guided-development M3 (no-tool judge) — Judges compile bag context but never receive or dispatch tools

fangore_bag_snapshot_inspect — Inspect a frozen bag snapshot while the live bag mutates

Fangore starts the CLI host with family pass_through and backend mock. He seeds verified evidence and a secret noise register, runs a prior bag-aware inference that publishes a note, then an agent inference whose ContextSpec plus inspection tools call inspect_bag twice around a live-bag mutation, attempt an unauthorized path, and inspect the prior response. The two authorized bag reads must match the frozen snapshot, the forbidden path must be denied, and tool results must appear in the inference transcript.

Implementation

SnapshotInspectionToolkit in bag_inspect; bag-aware CliInferRunner inspection tool loop bound to one frozen snapshot; prior responses recorded for inspect_prior_response; graph_walk surfaces inference.* observations.

Validation

Suite stage 040_fangore_bag_snapshot_inspect — after continue, inference.agent.inspection_snapshot_stable, unauthorized_inspection_denied, and tool_results_in_transcript are true.

Footnotes

  1. Gastronomic guided-development M3 (snapshot inspection) — Inspection tools read the invocation snapshot, not live bag mutations

fangore_bag_subgraph_bindings — Map parent bag into a subgraph and publish declared outputs only

Fangore starts the CLI host with family pass_through and backend mock. He loads a parent graph that seeds acc.discovery, nests a subgraph with bag_inputs / bag_outputs, and continues to completion. The child must see a deep-copied projection of discovery on in, and only the declared out mapping may appear on the parent bag afterward — child mutations of nested input values must not rewrite the parent’s acc.discovery.

Implementation

GraphExecutor._project_child_bag / _merge_child_bag_outputs with WalkBag.project_from / merge_from; subgraph node payload bag_inputs (child←parent) and bag_outputs (parent←child).

Validation

Suite stage 020_fangore_bag_subgraph_bindings — after continue, bag.acc.discovery.status stays found and bag.acc.child_out.verified is true.

Footnotes

  1. Gastronomic guided-development M1 (nested bag mappings) — Child bags are projected; outputs only via declared mappings

fangore_bounded_repair_loop — Bound verification repair loops to a fixed number of attempts

Fangore starts the CLI host with family pass_through and backend mock. After a failed verification he runs Agentic Recipe verify_repair with a stop contract of three repair attempts. One repair makes verification succeed — the loop does not run forever. Complements fangore_verify_repair_recipe for the recipe tile and fangore_convergence_ceiling for judge loops. [23]

Implementation

Agentic Recipe verify_repair via VerifyRepairTemplate / verify_repair_runner and product verb run_recipe (VerifyRepairRecipeAdapter). Library helper bounded_repair remains unit-covered for VER-03.

Validation

Harness user_story stage 010_fangore_bounded_repair_loop.yaml drives run_recipe; hard expects on final_status / repair_attempts.

Footnotes

fangore_bounded_retry_recipe — Run a bounded-retry Agentic Recipe with visible escalation

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe bounded_retry with three fixture attempts that succeed on the last try, runs run_recipe, and verifies attempt_count, success without escalation, and the repeating attempt stop contract. Must compose with durable external-effect recovery from TDR crash-window stories. [24]

Implementation

Agentic Recipe bounded_retry via BoundedRetryTemplate / bounded_retry_runner and product verb run_recipe (BoundedRetryRecipeAdapter).

Validation

Harness user_story stage 020_fangore_bounded_retry_recipe.yaml drives run_recipe; expects attempt_count / attempt_succeeded / escalated plus shape keys.

Footnotes

fangore_calc_add_sub — Extend the calculator with addition and subtraction

Fangore continues the shared calculator arc. He asks guided coding to extend calc.py so left-associative addition and subtraction work (1+2-3) while number literals from the bootstrap stage still evaluate. He answers guidance, confirms the file, and runs regression expressions for both numbers and additive chains.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 020_fangore_calc_add_sub.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_calc_exponent — Add right-associative exponentiation

Fangore continues the shared calculator workspace in the CLI host using pass_through and mock in static mode. He resumes guided_coding to add right-associative exponentiation. He reads calc.py, runs the CLI with 2*3^2 and 2^3^2, and checks for 18 and 512 while earlier arithmetic still passes.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 040_fangore_calc_exponent.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_calc_functions — Add common calculator functions

Fangore finishes the calculator arc by adding common functions (sqrt, abs, sin/cos/tan in radians, ln/log, min/max) composable with prior operators and grouping. The shared workspace now holds a full expression CLI.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 060_fangore_calc_functions.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_calc_grouping — Add parentheses to override precedence

Fangore continues the shared calculator workspace in the CLI host using pass_through and mock in static mode. He asks guided_coding to add parentheses that override precedence. After the graph completes, he runs (1+2)*3 and 2^(1+1), checks their results, and reruns the earlier operator cases.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 050_fangore_calc_grouping.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_calc_mul_div — Add multiplication and division with tighter precedence

Fangore continues the shared calculator workspace in the CLI host using pass_through and mock in static mode. He resumes guided_coding to add multiplication and division with tighter precedence than addition. He reads the resulting calc.py and runs 2+34 and 8/22 through its CLI, checking results and additive regressions.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 030_fangore_calc_mul_div.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_calc_parse_number — Bootstrap a CLI that evaluates number literals

Fangore starts the CLI host with family pass_through and backend mock, loads the guided_coding durable graph, and grows a shared calculator workspace from an empty arc. He asks for a small command-line program that reads one expression and prints a number literal value. He answers the external guidance soft point, confirms calc.py on disk, and runs it on 42 and 3.14 so the bootstrap claim is proven before later stages add operators. Live mode uses a real reason model for the coding burst; static mode uses an offline write stub.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and environment.filesystem.type: suite. Static mode uses offline coding_write stubs. Live mode (MECHA_STORY_BACKEND=live with a configured endpoint, or MECHA_LIVE_OPENAI=1 for cloud OpenAI) ignores stubs and binds a real OpenAI-compat Completer into ProjectCodingLocalWork via completer_as_tool_loop_complete. Product verbs workspace_read / run_python assert on-disk calc.py and CLI stdout for this stage’s grammar plus regressions.

Validation

Harness user_story stage 010_fangore_calc_parse_number.yaml inside sequential suite calc_cli (ordered). Live eligibility: environment.local_work: project_coding. Suite harness asserts live HTTP POSTs when coding stages run under live backend.

fangore_capability_envelope_narrow — Narrow child capability envelopes without silent inheritance

Fangore starts the CLI host with family pass_through and backend mock. He binds a parent capability envelope in the environment, runs capability_envelope to narrow a child and attempt a widen, and verifies the child stays a subset while widen raises and delegation prefers child.

Implementation

CapabilityEnvelope.narrow plus DefaultDelegationPolicy. Story environment.capability_envelope binds Config get_capability_envelope; product verb capability_envelope exercises narrow/widen.

Validation

Harness user_story stage 010_fangore_capability_envelope_narrow.yaml drives capability_envelope; expects narrow_ok / child_grant_count / widen_raises / delegation_choice.

fangore_change_decomposition_ordered — Order ChangePlan slices from a ChangeContract with dependency checks

Fangore starts the CLI host with family pass_through and backend mock. He seeds an ok ChangeContract, walks change_decomposition hard/infer nodes, and verifies out.change_plan orders slices by depends_on while inheriting contract verification onto slices that omit checks.

Implementation

plan_constrain / plan_assemble / plan_validate in plan_hard_nodes; Agentic Recipe change_decomposition.

Validation

Suite stage 010_fangore_change_decomposition_ordered — status ok, arithmetic before parser, validation ok.

Footnotes

  1. Gastronomic M6 plan ordered — Each slice has scope, checks, rollback, dependency order

fangore_change_decomposition_shape — Instantiate the change_decomposition Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe change_decomposition and verifies constrain/propose/assemble/validate node ids.

Implementation

Agentic Recipe change_decomposition (ChangeDecompositionTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_change_decomposition_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 change_decomposition — Ordered ChangePlan slices before mutating coding

fangore_change_execution_apply — Apply one approved slice with write grant and publish hashes

Fangore starts the CLI host with family pass_through and backend mock. He seeds a calculator workspace, walks change_execution with an explicit core:fs.write grant, applies an in-scope revision to arithmetic.py, and verifies out.change_execution carries before/after hashes and a non-empty diff.

Implementation

execution_constrain / execution_apply / execution_publish / execution_validate in execution_hard_nodes; Agentic Recipe change_execution.

Validation

Suite stage 010_fangore_change_execution_apply — status ok, slice_id arithmetic, empty scope_violations.

Footnotes

  1. Gastronomic M6 execution apply — Real diff and changed-file hashes; no scope escape

fangore_change_execution_propose — Completer proposes revisions then hard apply publishes hashes

Fangore starts the CLI host with family pass_through and backend mock. He seeds a calculator workspace without host file_revisions, walks constrain → Completer propose → materialize → apply, and verifies acc.execution.revisions.source is proposed with an ok ChangeExecution.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply; Agentic Recipe change_execution.

Validation

Suite stage 015_fangore_change_execution_propose — source proposed, status ok.

Footnotes

  1. Gastronomic execute Completer propose — Completer proposes revisions; hard materialize and apply remain authoritative

fangore_change_execution_shape — Instantiate the change_execution Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe change_execution and verifies constrain/propose/materialize/apply/publish/validate node ids.

Implementation

Agentic Recipe change_execution (ChangeExecutionTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_change_execution_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 change_execution — Scoped slice apply before verification

fangore_change_verification_host — Host-observe verify_runs and immutable invariants after a change

Fangore starts the CLI host with family pass_through and backend mock. He seeds a calculator workspace that already contains a multiply helper, walks change_verification against a ChangeExecution and ChangeContract, and verifies out.verification_report is host-observed green with preserved parser invariants.

Implementation

verification_constrain / verification_run / verification_publish / verification_validate in verification_hard_nodes; Agentic Recipe change_verification.

Validation

Suite stage 010_fangore_change_verification_host — status ok, empty failures, invariants checked.

Footnotes

  1. Gastronomic M6 verification host — Host-observed tests; old invariants remain green

fangore_change_verification_shape — Instantiate the change_verification Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe change_verification and verifies constrain/run/publish/validate node ids.

Implementation

Agentic Recipe change_verification (ChangeVerificationTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_change_verification_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 change_verification — Host-observed VerificationReport after scoped execution

fangore_coding_ci_diagnose — Look up a failed CI check and write a diagnosis note from the job log

Fangore’s pull request checks job fails again. He starts guided coding and asks the local Completer to look up check runs for HEAD, download the failing Actions job log, and write a short diagnosis note naming the check, job id, and root-cause signals — without editing product source yet. GitHub stays mocked in static stories via RecordingGitHubClient so CI and Completer walks do not need forge credentials; the production path uses HttpGitHubClient when a token is bound. Complements fangore_coding_ci_repair (seeded-log repair) and fangore_coding_git_open_pr.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and coding_github: local_mock_ci (RecordingGitHubClient + GitHubConnectionConfig owner/repo). Tools ci_checks / ci_job_log come from build_coding_tool_registry(..., github=…). Static coding_tool_script: ci_diagnose calls those tools then writes .mechaharness/ci_diagnosis.md. Production binds HttpGitHubClient via ProjectCodingConfig.get_github_client() / GitHubConnectionConfig (MECHA_GITHUB_* / GITHUB_TOKEN). Soft point external_guidance remains the human scope gate.

Validation

Harness user_story stage 010_fangore_coding_ci_diagnose.yaml in suite fangore_guided_coding. Static mode uses coding_tool_script: ci_diagnose against coding_github: local_mock_ci. Asserts .mechaharness/ci_diagnosis.md cites the failing check, job id, and root-cause markers from the canned log. Live Completer may drive the same tools with MECHA_STORY_BACKEND=live. Unit coverage in tests/test_github_client.py for RecordingGitHubClient and job_id_from_details_url.

fangore_coding_ci_repair — Diagnose a failed CI check and repair the workspace until local verify passes

Fangore’s pull request build fails on the checks job. After a forge lookup (see fangore_coding_ci_diagnose), he starts guided coding against the project workspace, reads a failure log, repairs the broken source, re-runs the same kind of local verify the pipeline used, and writes a short fix note for the next human review. Static stories plant a failure log so repair stays offline; forge HTTP lookup is owned by the diagnose story. Complements fangore_coding_ci_diagnose, fangore_coding_git_inspect, and fangore_coding_git_open_pr.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, ci_seed: failing_check, and coding tools under build_coding_tool_registry. Static stories plant a failure log and broken module; the Completer (or coding_tool_script: ci_repair) reads that log, edits the module, and records .mechaharness/ci_fix.md. Forge check/job log tools are proven in fangore_coding_ci_diagnose. Local re-check uses ProjectCodingLocalWork verify_runs / run_python (and host run_checks.sh when bound) so repair stays on the cheap Completer lane. Soft point external_guidance remains the human scope gate.

Validation

Harness user_story stage 020_fangore_coding_ci_repair.yaml in suite fangore_guided_coding. Static mode uses coding_tool_script: ci_repair against ci_seed: failing_check. Asserts widget.py contains the repaired function and .mechaharness/ci_fix.md cites the failure. Live Completer may drive the same tools with MECHA_STORY_BACKEND=live.

fangore_coding_denied_effects — Keep denied process and publish actions out of a read-only run

Fangore allows repository inspection and guidance. The model asks to run a shell command and open a pull request. He inspects the shell marker and the recording forge for side effects.

Implementation

ProjectCodingConfig supplies a read-only grant set to the guided coding host. The story uses RecordingPullRequestCodingGit so a publish attempt stays local.

Validation

Submit the tool requests through the generator. Assert that neither side effect occurred.

fangore_coding_exhausted_repair — Stop after the repair budget is exhausted

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He requests a fix that still fails its host check after decomposition. He expects a terminal failure with the failing check attached. He starts guided_coding, answers guidance including decomposition, and checks that the terminal result is failed.

Implementation

The guided_coding generator calls ProjectCodingLocalWork and runs independent host checks.

Validation

Start the real generator, answer its guidance request and inspect the host result.

fangore_coding_git_inspect — Inspect a feature branch against main with local git tools

Fangore hands guided coding a workspace that already has a feature branch ahead of main. He wants the local agent to inspect status, commit history, and the diff against main using the machine’s git, then leave a short inspect note on disk. Complements fangore_guided_coding_recipe and fangore_coding_git_open_pr.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding. Story harness seeds a feature-branch git repo and binds RecordingPullRequestCodingGit wrapping LocalProcessCodingGit (environment.coding_git: local_mock_pr) so status/log/diff use real local git while forge calls stay mockable. Tools git_status / git_log / git_diff come from build_coding_tool_registry(..., coding_git=…). Hosts override via ProjectCodingConfig.get_coding_git().

Validation

Harness user_story stage 030_fangore_coding_git_inspect.yaml in suite fangore_guided_coding. Static mode uses coding_tool_script: git_inspect (scripted tool calls against local git). Live mode uses a real Completer with the same local_mock_pr binding. Unit tests tests/test_project_coding.py cover injectable CodingGit fakes and local process git.

fangore_coding_git_open_pr — Open a formatted pull request with local git and mocked GitHub

Fangore asks guided coding to compare the feature branch to main with local git, draft a clear pull request summary, and open the PR. GitHub itself stays mocked so CI and live Completer walks do not need forge credentials; only the local git history is real. Complements fangore_coding_git_inspect and fangore_guided_coding_recipe.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, coding_git: local_mock_pr (RecordingPullRequestCodingGit over LocalProcessCodingGit), and git_seed: feature_branch. Tools git_log / git_diff / create_pull_request hit injectable CodingGit. Production PR path is LocalGitHttpPullRequestCodingGit + HttpGitHubClient / GitHubConnectionConfig (HTTP token via ProjectCodingConfig.get_github_client() — no gh required). Stories keep the forge mocked.

Validation

Harness user_story stage 040_fangore_coding_git_open_pr.yaml in suite fangore_guided_coding. Static mode uses coding_tool_script: git_open_pr. Live Completer may draft title/body but still uses the mock PR publisher under local_mock_pr. Asserts .mechaharness/pr_url.txt contains the mock URL. Unit coverage in tests/test_github_client.py and tests/test_coding_git.py.

fangore_coding_interleaved_restore — Recover a failed edit while a second session is writing

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He checkpoints a repository before repair. Another editor changes an existing note and adds an untracked file. Fangore rolls back the failed source edit and reads all three files.

Implementation

mechaharness.coding_workspace_checkpoint saves and restores the checkout.

Validation

Assert the restored source, newer note content and survival of the added file together.

fangore_coding_missing_provider — Stop a production handoff when inference is unavailable

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He starts the project coding host with no inference endpoint or bound model. He expects a failed handoff and checks that a demo file never appeared.

Implementation

ProjectCodingConfig binds the local-work Completer used by GeneratorMcpServer.

Validation

Use an explicitly empty base URL and a temporary checkout. Inspect the public terminal kind and the actual filesystem.

fangore_coding_no_check — Distinguish an unchecked edit from verified completion

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He delegates a note edit without an acceptance command. The driver must disclose that verification is missing. He starts guided_coding, answers its guidance request, and checks that the terminal result is unverified.

Implementation

The guided_coding generator calls ProjectCodingLocalWork. Without a supplied acceptance command, the result remains unverified.

Validation

Start the real generator, answer its guidance request and inspect the host result.

fangore_coding_refused_diff — Report only files whose content actually changed

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He attempts a guarded write, then records its refusal in a note. He compares the reported changed files with the one permitted edit. He resumes guided_coding and checks that written_files lists only .mechaharness/write_guard_note.md.

Implementation

The guided_coding generator calls ProjectCodingLocalWork and runs independent host checks.

Validation

Start the real generator, answer its guidance request and inspect the host result.

fangore_coding_review_patch — Review a patch against a dirty checkout after concurrent MCP replay

Fangore has an uncommitted change and an untracked draft. He delegates a fix, reconnects two drivers to the same stored run and submits the same guidance answer from both. He reads the private result, checks that its patch applies against his original dirty checkout and finds his draft intact.

Implementation

GeneratorMcpServer and FileGeneratorRunStore drive RepositoryCodingLocalWork with CodingRepositoryIsolation. The story supplies a deterministic Completer.

Validation

Require a shared terminal response and one edit round, a matching HEAD, an applicable one-file patch and independent reads of both workspaces.

fangore_coding_run_scoped_recovery — Isolate the checkpoints of overlapping coding runs

Fangore starts a repair. After its first wrong edit lands and before verification, a second driver edits a draft and creates a file. When the repair stops for guidance, Fangore needs the original source and both of the second driver’s changes.

Implementation

Two guided_coding runs use separate project coding hosts on one workspace. Their scripted tool calls interleave deterministically at the write and verify boundary.

Validation

Require the second run to complete, the first to stop, its broken edit to disappear and both verified draft edits to survive.

fangore_coding_static_checks__mypy — Diagnose and repair local Ruff and Mypy failures the way CI runs them (mypy)

Fangore’s PR checks keep dying on Ruff import order and Mypy untyped defs before pytest even matters. He starts guided coding against a temp workspace that already has a CI-shaped failure log and a broken module, asks the local Completer to read the static-check output (or re-run the same tool), repair the file, and leave a short fix note. Host verify_runs re-check with ruff: true / mypy: true so the story proves the cheap Completer lane can clear the same static gates CI uses. Complements fangore_coding_ci_diagnose (forge log lookup) and fangore_coding_ci_repair (seeded runtime/pytest repair). This stage covers the mypy scenario.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, static_seed: ruff_imports|mypy_untyped, and coding_tool_script: static_ruff_repair|static_mypy_repair. Seeds plant messy.py / typed_mod.py plus .mechaharness/ci_failure.log. ProjectCodingLocalWork verify_runs accepts ruff and mypy rows (python -m ruff check / python -m mypy). Soft point external_guidance remains the human scope gate.

Validation

Harness user_story scenarios ruff.yaml and mypy.yaml in suite fangore_guided_coding. Static mode uses the named coding_tool_scripts. Asserts the repaired module and .mechaharness/ci_fix.md cite Ruff I001 or Mypy no-untyped-def, and start inputs include matching verify_runs. Live Completer may drive the same tools with MECHA_STORY_BACKEND=live. Stage id fangore_coding_static_checks__mypy (scenario mypy).

fangore_coding_static_checks__ruff — Diagnose and repair local Ruff and Mypy failures the way CI runs them (ruff)

Fangore’s PR checks keep dying on Ruff import order and Mypy untyped defs before pytest even matters. He starts guided coding against a temp workspace that already has a CI-shaped failure log and a broken module, asks the local Completer to read the static-check output (or re-run the same tool), repair the file, and leave a short fix note. Host verify_runs re-check with ruff: true / mypy: true so the story proves the cheap Completer lane can clear the same static gates CI uses. Complements fangore_coding_ci_diagnose (forge log lookup) and fangore_coding_ci_repair (seeded runtime/pytest repair). This stage covers the ruff scenario.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, static_seed: ruff_imports|mypy_untyped, and coding_tool_script: static_ruff_repair|static_mypy_repair. Seeds plant messy.py / typed_mod.py plus .mechaharness/ci_failure.log. ProjectCodingLocalWork verify_runs accepts ruff and mypy rows (python -m ruff check / python -m mypy). Soft point external_guidance remains the human scope gate.

Validation

Harness user_story scenarios ruff.yaml and mypy.yaml in suite fangore_guided_coding. Static mode uses the named coding_tool_scripts. Asserts the repaired module and .mechaharness/ci_fix.md cite Ruff I001 or Mypy no-untyped-def, and start inputs include matching verify_runs. Live Completer may drive the same tools with MECHA_STORY_BACKEND=live. Stage id fangore_coding_static_checks__ruff (scenario ruff).

fangore_coding_task_specific_repair — Repair a failed package check with evidence from that package

Fangore delegates a counter bug. The first edit is wrong. He runs the package tests, allows one repair and inspects the instruction the host sent to the Completer for that repair.

Implementation

ProjectCodingLocalWork runs the independent package checks and composes the repair instruction. A scripted Completer supplies a wrong edit followed by a correction.

Validation

Require a real repair brief, a completed run and passing tests. The brief must identify the check without teaching an unrelated calculator API.

fangore_coding_verify_boundary — Reject verification evidence outside the workspace

Fangore starts the CLI host with family pass_through and backend mock in a temporary workspace. He submits two checks against a sibling canary, one through a parent path and one through a symlink. Neither check may complete his coding task.

Implementation

ProjectCodingConfig and GeneratorMcpServer drive guided_coding host verification.

Validation

Submit each path through the public driver and compare terminal results. The canary exists only in the temporary fixture.

fangore_coding_write_guard — Refuse catastrophic gutting of an existing workspace module

Fangore starts guided coding on a workspace that already has a substantial module. A careless Completer tries to replace that module with a tiny broken stub. The coding tools refuse the write, the original module stays intact, and he records a short note that the gutting attempt was blocked. Complements fangore_coding_ci_repair.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding and ci_seed-style workspace seed write_guard_seed: healthy_module. write_file in build_coding_tool_registry applies CodingWriteGuard (min retain ratio, Python parse, retain some top-level defs). Static coding_tool_script: write_gutting_attempt issues the bad write then notes the refusal. verify_runs may also use min_bytes / python_parses.

Validation

Harness user_story stage 070_fangore_coding_write_guard.yaml in suite fangore_guided_coding. Asserts the seeded module still contains its public defs and .mechaharness/write_guard_note.md mentions refused/gutting. Unit coverage in tests/test_coding_write_guard.py.

fangore_completer_flavors — Wire same-lane Completer flavors without forking the library

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s product needs a deep code Completer beside the default reason Completer in one Config. He registers a second Named flavor and a small host harness that selects it with Annotated Matched tags — no marker-lane ABCs and no edits to MechaHarness enums.

Implementation

MechaHarnessConfig.completer_bindings() registers Named Completer tag sets (lane + host flavors). Host constructors declare Annotated[Completer, Named(...)] / Matched(...). CliInstrumentor verb check_completer_flavors exercises the blessed DI path. Bare inject(Completer) keeps the default aliased to InferenceStrategy.

Covers: same-lane Completer flavors via pyiv Named/Matched.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

  1. pyiv Named/Matched — Named / Matched / Annotated constructor injection

fangore_compound_grants__grant_gate_allowed — Compose read-only and write permission packs (grant_gate_allowed)

Fangore starts the CLI host with family tool_loop and backend mock. A read-only environment pack refuses the write tool; composing it with a write pack via environment.access_policy layers allows the same tool. He walks tool_loop and verifies permission_denied vs allowed. This stage covers the grant_gate_allowed scenario.

Implementation

AccessPolicy deny-by-default grants; CompoundPolicy unions packs via story environment.access_policy / Config get_access_policy. AccessControl enforces tool grants on the product tool_loop verb.

Validation

Harness user_story scenarios grant_gate_denied.yaml and grant_gate_allowed.yaml drive tool_loop with environment grants; expects permission_denied / allowed. Stage id fangore_compound_grants__grant_gate_allowed (scenario grant_gate_allowed).

fangore_compound_grants__grant_gate_denied — Compose read-only and write permission packs (grant_gate_denied)

Fangore starts the CLI host with family tool_loop and backend mock. A read-only environment pack refuses the write tool; composing it with a write pack via environment.access_policy layers allows the same tool. He walks tool_loop and verifies permission_denied vs allowed. This stage covers the grant_gate_denied scenario.

Implementation

AccessPolicy deny-by-default grants; CompoundPolicy unions packs via story environment.access_policy / Config get_access_policy. AccessControl enforces tool grants on the product tool_loop verb.

Validation

Harness user_story scenarios grant_gate_denied.yaml and grant_gate_allowed.yaml drive tool_loop with environment grants; expects permission_denied / allowed. Stage id fangore_compound_grants__grant_gate_denied (scenario grant_gate_denied).

fangore_config_access_policy — Let the host app supply its own permission policy

Fangore starts the CLI host with family pass_through and backend mock. His product needs permission rules defined by the application. He declares a compound access policy in the story environment, runs access_check, and verifies composed packs allow read/write while denying media — bound through Config DI, not Settings bags.

Implementation

MechaHarnessConfig hooks (get_access_policy, get_access_control, get_grants) bind host permission packs through pyiv injection. Story environment.access_policy / grants override those hooks; product verb access_check observes Config-injected AccessControl. Hosts also pass grants on run_recipe(...).

Validation

Harness user_story stage 030_fangore_config_access_policy.yaml drives access_check with environment compound policy; expects allows_compound / denies_missing.

fangore_context_compiler_deficit — Report context deficits instead of silent truncation

Fangore starts the CLI host with family pass_through and backend mock. Mandatory blockers must not disappear when the prompt budget is tight. Success is a deficit report with unresolved gaps named. Related observation chain: fangore_context_observation_chain.

Implementation

ContextCompiler builds a versioned ContextManifest with token estimates and unresolved gaps. Working context is ephemeral; obligations stay in authoritative stores.

Covers: CTX-05.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

  1. SoL-Pi — Empirical harness optimization and context mechanisms to evaluate

fangore_context_observation_chain — Keep original observations and refuse fabricated reductions

Fangore starts the CLI host with family pass_through and backend mock. Tool output must stay addressable as an immutable observation. A cheaper summary is allowed only when it points at a real observation; fabricated receipts must fail lookup. Compaction happens at semantic boundaries, and action fusion only for predeclared sequences. Compiler deficits remain fangore_context_compiler_deficit.

Implementation

ObservationStore / ObservationRef, reduce_evidence, compact_at_boundary, and fuse_actions under CtxFlags in mechaharness.context_experiments.

Covers: CTX-01, CTX-02, CTX-03, CTX-04.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

fangore_contract_extraction_found — Freeze verified discovery invariants into a ChangeContract

Fangore starts the CLI host with family pass_through and backend mock. He seeds a found WorkspaceInventory, walks contract_extraction hard/infer nodes, and verifies out.change_contract keeps immutable preserve invariants while accepting additional proposed constraints.

Implementation

invariant_freeze / contract_assemble / contract_validate in contract_hard_nodes; Agentic Recipe contract_extraction.

Validation

Suite stage 010_fangore_contract_extraction_found — status ok, immutable preserve id present once, validation ok.

Footnotes

  1. Gastronomic M6 contract found — Immutable priors cannot be dropped by the model

fangore_contract_extraction_shape — Instantiate the contract_extraction Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe contract_extraction and verifies freeze/propose/assemble/validate node ids.

Implementation

Agentic Recipe contract_extraction (ContractExtractionTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_contract_extraction_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 contract_extraction — Contract freeze before mutating coding

fangore_convergence_ceiling — Stop agent loops that make no progress

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s repair loop keeps asking the same question and getting the same answer. A versioned ceiling must end as no-progress — never fake success — and nested repair must share parent budget. Graph repeating nodes additionally require an explicit stop contract at linkage (fangore_graph_linkage_preflight). See inspiration requirements for stop contracts[25].

Implementation

ConvergenceGuard / ConvergenceContract; CliInstrumentor verb convergence_ceiling.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_conversational_tool_loop — Expand a conversational tool loop under a tools graph node

Fangore starts the CLI host with family pass_through and backend mock, and works with the conversational_tool_loop recipe. Fangore binds the library conversational tool-loop recipe so a chat tools step grows nested rounds — model complete then per-tool calls — inside the tools node’s checkpoint without pre-creating empty max-turn slots. A stop contract bounds the loop. Complements fangore_insp_stop_contract, fangore_node_components, and fangore_host_kit_event_tap. He walks product steps (run_recipe) and verifies completion from the structured observation expects on this scenario. [26]

Implementation

Agentic Recipe catalog id conversational_tool_loop (ConversationalToolLoopTemplate). CliInstrumentor verb run_recipe executes it via ConversationalToolLoopRunner, which expands tools.subgraph with nested inference and tool_call graph nodes per round. Soft points cover runner kinds, stop/max_iterations, message state, inference and tool dispatch. Bounds use existing StopContract / repeating fields.

Validation

Harness user_story stage 030_fangore_conversational_tool_loop.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_counter_bootstrap — Bootstrap a Counter package with a failing-then-green test

Fangore hands an expensive bootstrap to guided coding: a tiny library package plus a pytest that pins the public constructor contract. Live mode uses a real Completer; static mode uses multi-file coding_writes stubs. This stage is the multi-file successor to fangore_calc_parse_number.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.filesystem.type: suite, and multi-file coding_writes offline stubs. Live mode binds completer_as_tool_loop_complete. Host verify_runs include pytest: true and text_contains / text_forbids with repair.

Validation

Harness user_story stage 010_fangore_counter_bootstrap.yaml inside sequential suite counter_pkg (ordered). Live eligibility: environment.local_work: project_coding.

fangore_counter_cli — Add a CLI that drives Counter

Fangore opens the shared counter package workspace in the CLI host with pass_through and mock for static acceptance. He resumes guided_coding to add a thin command-line entry point over the existing library. He runs the CLI and package tests, checking that persistence and mutation still work.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.filesystem.type: suite, and multi-file coding_writes offline stubs. Live mode binds completer_as_tool_loop_complete. Host verify_runs include pytest: true and text_contains / text_forbids with repair.

Validation

Harness user_story stage 040_fangore_counter_cli.yaml inside sequential suite counter_pkg (ordered). Live eligibility: environment.local_work: project_coding.

fangore_counter_mutate — Add increment and decrement while tests stay green

Fangore opens the shared counter package workspace in the CLI host with pass_through and mock for static acceptance. He resumes guided_coding to add increment and decrement methods. He verifies completion by reading the changed package and running pytest, keeping the bootstrap API contract green.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.filesystem.type: suite, and multi-file coding_writes offline stubs. Live mode binds completer_as_tool_loop_complete. Host verify_runs include pytest: true and text_contains / text_forbids with repair.

Validation

Harness user_story stage 020_fangore_counter_mutate.yaml inside sequential suite counter_pkg (ordered). Live eligibility: environment.local_work: project_coding.

fangore_counter_persist — Persist Counter state to a JSON file

Fangore opens the shared counter package workspace in the CLI host with pass_through and mock for static acceptance. He resumes guided_coding to save and reload counts on disk. He runs the package tests and reads the persisted-state implementation so the next CLI stage can reuse the same package contract.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.filesystem.type: suite, and multi-file coding_writes offline stubs. Live mode binds completer_as_tool_loop_complete. Host verify_runs include pytest: true and text_contains / text_forbids with repair.

Validation

Harness user_story stage 030_fangore_counter_persist.yaml inside sequential suite counter_pkg (ordered). Live eligibility: environment.local_work: project_coding.

fangore_ctx_attr_evidence_survival — Count produced vs transferred evidence without false transfers

Fangore starts the CLI host with family pass_through and backend mock. Two workers produce identifiable findings; only one is delivered and transferred downstream. The survival report must distinguish produced, delivered, retained, transferred, and persisted counts, refuse to mark a never-produced id as transferred, and expose a narrow transfer yield. Extends context observation telemetry for Trouble MH-CTX-ATTR-02 (S4 transfer boundary).

Implementation

context_evidence_survival in mechaharness.context_surface aggregates unique observation ids per boundary and flags false transfers. Covers: MH-CTX-ATTR-02 / TR-20261029-CONTEXT-ATTRITION S4.

Validation

Harness user_story drives context_evidence_survival with deterministic id lists; hard expects on counts, false_transfer=false, and transfer yield. Unit coverage in tests/test_context_attrition_surface.py.

Footnotes

  1. Trouble TR-20261029-CONTEXT-ATTRITION — Evidence survival across graph boundaries

  2. Context Is a Pipeline, Not a Window (arXiv:2610.36114) — Produced vs delivered vs transferred metrics

fangore_ctx_attr_structured_tool_delivery — Disclose structured tool truncation instead of silent JSON slices

Fangore starts the CLI host with family pass_through and backend mock. A large structured tool result carries an early noise array and a late required culprit finding. Under a tight character budget the model-facing delivery must remain honest — either valid JSON that still contains required fields, or an explicit deficit naming omitted fields — never a prefix-sliced JSON fragment treated as success. Extends fangore_context_compiler_deficit / fangore_insp_context_compaction for Trouble MH-CTX-ATTR-01 (S1 produced→delivered).

Implementation

context_structured_tool_delivery in mechaharness.context_surface applies distill-style character budgets then fail-closes invalid structured delivery. Authoritative produced payload stays addressable via observation_id. Covers: MH-CTX-ATTR-01 / TR-20261029-CONTEXT-ATTRITION S1.

Validation

Harness user_story drives context_structured_tool_delivery with a synthetic oversized JSON tool payload; hard expects on deficit disclosure and silent_truncate=false. Unit coverage in tests/test_context_attrition_surface.py.

Footnotes

  1. Trouble TR-20261029-CONTEXT-ATTRITION — Context attrition across inference boundaries

  2. Context Is a Pipeline, Not a Window (arXiv:2610.36114) — Structured tool-result truncation evidence

fangore_decision_plane_model_policy — Bind a decision model flavor without baking size into the recipe

Fangore starts the CLI host with family pass_through and backend mock. He soft-binds decision_model on the decision_plane recipe without baking a parameter count into the template, runs run_recipe, and verifies ask_batch carries the flavor ref. [27]

Implementation

Agentic Recipe decision_plane soft point decision_model via run_recipe / DecisionPlaneRecipeAdapter.

Validation

user_story model_soft_point.yaml run_recipe; soft_point_decision_model / ask_model_ref.

Footnotes

fangore_decision_plane_policy__accept_billing — Let code own the final decision-plane action with escalation (accept_billing)

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with batched triage questions and fixture answers. He performs run_recipe and verifies code-owned policy accepts billing, rejects illegal choices, and escalates below the confidence floor. [28] [29] [30] [31] This stage covers the accept_billing scenario.

Implementation

Agentic Recipe decision_plane via AskBatchRunner / ApplyPolicyRunner / run_decision_plane_policy. Product CLI verb run_recipe with DecisionPlaneRecipeAdapter.

Validation

Harness user_story scenarios accept_billing.yaml, invalid_team.yaml, low_confidence.yaml drive run_recipe; hard expects on final_action / escalate keys. Stage id fangore_decision_plane_policy__accept_billing (scenario accept_billing).

Footnotes

fangore_decision_plane_policy__invalid_team — Let code own the final decision-plane action with escalation (invalid_team)

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with batched triage questions and fixture answers. He performs run_recipe and verifies code-owned policy accepts billing, rejects illegal choices, and escalates below the confidence floor. [28] [29] [30] [31] This stage covers the invalid_team scenario.

Implementation

Agentic Recipe decision_plane via AskBatchRunner / ApplyPolicyRunner / run_decision_plane_policy. Product CLI verb run_recipe with DecisionPlaneRecipeAdapter.

Validation

Harness user_story scenarios accept_billing.yaml, invalid_team.yaml, low_confidence.yaml drive run_recipe; hard expects on final_action / escalate keys. Stage id fangore_decision_plane_policy__invalid_team (scenario invalid_team).

fangore_decision_plane_policy__low_confidence — Let code own the final decision-plane action with escalation (low_confidence)

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with batched triage questions and fixture answers. He performs run_recipe and verifies code-owned policy accepts billing, rejects illegal choices, and escalates below the confidence floor. [28] [29] [30] [31] This stage covers the low_confidence scenario.

Implementation

Agentic Recipe decision_plane via AskBatchRunner / ApplyPolicyRunner / run_decision_plane_policy. Product CLI verb run_recipe with DecisionPlaneRecipeAdapter.

Validation

Harness user_story scenarios accept_billing.yaml, invalid_team.yaml, low_confidence.yaml drive run_recipe; hard expects on final_action / escalate keys. Stage id fangore_decision_plane_policy__low_confidence (scenario low_confidence).

fangore_decision_plane_projection — Project decision state and facts without calling a model

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with a deliberate projection bind (ticket + channel; secret omitted). He performs run_recipe and verifies the project_state node omits secrets, records facts fingerprints, and never invokes a model. [32] [33]

Implementation

Agentic Recipe decision_plane via DecisionPlaneTemplate and ProjectStateRunner / project_decision_state. Product CLI verb run_recipe with DecisionPlaneRecipeAdapter.

Validation

Harness user_story stage 060_fangore_decision_plane_projection.yaml drives run_recipe with bind path; hard expects on projection/facts observation keys.

Footnotes

fangore_decision_plane_recipe — Run a typed decision-plane Agentic Recipe with batched questions

Fangore starts the CLI host with family pass_through and backend mock. He soft-binds questions/state/facts on the decision_plane Agentic Recipe, runs it via run_recipe, and verifies the typed batch path yields a code-owned final action. [34]

Implementation

Agentic Recipe decision_plane via DecisionPlaneTemplate runners and product verb run_recipe (DecisionPlaneRecipeAdapter).

Validation

user_story template_shape.yaml run_recipe; template_name/has_soft_point/final_action.

Footnotes

fangore_decision_plane_shadow — Shadow a small decision model without giving it control

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with shadow_mode and divergent production vs shadow fixture answers. He performs run_recipe and verifies production still controls while both outcomes are recorded and disagree. [35]

Implementation

Agentic Recipe decision_plane via ShadowAskRunner / compare_shadow_decision semantics. Product CLI verb run_recipe with DecisionPlaneRecipeAdapter.

Validation

Harness user_story stage 080_fangore_decision_plane_shadow.yaml drives run_recipe; hard expects on production_action / agreement keys.

Footnotes

fangore_decision_plane_telemetry — Export evaluation-ready decision-plane telemetry without raw context

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe decision_plane with projection, fixture answers, model_ref, and a raw body that must not appear in telemetry. He performs run_recipe and verifies evaluation-ready fields without raw context. [36] [37]

Implementation

Agentic Recipe decision_plane via build_decision_plane_telemetry / DecisionPlaneRecipeAdapter. Product CLI verb run_recipe.

Validation

Harness user_story stage 090_fangore_decision_plane_telemetry.yaml drives run_recipe; hard expects on telemetry observation keys.

Footnotes

fangore_decision_surface_reject — Reject model choices that are not on the allowed list

Fangore starts the CLI host with family pass_through and backend mock. A triage model returns a team name that was never on the allowed set. The product must treat that as a rejected proposal. Only product judgement policy may unlock the next action — same split as fangore_refund_verdict.

Implementation

DecisionSurface / reject_invalid_choice / RulesDecisionBackend in mechaharness.decision_surfaces name the decision plane over judge signal types. Surfaces produce signals; they do not execute side effects. Agentic Recipe decision_plane uses these envelopes in mechaharness.decision_plane_runtime (fangore_decision_plane_policy).

Covers: POL-01.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

fangore_delegate_guidance_thorough — Honor thorough guidance by shipping code and README together

Fangore continues the shared Widget workspace and answers the external guidance soft point with thorough so the delegate must ship the code change and a README in the same burst — proving mid-arc human direction changes artifacts, not only labels.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.workspace: suite, soft point external_guidance (choices minimal/thorough), and budget soft point max_iterations. List stages pass instruction_mode: list into ProjectCodingLocalWork / build_instruction_plan. Host verify_runs include pytest: true and text_contains / text_forbids with repair. Live mode binds completer_as_tool_loop_complete; static coding_writes are provisional until the live suite passes. MCP MECHA_MCP_HOST=project_coding drives the same DurableGraphGenerator graph (no separate suite).

Validation

Harness user_story stage 020_fangore_delegate_guidance_thorough.yaml inside sequential suite delegate_pkg (ordered). Live eligibility: environment.local_work: project_coding. Do not treat static/cassette green as proof until live Completer on the suite host has passed.

fangore_delegate_list_bootstrap — Bootstrap a Widget package from a numbered todo list

Fangore hands a multi-step bootstrap as an ordered instruction list so guided coding classifies list mode and runs a coding burst per todo under shared workspace acceptance. Live Completer is the proof gate; static multi-file stubs are only a provisional mirror. Complements fangore_instruction_todo_plan (plan-only) and fangore_counter_bootstrap (oneshot package bootstrap).

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.workspace: suite, soft point external_guidance (choices minimal/thorough), and budget soft point max_iterations. List stages pass instruction_mode: list into ProjectCodingLocalWork / build_instruction_plan. Host verify_runs include pytest: true and text_contains / text_forbids with repair. Live mode binds completer_as_tool_loop_complete; static coding_writes are provisional until the live suite passes. MCP MECHA_MCP_HOST=project_coding drives the same DurableGraphGenerator graph (no separate suite).

Validation

Harness user_story stage 010_fangore_delegate_list_bootstrap.yaml inside sequential suite delegate_pkg (ordered). Live eligibility: environment.local_work: project_coding. Do not treat static/cassette green as proof until live Completer on the suite host has passed.

fangore_delegate_matched_trials — Compare repeated package trials only under matching budgets

Fangore records a successful repair and a regression for each recipe. He compares the batch at equal budgets, then increases only the second arm’s token ceiling. The summary must reject the second comparison.

Implementation

assemble_gastronomic_trial and summarize_gastronomic_comparison aggregate host trial records.

Validation

Use the same model, suite and outcomes in both batches. Require two trials, a half-success rate, correct comparability and no automatic winner. Fixture records exercise offline accounting.

fangore_delegate_mcp_repair — Resume a package bug through MCP and replay the answer

Fangore receives an existing Gadget checkout and an issue about singular item labels. He reproduces the failure, restarts the MCP driver at guidance, submits an answer, and repeats that same answer after the edit. He reruns every package test and reads the editor’s draft.

Implementation

GeneratorMcpServer, FileGeneratorRunStore and ProjectCodingLocalWork drive the handoff with a file-backed store. Static uses scripted writes. Live uses the configured Completer.

Validation

Require red before the handoff and green after applying the actual diff to a fresh copy of the starting tree. Compare response and file versions across replay, and preserve the editor’s draft.

fangore_delegate_red_green — Add a failing test then implement until pytest is green

Fangore asks the delegate to fix from a red test: pin double() in pytest first, then implement until the suite is green under verify_repair — the classic expensive coding handoff.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.workspace: suite, soft point external_guidance (choices minimal/thorough), and budget soft point max_iterations. List stages pass instruction_mode: list into ProjectCodingLocalWork / build_instruction_plan. Host verify_runs include pytest: true and text_contains / text_forbids with repair. Live mode binds completer_as_tool_loop_complete; static coding_writes are provisional until the live suite passes. MCP MECHA_MCP_HOST=project_coding drives the same DurableGraphGenerator graph (no separate suite).

Validation

Harness user_story stage 030_fangore_delegate_red_green.yaml inside sequential suite delegate_pkg (ordered). Live eligibility: environment.local_work: project_coding. Do not treat static/cassette green as proof until live Completer on the suite host has passed.

fangore_delegate_refactor — Rename Widget to Gadget without breaking tests

Fangore finishes the delegate arc with a rename refactor: the public type moves from Widget to Gadget while pytest and docs stay honest — proving the handoff can reshape APIs without contract drift.

Implementation

Agentic Recipe catalog id guided_coding with environment.local_work: project_coding, environment.workspace: suite, soft point external_guidance (choices minimal/thorough), and budget soft point max_iterations. List stages pass instruction_mode: list into ProjectCodingLocalWork / build_instruction_plan. Host verify_runs include pytest: true and text_contains / text_forbids with repair. Live mode binds completer_as_tool_loop_complete; static coding_writes are provisional until the live suite passes. MCP MECHA_MCP_HOST=project_coding drives the same DurableGraphGenerator graph (no separate suite).

Validation

Harness user_story stage 040_fangore_delegate_refactor.yaml inside sequential suite delegate_pkg (ordered). Live eligibility: environment.local_work: project_coding. Do not treat static/cassette green as proof until live Completer on the suite host has passed.

fangore_delegate_trial_cost — Count verified edits separately from the checks that passed

Fangore records a package repair with three checks and one changed file. He reopens the package, finds the second stage already satisfied, and audits the run’s edits and inference cost.

Implementation

trial_from_suite_run reads a manifest and timing stream and returns the host comparison record.

Validation

Read the recorded fields from a file-backed fixture. Require one verified edit, one repair and the measured model calls, tool calls and tokens.

fangore_delegate_verified_noop — Reopen the verified package without a second edit

Fangore starts a fresh session against the preceding checkpoint. He asks for the same label fix, runs the full package checks and expects an already-satisfied handoff with an empty change list.

Implementation

ProjectCodingLocalWork runs verify_runs on the shared workspace before invoking inference.

Validation

Stage 060 has no seed or scripted patch. It can only pass after the repaired package survives the preceding checkpoint.

fangore_derived_memory — Rebuild derived memory without letting rank invent authority

Fangore starts the CLI host with pass_through and mock. He supplies event records and a consolidation boundary to derived_memory, then repeats consolidation to check idempotence. He also supplies a high-ranked rumor and a low-ranked rule. The report filters their caller-provided authority labels, identifies only the rule, and states authority_origin=caller_labels. No rank or consolidation step creates an actual grant.

Implementation

DerivedMemoryStore.consolidate_from/current/apply/as_of are public APIs. The runner never writes private publication state; supplied authority labels are reported separately from event consolidation.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

fangore_development_acceptance_completed — Green host gates yield completed DevelopmentOutcome

Fangore starts the CLI host with family pass_through and backend mock. He walks development_acceptance against green contract/verify/execution and continue_or_accept revision, and verifies out.development_outcome.outcome is completed.

Implementation

acceptance_* hard nodes; Agentic Recipe development_acceptance.

Validation

Suite stage 010_fangore_development_acceptance_completed — outcome completed.

Footnotes

  1. Gastronomic M6 acceptance completed — completed must be backed by host gates, not model text

fangore_development_acceptance_failed — Failed verification yields failed DevelopmentOutcome

Fangore starts the CLI host with family pass_through and backend mock. He walks development_acceptance against a failed VerificationReport and stop revision, and verifies outcome failed.

Implementation

acceptance_* hard nodes; Agentic Recipe development_acceptance.

Validation

Suite stage 020_fangore_development_acceptance_failed — outcome failed.

Footnotes

  1. Gastronomic M6 acceptance failed — Host-observed failures mark failed, not completed

fangore_development_acceptance_guidance — Yielding revision becomes needs_guidance

Fangore starts the CLI host with family pass_through and backend mock. He walks development_acceptance against a strategy_revision disposition yield_guidance and verifies outcome needs_guidance.

Implementation

acceptance_* hard nodes; Agentic Recipe development_acceptance.

Validation

Suite stage 015_fangore_development_acceptance_guidance — needs_guidance.

Footnotes

  1. Gastronomic M6 acceptance guidance — Open guidance must not mark completed

fangore_development_acceptance_judge_advisory — Advisory judge cannot override failed host gates

Fangore starts the CLI host with family pass_through and backend mock. He walks development_acceptance with failed verification and a judge_opinion verdict completed, and verifies the published outcome remains failed while provenance retains the advisory opinion.

Implementation

acceptance_* hard nodes; Agentic Recipe development_acceptance.

Validation

Suite stage 025_fangore_development_acceptance_judge_advisory — judge advisory only.

Footnotes

  1. Gastronomic M6 acceptance judge advisory — Optional independent judge never replaces host evidence

fangore_development_acceptance_shape — Instantiate the development_acceptance Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe development_acceptance and verifies constrain/decide/publish/validate node ids.

Implementation

Agentic Recipe development_acceptance (DevelopmentAcceptanceTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_development_acceptance_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 development_acceptance — Final host outcome gate after revise

fangore_development_acceptance_validate_errors — acceptance_validate reports schema errors without failing the node

Fangore starts the CLI host with family pass_through and backend mock. He seeds a malformed DevelopmentOutcome into the bag, runs acceptance_validate with fail_if_invalid false, and verifies the validation receipt lists errors while the walk stays ok.

Implementation

acceptance_validate in acceptance_hard_nodes; validate_development_outcome.

Validation

Suite stage 030_fangore_development_acceptance_validate_errors — validation.ok false.

Footnotes

  1. Gastronomic M6 acceptance validate errors — Validate is a schema report; hosts decide whether to hard-fail

fangore_environment_repair_recipe — Run the environment repair Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. Before dependent work continues, he runs Agentic Recipe environment_repair: diagnose missing substrate, attempt a bounded repair, then recheck until the environment is ok — without calling a model. Related linkage failures remain nubble_insp_environment_linkage. [38]

Implementation

Agentic Recipe environment_repair via EnvironmentRepairTemplate / environment_repair_runner and product verb run_recipe (EnvironmentRepairRecipeAdapter).

Validation

Harness user_story stage 040_fangore_environment_repair_recipe.yaml drives run_recipe; expects environment_ok / repair_attempts plus shape keys.

Footnotes

fangore_failure_diagnosis_classify — Classify host-observed verify failures into a typed Diagnosis

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against a failed VerificationReport whose evidence cites a pytest exit mismatch, and verifies out.diagnosis names failure_class semantics with a distinct next_experiment.

Implementation

diagnosis_constrain / diagnosis_classify / diagnosis_publish / diagnosis_validate in diagnosis_hard_nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 010_fangore_failure_diagnosis_classify — status ok, failure_class semantics.

Footnotes

  1. Gastronomic M6 diagnosis classify — Evidence-linked failure classification and distinct next experiment

fangore_failure_diagnosis_green — Green verification yields failure_class none

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against an ok VerificationReport and verifies failure_class none with next_experiment continue_or_accept.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 030_fangore_failure_diagnosis_green — failure_class none.

Footnotes

  1. Gastronomic M6 diagnosis green — Diagnosis must be honest when verification already passed

fangore_failure_diagnosis_incomplete — Failed report with empty evidence is incomplete none

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against a failed VerificationReport that carries no evidence rows, and verifies diagnosis status incomplete with failure_class none.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 055_fangore_failure_diagnosis_incomplete — status incomplete.

Footnotes

  1. Gastronomic M6 diagnosis incomplete — Incomplete evidence must not invent a failure class

fangore_failure_diagnosis_regression — Classify regression when unchanged invariants fail

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against a VerificationReport whose regression block marks unchanged invariants false, and verifies out.diagnosis.failure_class is regression.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 015_fangore_failure_diagnosis_regression — failure_class regression.

Footnotes

  1. Gastronomic M6 diagnosis regression — Old invariants remain green is an acceptance gate; failed invariants diagnose as regression

fangore_failure_diagnosis_repeat — Repeat failure class forces a changed next experiment

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis with budget exhaustion evidence and a prior_attempts row already labeling budget, and verifies next_experiment changes strategy instead of repeating the same fix.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 035_fangore_failure_diagnosis_repeat — change_strategy_after_repeat_budget.

Footnotes

  1. Gastronomic M6 diagnosis repeat — Repeated identical failure cannot cause unbounded retries

fangore_failure_diagnosis_runtime — Classify runtime from traceback evidence

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against VerificationReport failures that cite a Traceback ImportError, and verifies out.diagnosis.failure_class is runtime.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 040_fangore_failure_diagnosis_runtime — failure_class runtime.

Footnotes

  1. Gastronomic M6 diagnosis runtime — Distinguish runtime exceptions from assertion semantics

fangore_failure_diagnosis_scope — Classify scope escape from ChangeExecution refusals

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis with a green-looking verification report but a ChangeExecution that refused a scope_escape write, and verifies failure_class scope.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 025_fangore_failure_diagnosis_scope — failure_class scope.

Footnotes

  1. Gastronomic M6 diagnosis scope — Scope escape must surface as a distinct diagnosis class

fangore_failure_diagnosis_shape — Instantiate the failure_diagnosis Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe failure_diagnosis and verifies constrain/classify/publish/validate node ids.

Implementation

Agentic Recipe failure_diagnosis (FailureDiagnosisTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_failure_diagnosis_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 failure_diagnosis — Evidence-linked Diagnosis after verification

fangore_failure_diagnosis_syntax — Classify syntax from python_parses verify failures

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against verify_runs evidence citing a python_parses SyntaxError and verifies failure_class syntax.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 020_fangore_failure_diagnosis_syntax — failure_class syntax.

Footnotes

  1. Gastronomic M6 diagnosis syntax — Distinguish syntax from semantics

fangore_failure_diagnosis_tool_protocol — Classify tool_protocol from malformed tool_call evidence

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against VerificationReport failures that cite a malformed tool_call JSON payload, and verifies out.diagnosis.failure_class is tool_protocol.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 045_fangore_failure_diagnosis_tool_protocol — failure_class tool_protocol.

Footnotes

  1. Gastronomic M6 diagnosis tool_protocol — Protocol shape failures are distinct from semantics

fangore_failure_diagnosis_unknown — Unclassified host evidence yields failure_class unknown

Fangore starts the CLI host with family pass_through and backend mock. He walks failure_diagnosis against VerificationReport failures whose text matches no known class rule, and verifies out.diagnosis.failure_class is unknown.

Implementation

diagnosis_* hard nodes; Agentic Recipe failure_diagnosis.

Validation

Suite stage 050_fangore_failure_diagnosis_unknown — failure_class unknown.

Footnotes

  1. Gastronomic M6 diagnosis unknown — Unknown must not invent a class; next experiment gathers more evidence

fangore_failure_diagnosis_validate_errors — diagnosis_validate reports schema errors without failing the node

Fangore starts the CLI host with family pass_through and backend mock. He seeds a malformed Diagnosis into the bag, runs diagnosis_validate with fail_if_invalid false, and verifies the validation receipt lists errors while the walk stays ok.

Implementation

diagnosis_validate in diagnosis_hard_nodes; validate_diagnosis.

Validation

Suite stage 060_fangore_failure_diagnosis_validate_errors — validation.ok false.

Footnotes

  1. Gastronomic M6 diagnosis validate errors — Validate is a schema report; hosts decide whether to hard-fail

fangore_gastronomic_calc_add_sub — Gastronomic Completer propose extends calc with add and sub

Fangore continues the shared gastronomic calc arc. He Completer-proposes an in-scope revision that adds left-associative + and -, applies it, verifies regressions, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution; comparison_assemble.

Validation

Suite stage 020_fangore_gastronomic_calc_add_sub — arm B trial success.

Footnotes

  1. Gastronomic calc arm B add/sub — Sequential gastronomic execute on shared calc workspace

fangore_gastronomic_calc_exponent — Gastronomic Completer propose adds right-associative exponent

Fangore continues the shared gastronomic calc arc. He Completer-proposes right-associative ^ without breaking earlier precedence, applies it, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution; comparison_assemble.

Validation

Suite stage 040_fangore_gastronomic_calc_exponent — arm B trial success.

Footnotes

  1. Gastronomic calc arm B exponent — Sequential gastronomic execute on shared calc workspace

fangore_gastronomic_calc_functions — Gastronomic Completer propose adds calculator functions

Fangore finishes the gastronomic calc arc by Completer-proposing common functions (sqrt, abs, sin/cos/tan, ln/log, min/max) composable with prior operators, applies the revision, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution; comparison_assemble.

Validation

Suite stage 060_fangore_gastronomic_calc_functions — arm B trial success.

Footnotes

  1. Gastronomic calc arm B functions — Sequential gastronomic execute on shared calc workspace

fangore_gastronomic_calc_grouping — Gastronomic Completer propose adds parentheses grouping

Fangore continues the shared gastronomic calc arc. He Completer-proposes parentheses that override precedence, applies the revision, verifies regressions, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution; comparison_assemble.

Validation

Suite stage 050_fangore_gastronomic_calc_grouping — arm B trial success.

Footnotes

  1. Gastronomic calc arm B grouping — Sequential gastronomic execute on shared calc workspace

fangore_gastronomic_calc_mul_div — Gastronomic Completer propose adds mul and div precedence

Fangore continues the shared gastronomic calc arc. He Completer-proposes multiplication and division that bind tighter than + and -, applies the revision, verifies regressions, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution; comparison_assemble.

Validation

Suite stage 030_fangore_gastronomic_calc_mul_div — arm B trial success.

Footnotes

  1. Gastronomic calc arm B mul/div — Sequential gastronomic execute on shared calc workspace

fangore_gastronomic_calc_parse_number — Gastronomic Completer propose bootstraps calc number literals

Fangore starts the CLI host with family pass_through and backend mock on a shared suite workspace. He walks gastronomic change_execution Completer propose → materialize → apply for calc.py number literals, verifies evaluate/main on disk, runs 42 and 3.14, and records an arm-B trial.

Implementation

execution_constrain / infer propose / execution_materialize / execution_apply / verification_*; Agentic Recipe change_execution under gastronomic arm B; comparison_assemble.

Validation

Suite stage 010_fangore_gastronomic_calc_parse_number — arm B trial success.

Footnotes

  1. Gastronomic calc arm B bootstrap — Completer-propose execute path for fair calc comparison

fangore_gastronomic_comparison_live_status — Live A/B status marks arm B not_run without fabricating results

Fangore starts the CLI host with family pass_through and backend mock. He seeds one recorded arm-A trial, walks comparison_live_status with endpoint configured, and verifies arm B status is not_run while winner stays null.

Implementation

comparison_live_status; live_comparison_status / ARM_B_LIVE_BLOCKER.

Validation

Suite stage 020_fangore_gastronomic_comparison_live_status — B not_run.

Footnotes

  1. Gastronomic live comparison status — Missing arms stay not_run until Completer-driven gastronomic execute exists

fangore_gastronomic_comparison_shape — Instantiate the gastronomic_comparison Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe gastronomic_comparison and verifies assemble/validate node ids.

Implementation

Agentic Recipe gastronomic_comparison (GastronomicComparisonTemplate).

Validation

Suite stage 015_fangore_gastronomic_comparison_shape — template_name and node ids.

Footnotes

  1. Gastronomic comparison recipe — Trial-record recipe for fair A/B logging

fangore_gastronomic_comparison_summary — Summarize A/B trials without declaring a winner

Fangore starts the CLI host with family pass_through and backend mock. He walks comparison_summarize over one guided_coding arm-A trial and one gastronomic arm-B trial, and verifies comparable_ab true while winner stays null.

Implementation

comparison_summarize in comparison_hard_nodes; summarize_gastronomic_comparison.

Validation

Suite stage 010_fangore_gastronomic_comparison_summary — winner null.

Footnotes

  1. Gastronomic comparison summary — Aggregates never auto-declare a winner

fangore_gastronomic_comparison_timing_metrics — Derive arm-A trial metrics from suite TIMING events

Fangore starts the CLI host with family pass_through and backend mock. He seeds suite TIMING events for a completed calc_cli arc, walks comparison_metrics_from_timing then comparison_assemble for arm A, and verifies stages_passed 6 with success true.

Implementation

comparison_metrics_from_timing / comparison_assemble; metrics_from_suite_timing.

Validation

Suite stage 015_fangore_gastronomic_comparison_timing_metrics — arm A success.

Footnotes

  1. Gastronomic comparison from suite timing — Hosts record arm A from TIMING.jsonl without inventing tokens

fangore_gastronomic_comparison_trial — Assemble a gastronomic arm-B trial from DevelopmentOutcome

Fangore starts the CLI host with family pass_through and backend mock. He walks comparison_assemble against a completed DevelopmentOutcome and host metrics for arm B, validates the trial record, and verifies success with recipe gastronomic_guided_development.

Implementation

comparison_assemble / comparison_validate; Agentic Recipe gastronomic_comparison.

Validation

Suite stage 005_fangore_gastronomic_comparison_trial — arm B success true.

Footnotes

  1. Gastronomic comparison trial — Comparable trial records without inventing a winner

fangore_gastronomic_guided_development_shape — Instantiate gastronomic_guided_development discovery→…→accept tiles

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe gastronomic_guided_development and verifies discovery_tile through accept_tile subgraphs without mutating guided_coding.

Implementation

Agentic Recipe gastronomic_guided_development (GastronomicGuidedDevelopmentTemplate) tiles workspace_discovery, contract_extraction, change_decomposition, change_execution, change_verification, failure_diagnosis, strategy_revision, and development_acceptance.

Validation

Suite stage 020_fangore_gastronomic_guided_development_shape — template_name and tile node ids.

Footnotes

  1. Gastronomic M6 product recipe — Product recipe through development_acceptance

fangore_gastronomic_offline_e2e_completed — Offline late-stage gastronomic path yields completed trial

Fangore starts the CLI host with family pass_through and backend mock. He seeds a calculator workspace with a multiply helper, walks host verification through diagnosis, revision, acceptance, and comparison trial assemble, and verifies out.development_outcome.outcome is completed with an arm-B trial success true.

Implementation

verification_*, diagnosis_*, revision_*, acceptance_*, comparison_* hard nodes; recipes change_verification, failure_diagnosis, strategy_revision, development_acceptance, gastronomic_comparison.

Validation

Suite stage 010_fangore_gastronomic_offline_e2e_completed — completed + trial success.

Footnotes

  1. Gastronomic offline e2e completed — Machine-readable DevelopmentOutcome without live model

fangore_gastronomic_offline_e2e_failed — Offline late-stage gastronomic path yields failed trial

Fangore starts the CLI host with family pass_through and backend mock. He walks diagnosis through acceptance and comparison against a failed VerificationReport with exhausted retry budget, and verifies out.development_outcome.outcome is failed with trial success false.

Implementation

diagnosis_*, revision_*, acceptance_*, comparison_* hard nodes.

Validation

Suite stage 020_fangore_gastronomic_offline_e2e_failed — failed + trial success false.

Footnotes

  1. Gastronomic offline e2e failed — Failed host gates produce failed DevelopmentOutcome and unsuccessful trial

fangore_graph_executor — Run a local plan through an authorized graph executor

Fangore starts the CLI host with family pass_through and backend mock. Fangore ships a host app with a produce → repair → consume plan. After linkage succeeds, the library must walk ready steps, refuse execution without an execute grant, retry transient failures, escalate when retries are exhausted, emit start and end telemetry, and finish the downstream consume step only after upstream success. Checkpointed plans from fangore_local_plan_resume stay durable; preflight failures are covered by fangore_graph_linkage_preflight. See inspiration requirements for authorized graph execution[39].

Implementation

GraphExecutor in mechaharness.graph_executor is a pyiv injectable: constructor takes EventLog, AccessControl, GraphNodeRunnerRegistry, GraphFailurePolicy, GraphEscalation, and LinkageResolver. Hosts register node runners by open kind string via MechaHarnessConfig.get_node_runner_registry(), override failure/escalation/linkage hooks, and grant core:graph.execute / core:graph.escalate. The executor emits core:graph_start / core:graph_end plus per-node events. CliInstrumentor verb graph_executor_run exercises the path.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

  1. Loop vs graph engineering — Executor advances durable plans hosts define

fangore_graph_linkage_preflight — Fail closed on missing graph linkage before work starts

Fangore starts the CLI host with family pass_through and backend mock. Fangore composes a plan that still names a step the host has not wired, and another repeating step without a stop rule. The library must refuse those plans before any runner work starts, naming the missing edge so operators can fix wiring instead of debugging a mid-run crash. Complements fangore_graph_executor (authorized run once linkage is sound) and fangore_convergence_ceiling (budgets once a loop is allowed). See the inspiration requirements for linkage versus dependency injection and stop contracts[40].

Implementation

DefaultLinkageResolver preflight; CliInstrumentor verb graph_linkage_preflight.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_graph_one_step — Advance a graph one frontier node per step

Fangore starts the CLI host with family pass_through and backend mock. He loads a linear three-node inline graph and uses graph_walk start/step so each step executes exactly one leaf. Tracks SG-04/09[41].

Implementation

RunControl(mode=one_step) on GraphExecutor.run; CLI graph_walk actions start / step / continue.

Validation

Harness user_story stage 040_fangore_graph_one_step.yaml.

Footnotes

fangore_graph_soft_enter — Entering a soft subgraph node pauses before the first child

Fangore starts the CLI host with family pass_through and backend mock. He loads an inline graph whose only root is a subgraph (soft call site). One graph_walk step enters the call frame and stops before the child’s first node — no child runner has executed yet. A following step runs the first child. Tracks SG-05[42].

Implementation

GraphExecutor._enter_subgraph_node on one_step when the frontier is a subgraph; parent stays RUNNING with entered; child checkpointed under run_id:node_id.

Validation

Harness user_story stage 050_fangore_graph_soft_enter.yaml.

Footnotes

fangore_graph_template_soft_points — Instantiate a reusable graph template with soft points

Fangore starts the CLI host with family pass_through and backend mock, and works with the fan_out_aggregate recipe. Fangore picks the library fan-out Agentic Recipe, fills only the soft points the host owns (branch payloads, runner kind names, acceptance), and keeps the resulting concrete plan in the host app. The skeleton must stamp which recipe produced it so later upgrades can detect drift. Independent-review and verify-repair recipes follow the same GraphTemplate pattern. He walks product steps (instantiate_recipe, recipe_plan) and verifies completion from the structured observation expects on this scenario. [43][44] Related: fangore_insp_soft_evolution_allowlist.

Implementation

Agentic Recipes are concrete GraphTemplate subclasses in mechaharness.graph_templates. Catalog ids include fan_out_aggregate (this story’s primary exercise), verify_repair, independent_review, environment_repair, and initialize_preflight. Each declares SoftPoints; GraphTemplate.instantiate builds via build then stamps template_name, template_version, template_status, and optional source_workflow_ref. Demoted templates refuse instantiate. Bound via MechaHarnessConfig.get_graph_template_registry().

Validation

Harness user_story stage 060_fangore_graph_template_soft_points.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_graph_until_before — Pause a graph walk before a named node

Fangore starts the CLI host with family pass_through and backend mock. He loads an inline two-node graph and runs graph_walk with until the second node and stop: before. The first node has succeeded; the second is ready but not executed. He continues and the second node completes. Tracks stepped graph control SG-02/06/09[45].

Implementation

RunControl(mode=until, stop=before) on GraphExecutor.run; product verb graph_walk; optional graph.inline on user_story YAML.

Validation

Harness user_story stage 070_fangore_graph_until_before.yaml.

Footnotes

fangore_guided_coding_recipe__helper_run_python — Guide local coding via the guided_coding Agentic Recipe (helper_run_python)

Fangore starts the CLI host with family pass_through and backend mock, loads the guided_coding durable graph (controller story, store memory). He wants Cursor to answer only short engineering direction while a project-local MechaHarness process classifies oneshot vs todo list and does the token-heavy file edits under pre/item/post acceptance. Start yields advice_requested from soft point external_guidance; he answers minimal in a later call and the run completes. In a workspace-backed walk he has the agent write a small helper module, confirms the file on disk, and runs Python against it to check stdout. Git inspect and mocked pull-request handoffs are owned by fangore_coding_git_inspect and fangore_coding_git_open_pr. Complements fangore_instruction_todo_plan, fangore_insp_graph_guidance_yield, and fangore_conversational_tool_loop. He walks product steps (start, answer, workspace_read, run_python) and verifies completion from the structured observation expects on each scenario. This stage covers the helper_run_python scenario.

Implementation

Agentic Recipe catalog id guided_coding (GuidedCodingTemplate) tiles instruction_todo_plan and audited_infer_accept under plan_tile / audit_tile with soft point external_guidance (kind=guidance). MCP MECHA_MCP_HOST=project_coding binds ProjectCodingConfig (workspace coding tools + GeneratorLocalWork / ProjectCodingLocalWork burst after guidance, including request_guidance restart for plan refinement). Injectable CodingGit (default LocalProcessCodingGit; story/CI often RecordingPullRequestCodingGit) backs optional git/PR tools — see fangore_coding_git_inspect / fangore_coding_git_open_pr. Story hosts bind environment.local_work: project_coding with a temp workspace and optional coding_write stub. ProjectCodingLocalWork records written_files / workspace_root on the completed yield. Product verbs workspace_read and run_python put file text and stdout/stderr/exit_code into the step observation bag. DurableGraphGenerator._advance invokes the injectable local-work hook when the guidance queue is empty.

Validation

Harness user_story scenarios session.yaml (NoOp guidance smoke) and helper_run_python.yaml (project_coding workspace write + workspace_read + run_python expects). Both scenarios pin generator counters (guidance_yields / resumes / local_steps) and tapped_event_types / event_types so unexpected durable or coding-graph executions fail hard. Unit tests tests/test_project_coding.py (including git tool confinement / unsafe-ref rejection), tests/test_guided_coding_recipe.py, and tests/test_cli_workspace_verbs.py cover tools confinement, plan/audit tile topology, offline local-work file write, and workspace verbs. Stage id fangore_guided_coding_recipe__helper_run_python (scenario helper_run_python).

fangore_guided_coding_recipe__session — Guide local coding via the guided_coding Agentic Recipe (session)

Fangore starts the CLI host with family pass_through and backend mock, loads the guided_coding durable graph (controller story, store memory). He wants Cursor to answer only short engineering direction while a project-local MechaHarness process classifies oneshot vs todo list and does the token-heavy file edits under pre/item/post acceptance. Start yields advice_requested from soft point external_guidance; he answers minimal in a later call and the run completes. In a workspace-backed walk he has the agent write a small helper module, confirms the file on disk, and runs Python against it to check stdout. Git inspect and mocked pull-request handoffs are owned by fangore_coding_git_inspect and fangore_coding_git_open_pr. Complements fangore_instruction_todo_plan, fangore_insp_graph_guidance_yield, and fangore_conversational_tool_loop. He walks product steps (start, answer, workspace_read, run_python) and verifies completion from the structured observation expects on each scenario. This stage covers the session scenario.

Implementation

Agentic Recipe catalog id guided_coding (GuidedCodingTemplate) tiles instruction_todo_plan and audited_infer_accept under plan_tile / audit_tile with soft point external_guidance (kind=guidance). MCP MECHA_MCP_HOST=project_coding binds ProjectCodingConfig (workspace coding tools + GeneratorLocalWork / ProjectCodingLocalWork burst after guidance, including request_guidance restart for plan refinement). Injectable CodingGit (default LocalProcessCodingGit; story/CI often RecordingPullRequestCodingGit) backs optional git/PR tools — see fangore_coding_git_inspect / fangore_coding_git_open_pr. Story hosts bind environment.local_work: project_coding with a temp workspace and optional coding_write stub. ProjectCodingLocalWork records written_files / workspace_root on the completed yield. Product verbs workspace_read and run_python put file text and stdout/stderr/exit_code into the step observation bag. DurableGraphGenerator._advance invokes the injectable local-work hook when the guidance queue is empty.

Validation

Harness user_story scenarios session.yaml (NoOp guidance smoke) and helper_run_python.yaml (project_coding workspace write + workspace_read + run_python expects). Both scenarios pin generator counters (guidance_yields / resumes / local_steps) and tapped_event_types / event_types so unexpected durable or coding-graph executions fail hard. Unit tests tests/test_project_coding.py (including git tool confinement / unsafe-ref rejection), tests/test_guided_coding_recipe.py, and tests/test_cli_workspace_verbs.py cover tools confinement, plan/audit tile topology, offline local-work file write, and workspace verbs. Stage id fangore_guided_coding_recipe__session (scenario session).

fangore_harness_family_react — Run the react harness family through CLI tool_loop init

Fangore starts the CLI host with family react and backend mock. Fangore switches the host to the classic ReAct family so models without reliable native tool calls still loop Thought/Action/Observation. He starts from the same CLI tool-loop verb, with family=react bound at harness initialization, and expects a final answer after one scripted tool round. He walks product steps (tool_loop) and verifies completion from the structured observation expects on this scenario.

Implementation

UserStoryScenario.environment.family / tool_loop.family=react select ReactHarness via _CliToolLoopConfig.get_harness_class (Config DI). Story harness scripts Action/Final Answer turns on ScriptedInference. Emits the same EventLog inference/tool stream as other families.

Validation

Harness user_story stage 040_fangore_harness_family_react.yaml: environment + graph + steps + complete expects.

fangore_harness_run_recipe — Run a single prompt through the harness_run Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock, and works with the harness_run recipe. Fangore wants the classic one-shot harness path to be a named control pattern he can discover beside other recipes, not a special-case CLI only. He lists the catalog, opens harness_run, binds a prompt and mock backend, and gets final text from the same graph executor used for other recipes. Complements fangore_backend_describe_recipe and fangore_conversational_tool_loop. He walks product steps (run_recipe) and verifies completion from the structured observation expects on this scenario.

Implementation

Agentic Recipe catalog id harness_run (HarnessRunTemplate): prepare → harness_loop → render. CliInstrumentor verb run_recipe calls recipe_runner.run_harness_recipe / list_recipes with HarnessPrepareRunner, HarnessLoopRunner, and HarnessRenderRunner. Soft points cover backend, family, model, system prompt, max turns, and runner kinds. CLI run and recipes run harness_run share this path. Node components under harness_loop reuse harness inference / tool_call / turn_start kinds.

Validation

Harness user_story stage 050_fangore_harness_run_recipe.yaml: environment + graph + steps + complete expects.

fangore_harness_tool_loop_graph — See inference and tool calls as node components inside a harness run

Fangore starts the CLI host with family tool_loop and backend mock. Fangore runs a tool-loop harness with one tool then a final answer. The console must treat inference and each tool call as node components under a harness parent — not an opaque blob — using the same kinds as recipe interiors. Complements fangore_traversal_contract and fangore_insp_soft_vs_hard. He walks product steps (tool_loop) and verifies completion from the structured observation expects on this scenario. [46]

Implementation

CliInstrumentor verb tool_loop runs ToolLoopHarness on the stamped/tapped EventLog. The harness emits turn_start, inference, tool_call, and tool_result with parent_node_id / component_id. node_components_for_harness lists planned components; traversal_from_events recovers them after the run.

Validation

Harness user_story stage 060_fangore_harness_tool_loop_graph.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_host_kit_event_tap — Tap graph node events from the blessed host executor

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s console needs live path lighting as a durable plan runs. They want the same short host wiring used for submit-once jobs — not a second hand-built executor — and still receive node start and end events for the active steps. Complements fangore_host_kit_submit_once and feeds console zoom stories such as fangore_conversational_tool_loop. He walks product steps (infer) and verifies completion from the structured observation expects on this scenario. [47]

Implementation

mechaharness.host_kit.host_graph_executor accepts event_log=. tapping_event_log / TappingEventLog forward emits to a host callback while preserving query. CliInstrumentor stamps then taps the blessed executor log so consoles see core:graph_node_start / core:graph_node_end on the same path as CLI infer (HF-05).

Validation

Harness user_story stage 070_fangore_host_kit_event_tap.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_host_kit_submit_once__dispatch_durable_ok — Wire a host graph executor and submit an external job once (dispatch_durable_ok)

Fangore starts the CLI host with family pass_through and backend mock. Fangore builds a host that dispatches a remote coding job from a durable plan. They need a short, readable way to register that job step, choose durable storage, and submit exactly once — including after a crash where the remote system may already have accepted the job. Complements fangore_graph_executor (authorized plan walk) and fangore_tdr_crash_after_accept_before_record (crash-window reconciliation). Host wiring lives in the dependency-injection guide[48]. This stage covers the dispatch_durable_ok scenario.

Implementation

mechaharness.host_kit.host_graph_executor subclasses MechaHarnessConfig and injects a GraphExecutor with host runners, default graph grants, optional SqliteCheckpointStore via checkpoint_path / checkpoint_store, and an injectable CrashProbe. SubmitOnceEffectfulRunner implements submit-once / complete-on-accept. CliInstrumentor verb host_kit_submit_once runs the acceptance matrix. Module doctests document the blessed host path.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys. Stage id fangore_host_kit_submit_once__dispatch_durable_ok (scenario dispatch_durable_ok).

Footnotes

fangore_host_kit_submit_once__resume_uncertain_with_handle — Wire a host graph executor and submit an external job once (resume_uncertain_with_handle)

Fangore starts the CLI host with family pass_through and backend mock. Fangore builds a host that dispatches a remote coding job from a durable plan. They need a short, readable way to register that job step, choose durable storage, and submit exactly once — including after a crash where the remote system may already have accepted the job. Complements fangore_graph_executor (authorized plan walk) and fangore_tdr_crash_after_accept_before_record (crash-window reconciliation). Host wiring lives in the dependency-injection guide[48]. This stage covers the resume_uncertain_with_handle scenario.

Implementation

mechaharness.host_kit.host_graph_executor subclasses MechaHarnessConfig and injects a GraphExecutor with host runners, default graph grants, optional SqliteCheckpointStore via checkpoint_path / checkpoint_store, and an injectable CrashProbe. SubmitOnceEffectfulRunner implements submit-once / complete-on-accept. CliInstrumentor verb host_kit_submit_once runs the acceptance matrix. Module doctests document the blessed host path.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys. Stage id fangore_host_kit_submit_once__resume_uncertain_with_handle (scenario resume_uncertain_with_handle).

fangore_human_review_pending — Hold mutations until a matching human approval exists

Fangore starts the CLI host with family pass_through and backend mock. A privileged mutate is gated by JudgementPolicy: without a matching approval digest the walk raises human review onto walk-bag register ask. The story step expects that request and injects the approval into ans; the second decide allows. ASK_HUMAN path for Dots MH-DOTS-04[49] and approval interrupt for MH-DOTS-02[50].

Implementation

WalkBag / WalkBagRegister (ask/ans) in mechaharness.walk_bag; HumanReviewGateVerb (human_review_gate) in cli_policy_verbs over JudgementPolicy.require_approval_for + decide(); story expect kind human_review with inject folded into the verb by the user_story harness.

Covers: POL-04, GAT-04.

Validation

Harness user_story walks human_review_gate with expect: human_review + inject; hard expects on verdict_kinds / final_verdict.

Footnotes

fangore_inference_frame_return — Return an inferred decision through two callers

Fangore sends a project verification result through a planning child to a model in a grandchild. The middle frame publishes the decision to the root. Fangore checks that the decision survived both returns while a private root note stayed intact.

Implementation

CliInferRunner writes a parsed model response to the grandchild WalkBag. GraphExecutor projects declared outputs at both returns.

Validation

The returned verdict must say pass. Static inference uses a fixture; live inference calls the configured reason model.

fangore_insp_alert_escalation_rules — Escalate alerts by deterministic once, repeated, and persistent rules

Fangore starts the CLI host with family pass_through and backend mock. He runs alert_escalation: occurrence counts map to log → surface → propose with per-alert overrides; unordered thresholds are refused. No model participates. Decision-plane policy already separates model proposal from code decision (fangore_decision_plane_policy). Tracks MH-PA-06[51].

Implementation

AlertEscalationPolicy / AlertOccurrenceCounter via product verb alert_escalation (cli_policy_verbs). Walk-bag in/out carry policy inputs and ladder outcomes.

Validation

Harness user_story walks alert_escalation; expects ladder / override_ladder / counter_walk and unordered_refused.

Footnotes

fangore_insp_anchor_evidence — Require external anchor evidence on high-autonomy work

Fangore starts the CLI host with family pass_through and backend mock. High-autonomy graphs must periodically attach labeled external anchors so branches cannot drift on mutually reinforcing model judgments alone. Accepts WalkingLabs L14 guidance[52].

Implementation

AnchorRequirement, AnchorEvidence, and anchors_satisfied in mechaharness.anchor_evidence label and require anchor kinds.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_approval_interrupt — Suspend a graph for durable human approval

Fangore starts the CLI host with family pass_through and backend mock. He runs approval_interrupt to suspend for durable human approval then resume with an actor provenance stamp.

Implementation

suspend_for_approval / resume_approval via product verb approval_interrupt. Maps to durable advice/approval yields when hosts compose it into graphs later.

Validation

Harness user_story stage 010_fangore_insp_approval_interrupt.yaml drives approval_interrupt; expects pending → approved with actor provenance.

fangore_insp_auth_epoch_resume — Refuse resumed effects when the authorization epoch advanced

Fangore starts the CLI host with family pass_through and backend mock. He runs auth_epoch_resume so a graph checkpoint stamped at epoch 2 refuses resume under epoch 3 before any runner is invoked. Tracks MH-DOTS-06[53].

Implementation

GraphExecutor.run(resume=True, envelope=...) returns failed with authorization_epoch_mismatch. Product verb auth_epoch_resume; story environment.authorization_epoch can stamp Config envelopes.

Validation

Harness user_story stage 050_fangore_insp_auth_epoch_resume.yaml drives auth_epoch_resume; expects resume_status failed and error_contains mismatch.

Footnotes

fangore_insp_authority_gate — Compose capability, impact, trust, and approval into one authority gate

Fangore starts the CLI host with family pass_through and backend mock. He runs authority_gate over a matrix of evaluate scenarios so untrusted forwarded content cannot authorize an external send and high-impact actions still require configured authority. Related: fangore_compound_grants. Tracks MH-PA-02[54].

Implementation

AuthorityGate.evaluate composes AccessControl, CapabilityEnvelope, ConsequencePolicy, trust, verdict, and approval. Product verb authority_gate. Hosts inject the gate via Config when wiring it onto graph soft-points later.

Validation

Harness user_story stage 060_fangore_insp_authority_gate.yaml drives authority_gate; expects the decisions matrix.

Footnotes

fangore_insp_budget_subgraph_rollup — Roll nested subgraph spend into the parent budget

Fangore starts the CLI host with family pass_through and backend mock. He sets environment.budget.soft_limit to 2 and runs run_budgeted_graph with nest enabled so child node costs share the parent ledger. After soft wind-down, the later parent step is cancelled. [55]

Implementation

Budget.child() / nested GraphExecutor spend rollup. Product verb run_budgeted_graph with nest: true; story environment.budget binds the policy.

Validation

Harness user_story stage 080_fangore_insp_budget_subgraph_rollup.yaml drives nested run_budgeted_graph; expects soft_exhausted / after_status cancelled.

Footnotes

fangore_insp_context_compaction — Compact context in staged lossless then lossy steps

Fangore starts the CLI host with family pass_through and backend mock. Long runs compact context through staged strategies that record which information classes were discarded. Accepts WalkingLabs L05 and Claude Code design guidance[56][57].

Implementation

ContextCompactionStrategy and DefaultStagedCompaction in mechaharness.context_compaction apply lossless dedupe, distill truncation, and optional lossy drops with provenance.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_context_layers — Project node-private context from shared graph state

Fangore starts the CLI host with family pass_through and backend mock. Fangore keeps durable graph state large and shared while each node receives only the private projection it needs; only explicit exports re-enter shared state. Accepts WalkingLabs L14 and L04 guidance[58][59].

Implementation

GraphSharedState, NodePrivateContext, and project_node_context in mechaharness.context_layers formalize shared vs private layers and export-only write-back.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_context_provider — Discover context indices before loading large payloads

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s host memory source must advertise what it can supply before dumping large payloads into a turn. Accepts inspiration requirement 6[60]. Related personal-agent freshness/provenance story: fangore_insp_tool_result_freshness[61].

Implementation

ContextProvider / StaticContextProvider expose index then load with provenance and token estimates.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_cross_task_isolation — Isolate job-lane run data; share only via brokered observe or handoff

Fangore starts the CLI host with family pass_through and backend mock. He treats each pipeline as a JobLane: assets publishes refs that do not bleed to billing until an explicit lane_handoff, matching MH-DOTS-07 as productized JobLaneBroker. Focused claims also live in fangore_job_lane_* stories (same-lane lineage, cross deny, meta allowlist, artifacts, before selector, handoff).

Implementation

JobLane + JobLaneBroker (JL-01..10) in mechaharness.job_lane_broker; CLI verbs lane_publish / lane_observe / lane_handoff. Deprecated shim: CrossTaskIsolationGuard.

Validation

Harness user_story stage 070_fangore_insp_cross_task_isolation.yaml; matrix stories fangore_job_lane_*.

Footnotes

  1. OpenAI Dots agent safety (MH-DOTS-07) — Cross-task context isolation → job-lane broker

  2. Job lane broker requirements — JL vocabulary, YAML surface, story matrix

fangore_insp_decision_conflict_checkpoint__cleared_at_c — Checkpoint after conflict-free decisions without revisiting cleared cycles (cleared_at_c)

Fangore starts the CLI host with family pass_through and backend mock. After a decision is settled, the nodes it still conflicts with are revisited, and nodes already visited are not revisited so a circular conflict cannot loop forever. A checkpoint is taken only when the decision has no remaining conflicts; a conflict blocked only by the visited set is reported instead of silently saved. The conflicts themselves are still the write-scope conflicts the product already detects (fangore_tdr_crash_after_accept_before_record, fangore_decision_plane_policy); this adds the revisit-and-checkpoint rule on top. Tracks MH-SR-08[62]. This stage covers the cleared_at_c scenario.

Implementation

neighbor_revisit / neighbors_from_write_conflicts. CliInstrumentor verb decision_conflict_neighbor_revisit.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys. Stage id fangore_insp_decision_conflict_checkpoint__cleared_at_c (scenario cleared_at_c).

Footnotes

fangore_insp_decision_conflict_checkpoint__cycle_never_cleared — Checkpoint after conflict-free decisions without revisiting cleared cycles (cycle_never_cleared)

Fangore starts the CLI host with family pass_through and backend mock. After a decision is settled, the nodes it still conflicts with are revisited, and nodes already visited are not revisited so a circular conflict cannot loop forever. A checkpoint is taken only when the decision has no remaining conflicts; a conflict blocked only by the visited set is reported instead of silently saved. The conflicts themselves are still the write-scope conflicts the product already detects (fangore_tdr_crash_after_accept_before_record, fangore_decision_plane_policy); this adds the revisit-and-checkpoint rule on top. Tracks MH-SR-08[62]. This stage covers the cycle_never_cleared scenario.

Implementation

neighbor_revisit / neighbors_from_write_conflicts. CliInstrumentor verb decision_conflict_neighbor_revisit.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys. Stage id fangore_insp_decision_conflict_checkpoint__cycle_never_cleared (scenario cycle_never_cleared).

fangore_insp_decision_conflict_checkpoint__no_conflicts — Checkpoint after conflict-free decisions without revisiting cleared cycles (no_conflicts)

Fangore starts the CLI host with family pass_through and backend mock. After a decision is settled, the nodes it still conflicts with are revisited, and nodes already visited are not revisited so a circular conflict cannot loop forever. A checkpoint is taken only when the decision has no remaining conflicts; a conflict blocked only by the visited set is reported instead of silently saved. The conflicts themselves are still the write-scope conflicts the product already detects (fangore_tdr_crash_after_accept_before_record, fangore_decision_plane_policy); this adds the revisit-and-checkpoint rule on top. Tracks MH-SR-08[62]. This stage covers the no_conflicts scenario.

Implementation

neighbor_revisit / neighbors_from_write_conflicts. CliInstrumentor verb decision_conflict_neighbor_revisit.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys. Stage id fangore_insp_decision_conflict_checkpoint__no_conflicts (scenario no_conflicts).

fangore_insp_denial_equivalence — Persist denials and block equivalent actions across retries

Fangore starts the CLI host with family pass_through and backend mock. He runs denial_equivalence: a denied email.send to bob stays denied across provider/tool retries until lift(), while a different recipient is allowed. Native deny/allow paths: fangore_insp_soft_vs_hard, fangore_jev_action_safety. Tracks MH-DOTS-05[63].

Implementation

DenialStore / InMemoryDenialStore + equivalent_action_digest via product verb denial_equivalence (cli_policy_verbs); AuthorityGate records DENY and consults prior denials. Walk-bag in/out carry the denied intent and outcomes. The product verb injects the same DenialStore and AuthorityGate from Config; defaults are scoped to each injector.

Validation

Harness user_story walks denial_equivalence; expects prior_denial on equivalent retries and allow after lift.

Footnotes

fangore_insp_driver_session_resume — Resume guidance in a later driver call without recursive callbacks

Fangore starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller session, store memory). Frontier and other MCP-capable clients cannot reenter a model session during a pending tool call. Guidance therefore returns as an ordinary tool result; the same driving session calls resume later with the answer. Tracks R-IOC-SESSION. He walks product steps (start, answer) and verifies completion from the structured observation expects on this scenario. [64]

Implementation

DurableGraphGenerator.start returns a committed GraphYield; resume is a separate operation with expected_sequence. No recursive callback into an outstanding tool call is required. MCP adapter: mechaharness.mcp_graph_driver (unit/doctest).

Validation

Harness user_story stage 020_fangore_insp_driver_session_resume.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_durable_graph_generator — Drive a registered recipe to completion as a durable generator

Fangore starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller story, store memory). Long-running judgment-bearing work is started as a durable generator over a registered recipe. When no external guidance is required, the first start call returns completion — the driver does not invent a second harness or free-form graph. Complements offline recipe evolution (taloneth_insp_recipe_evolution_loop) which chooses which recipe is active. He walks product steps (start) and verifies completion from the structured observation expects on this scenario. [65]

Implementation

DurableGraphGenerator.start / list_recipes resolve GraphTemplateRegistry catalog ids and persist via GeneratorRunStore. Host entry: host_kit.host_durable_graph_generator / durable_generator_host. Node component kind guidance_request is reserved for guidance soft points; this story exercises zero-advice completion.

Validation

Harness user_story stage 030_fangore_insp_durable_graph_generator.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_durable_resume — Refuse resume when the harness fingerprint changed

Fangore starts the CLI host with family pass_through and backend mock. Long-running work checkpoints outside chat. If the harness or graph configuration changes incompatibly, resume must refuse rather than continue with altered semantics. Accepts inspiration requirement 12[66]. Contributes to personal-agent MH-PA-05 alongside fangore_tdr_crash_after_accept_before_record[67].

Implementation

GraphExecutor fingerprint check on resume. CliInstrumentor verb checkpoint_fingerprint_refuse.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_dynamic_subgraph — Nest a child graph as an observable subgraph

Fangore starts the CLI host with family pass_through and backend mock. Fangore embeds a child plan under a parent step. The child must run as its own graph execution with telemetry, not as an opaque nested model call. Nested spend shares the parent budget — see fangore_insp_budget_subgraph_rollup. Hosts use the same nest path when tiling Agentic Recipes into a parent graph. Accepts inspiration requirement 3[68].

Implementation

SubgraphNodeRunner.embed + GraphExecutor. CliInstrumentor verb dynamic_subgraph_nest.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_effect_revalidation — Revalidate authority at side-effect dispatch after pause or revocation

Fangore starts the CLI host with family pass_through and backend mock. He loads an inline graph that plans then publishes. He walks with graph_walk until before the publish execute node, advances the live authorization epoch (revocation), then continues. Publish fails closed with revalidation_failed and the effect runner never runs. Related: fangore_insp_wake_reresolve, fangore_human_review_pending, fangore_insp_auth_epoch_resume. Tracks MH-DOTS-02[69] via stepped control SG-08[70].

Implementation

revalidate_before_effect on execute-phase nodes; GraphExecutor.live_authorization_epoch; graph_walk start/until/set_live_epoch/continue. Observe/prepare phases skip revalidation.

Validation

Harness user_story stage 020_fangore_insp_effect_revalidation.yaml.

Footnotes

fangore_insp_evolution_ownership_split — Keep recipe validation in the library and evolution campaigns in the host

Fangore starts the CLI host with family pass_through and backend mock. MechaHarness validates, executes, versions, and safety-gates recipes; the host (for example an AI assistant project) owns which workloads to run, how much to spend, and whether a candidate should be promoted. Two named hooks carry that split: one for evolution campaigns and one for promotion policy. Both default to doing nothing, a host can replace either, a host veto stops a promotion even when every test passed, and the library’s final-test gate still applies when the host has no opinion (taloneth_insp_recipe_final_test_gate). He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [71]

Implementation

MechaHarnessConfig.get_recipe_promotion_policy() (RecipePromotionPolicy, default NoopRecipePromotionPolicy) and get_evolution_campaign_hooks() (EvolutionCampaignHooks, default NoopEvolutionCampaignHooks) are registered in configure() as injectables, not Settings. promote_recipe() in recipe_promotion_policy.py lets the host policy decide, then the registry applies promote_with_final_test; when given the Config-bound hooks it calls EvolutionCampaignHooks.on_promotion after (and only after) a successful pointer move. Registry validation, evolvable allowlists, and the final-test gate stay in the library.

Validation

Harness user_story stage 090_fangore_insp_evolution_ownership_split.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_execution_token — Carry principal, expiry, and trust origin on every graph invocation

Fangore starts the CLI host with family pass_through and backend mock. He runs execution_token so a parent CapabilityEnvelope (principal, expiry, trust origin, authorization epoch) can only attenuate into children: a child cannot raise the epoch, swap principal or trust origin, or outlive the parent’s expiry. Tracks MH-DOTS-01[72].

Implementation

CapabilityEnvelope.narrow() via product verb execution_token (cli_policy_verbs); walk-bag registers in/out carry parent and outcomes. Related: fangore_capability_envelope_narrow.

Validation

Harness user_story walks execution_token; expects attenuate ok and refuse raise/swap/outlive attempts.

Footnotes

fangore_insp_exit_clean_state — Require clean-state exit before handoff

Fangore starts the CLI host with family pass_through and backend mock. A run is not done until checkpoint durability, pending-node policy, and optional handoff records satisfy a clean-state exit contract. Accepts WalkingLabs L12 guidance[73].

Implementation

CleanStateContract / ExitContract and evaluate_exit in mechaharness.exit_contract check post-run clean-state invariants.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_failure_attribution — Attribute repeated failures to linkage or tools

Fangore starts the CLI host with family pass_through and backend mock. When the same failure class repeats, Fangore needs structured attribution so the process can improve — not one-off output patches. Accepts inspiration requirement 11[74].

Implementation

attribute_error / detect_repeated_failure_classes in mechaharness.failure_attribution map errors to categories for traces and offline mining.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_fan_in_policy — Accept fan-in with a named quorum policy

Fangore starts the CLI host with family pass_through and backend mock. Parallel branches rejoin through an explicit fan-in acceptance policy such as quorum rather than an implicit reduce. Accepts WalkingLabs P08 guidance[75].

Implementation

FanInPolicy and accept_fan_in in mechaharness.fan_in_policy support ALL/ANY/quorum/weighted/predicate/judge/human/custom strategies. The fan_out_aggregate Agentic Recipe binds fan-in behavior at its reduce soft point when hosts tile parallel branches.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_graph_budget — Enforce soft and hard spend limits on graph runs

Fangore starts the CLI host with family pass_through and backend mock. He runs run_budgeted_graph with soft then hard policies on a two-node compute graph. Soft wind-down returns soft_exhausted; hard fail returns hard_budget_exceeded. Related: fangore_insp_budget_subgraph_rollup. [76]

Implementation

BudgetPolicy soft/hard limits on GraphExecutor. Product verb run_budgeted_graph; hosts also pass budget_policy= on run_recipe / story environment.budget.

Validation

Harness user_story stage 120_fangore_insp_graph_budget.yaml drives run_budgeted_graph; expects soft_status / hard_status and error codes.

Footnotes

fangore_insp_graph_guidance_yield — Yield typed guidance and resume without treating advice as approval

Fangore starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller story, store memory). When a run needs higher-level judgment, start returns an advice yield with a typed question and choices. The driver answers in a later call; the run completes. This is not a human approval interrupt (fangore_insp_approval_interrupt) and not an in-process sparse advisor consult (fangore_insp_sparse_advisor). He walks product steps (start, answer) and verifies completion from the structured observation expects on this scenario. [77]

Implementation

GuidanceRequest / GuidanceResponse / GraphYield with kind advice_requested; DurableGraphGenerator.resume validates request_id, choice schema, and rejects requested_authority=final_approval so ordinary advice cannot unlock approval-only mutations.

Validation

Harness user_story stage 050_fangore_insp_graph_guidance_yield.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_graph_transitions — Declare graph transitions separately from dependencies

Fangore starts the CLI host with family pass_through and backend mock. Fangore needs success, rollback, and end paths declared as transitions — not inferred from dependency edges alone — so graphs can be inspected before they run. Accepts WalkingLabs L14 and P08 guidance[78][79].

Implementation

TransitionContract / inspect_transitions; CliInstrumentor verb graph_transition_inspect.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_guidance_controller_auth — Enforce controller ownership and keep advice distinct from approval

Fangore starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller owner, store memory). Possession of a run id alone must not confer control. An intruder controller cannot resume; ordinary guidance cannot satisfy final-approval authority — that remains fangore_insp_approval_interrupt. Tracks R-IOC-AUTH. He walks product steps (start, answer, inspect, start, answer) and verifies completion from the structured observation expects on this scenario. [80]

Implementation

LeaseControllerAuth / GeneratorControllerAuth on resume/cancel; requested_authority=final_approval raises PermissionError pointing hosts at ApprovalInterrupt.

Validation

Harness user_story stage 060_fangore_insp_guidance_controller_auth.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_guidance_resume_idempotent — Make guidance resume idempotent and reject stale sequences

Fangore starts the CLI host and loads the verify_repair durable graph under a story controller with an in-memory run store. He starts a run that yields guidance, answers once with an idempotency key (run completes), replays the same key (same committed sequence), then tries a stale sequence under another key and sees a safe sequence refusal — so drivers can retry without double-applying advice. Tracks R-IOC-IDEMPOTENT[81].

Implementation

DurableGraphGenerator.resume stores results under idempotency_key and compares expected_sequence to the run record. CLI durable verbs start / answer drive the same session through CliInstrumentor.

Validation

Harness user_story stage 070_fangore_insp_guidance_resume_idempotent.yaml: environment + graph.recipe verify_repair with durable session; steps start/answer with per-step expects; complete asserts terminal sequence refusal.

Footnotes

fangore_insp_guidance_survive_restart — Rehydrate the same pending guidance after a process restart

Fangore starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller c1, store shared). A suspended generator run must survive executor or MCP process restart and present the identical pending question. Uses the CheckpointStore / run-store seam from durable resume (fangore_insp_durable_resume, fangore_tdr_crash_before_intent) rather than a second recovery protocol. Tracks R-IOC-RESUME. He walks product steps (start, rebuild, inspect) and verifies completion from the structured observation expects on this scenario. [82]

Implementation

GeneratorRunStore (in-memory shared instance or checkpoint-backed) rehydrates GeneratorRunRecord.pending_request for a new DurableGraphGenerator instance.

Validation

Harness user_story stage 080_fangore_insp_guidance_survive_restart.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_handoff_record — Capture why across session handoffs

Fangore starts the CLI host with family pass_through and backend mock. Handoffs preserve goals, exclusions, completed/pending work, decisions, rationale, rejected alternatives, risks, evidence, an expected verdict, and next action — hosts store the record. Accepts WalkingLabs L05 guidance[83]. Maps to personal-agent MH-PA-04[84]: goals, exclusions, evidence, risks, and verdict are first-class. Also the one-shot typed share seam for job-lane observe (MH-DOTS-07 / JL handoff) alongside standing lane grants (fangore_insp_cross_task_isolation / JobLaneBroker)[85].

Implementation

HandoffRecord in mechaharness.handoff_record is the reusable schema (typed goals, exclusions, and verdict fields); storage remains host-owned. JobLaneBroker (shim: CrossTaskIsolationGuard.share) consumes evidence_refs as the one-shot cross-lane share path; standing exposure/grants live on the lane.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_independent_review — Review artifacts in isolated reviewer context

Fangore starts the CLI host with family pass_through and backend mock. He runs Agentic Recipe independent_review with two isolated reviewers that omit producer reasoning, aggregate findings, and retain disagreement. Accepts inspiration requirement 10. Related: fangore_insp_produce_critique_refine. [86][87]

Implementation

Agentic Recipe independent_review via IndependentReviewTemplate / independent_review_runner and product verb run_recipe (IndependentReviewRecipeAdapter).

Validation

Harness user_story stage 060_fangore_insp_independent_review.yaml drives run_recipe; expects review_count, omit_producer_reasoning, disagreement_retained.

Footnotes

fangore_insp_inference_capture_preflight — Fail linkage when training-grade capture is unavailable

Fangore starts the CLI host with family pass_through and backend mock. Fangore needs graphs that require exact token capture to fail before expensive work when the active backend is evaluation-only. Accepts FineEnvs capture probing guidance[88].

Implementation

InferenceCapture, EvaluationOnlyCapture, and TrainingGradeCapture in mechaharness.inference_capture, wired through MechaHarnessConfig.get_inference_capture and checked by DefaultLinkageResolver for required_inference_capture. CliInstrumentor verb check_inference_capture runs the preflight.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_initialize_preflight — Run an initialize preflight recipe before work

Fangore starts the CLI host with family pass_through and backend mock. He runs Agentic Recipe initialize_preflight so linkage, capability, and checkpoint checks complete before readiness — accepting WalkingLabs L06 guidance. [89]

Implementation

Agentic Recipe initialize_preflight via InitializePreflightTemplate / initialize_preflight_runner and product verb run_recipe (InitializePreflightRecipeAdapter).

Validation

Harness user_story stage 070_fangore_insp_initialize_preflight.yaml drives run_recipe; expects preflight_ok plus node ids.

Footnotes

fangore_insp_instruction_gotchas — Measure gotcha trigger rates before promoting them

Fangore starts the CLI host with family pass_through and backend mock. Scarce instruction components distinguish invariants from learned gotchas. Over-triggering is measurable, and promotion to active policy is explicit. Accepts inspiration requirement 8[90].

Implementation

InstructionCatalog / InstructionComponent track trigger, use, over/under rates; promote moves proposed gotchas to active after evaluation.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_instruction_scope — Scope instruction components with authority and cost

Fangore starts the CLI host with family pass_through and backend mock. Instruction components declare scope, authority, and estimated context cost so entry files stay routers rather than encyclopedias. Accepts WalkingLabs L04 guidance[91].

Implementation

InstructionComponent fields scope, priority, authority, and estimated_context_cost in mechaharness.instruction_component.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_isolation_io — Validate isolation and template I/O contracts

Fangore starts the CLI host with family pass_through and backend mock. Fangore needs nested subgraphs to declare typed inputs/outputs and isolation (effects, context refs, budget share) so linkage can reject incomplete nests. Accepts WalkingLabs L14 and Codex guidance[92][93]. Supports personal-agent MH-PA-03 typed I/O[94]. This is nest I/O — not JobLaneBroker lane isolation (see MH-DOTS-07 / JL stories)[95].

Implementation

IsolationContract and TemplateIOContract in mechaharness.isolation.isolation_contract capture effect scope, context refs, export schema, budget share, cancel/supersede, and typed I/O for Agentic Recipe / GraphTemplate subgraph boundaries.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_lifecycle_block — Skip one tool call without inventing a new plan

Fangore starts the CLI host with family pass_through and backend mock. He binds host lifecycle extensions [‘acme:block_write’] and runs product step tool_lifecycle (mode=tool). He verifies extension effects on the tool/graph path.

Implementation

Product verb tool_lifecycle (ToolLifecycleVerb) with Config/host-bound LifecycleExtension instances (story fixtures under tests.stories.hosts).

Validation

user_story lifecycle_extension_block.yaml tool_lifecycle; hard expects on extension observations.

Footnotes

  1. Inspiration requirements (req 20: block mode) — Req 20 — block

fangore_insp_lifecycle_graph_observe — Watch graph node attempts without replacing failure policy

Fangore starts the CLI host with family pass_through and backend mock. He binds host lifecycle extensions [‘acme:graph_watch’] and runs product step tool_lifecycle (mode=graph). He verifies extension effects on the tool/graph path.

Implementation

Product verb tool_lifecycle (ToolLifecycleVerb) with Config/host-bound LifecycleExtension instances (story fixtures under tests.stories.hosts).

Validation

user_story lifecycle_extension_graph_observe.yaml tool_lifecycle; hard expects on extension observations.

Footnotes

  1. Inspiration requirements (req 20: graph observe) — Req 20 — graph observe

fangore_insp_lifecycle_observe — Watch tool calls in a fixed order without changing them

Fangore starts the CLI host with family pass_through and backend mock. He binds host lifecycle extensions [‘acme:watch_a’, ‘acme:watch_b’] and runs product step tool_lifecycle (mode=tool). He verifies extension effects on the tool/graph path.

Implementation

Product verb tool_lifecycle (ToolLifecycleVerb) with Config/host-bound LifecycleExtension instances (story fixtures under tests.stories.hosts).

Validation

user_story lifecycle_extension_observe.yaml tool_lifecycle; hard expects on extension observations.

Footnotes

  1. Inspiration requirements (req 20: lifecycle interception) — Req 20 — lifecycle interception

fangore_insp_lifecycle_replace — Hand off one tool step without a dotted-line graph node

Fangore starts the CLI host with family pass_through and backend mock. He binds host lifecycle extensions [‘acme:replace_write’] and runs product step tool_lifecycle (mode=tool). He verifies extension effects on the tool/graph path.

Implementation

Product verb tool_lifecycle (ToolLifecycleVerb) with Config/host-bound LifecycleExtension instances (story fixtures under tests.stories.hosts).

Validation

user_story lifecycle_extension_replace.yaml tool_lifecycle; hard expects on extension observations.

Footnotes

  1. Inspiration requirements (req 20: replace mode) — Req 20 — replace

fangore_insp_lifecycle_rewrite — Change tool arguments without changing the workflow

Fangore starts the CLI host with family pass_through and backend mock. He binds host lifecycle extensions [‘acme:sandbox_rewrite’] and runs product step tool_lifecycle (mode=tool). He verifies extension effects on the tool/graph path.

Implementation

Product verb tool_lifecycle (ToolLifecycleVerb) with Config/host-bound LifecycleExtension instances (story fixtures under tests.stories.hosts).

Validation

user_story lifecycle_extension_rewrite.yaml tool_lifecycle; hard expects on extension observations.

Footnotes

  1. Inspiration requirements (req 20: rewrite mode) — Req 20 — rewrite

fangore_insp_linkage_preflight — Resolve graph linkage before any node runs

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s injector can build services while a plan still names an unwired step. Linkage must fail closed before runners start, naming the missing edge. Accepts inspiration requirement 2[96]. Related: fangore_insp_stop_contract.

Implementation

DefaultLinkageResolver runner preflight; CliInstrumentor verb graph_linkage_preflight.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_loop_health — Wind down loops when verification debt grows

Fangore starts the CLI host with family pass_through and backend mock. Long loops accumulate verification debt; Fangore winds them down when independent verification age or repeated failures exceed host thresholds. Accepts WalkingLabs L13 guidance[97].

Implementation

LoopHealthSignals and should_wind_down in mechaharness.loop_health expose verification-debt and failure signals.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_operation_compensation — Declare operation idempotency and compensation

Fangore starts the CLI host with family pass_through and backend mock. Cleanup and recovery operations declare idempotency and optional compensation so retries do not double side effects. Accepts WalkingLabs L12 guidance[98].

Implementation

OperationContract.idempotent and compensation_strategy in mechaharness.operation_registry.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_produce_critique_refine — Run produce-critique-refine as a reusable recipe contract

Fangore starts the CLI host with family pass_through and backend mock. He runs Agentic Recipe produce_critique_refine with an isolated critic and bounded refine rounds that clear fixture findings under the stop contract. Independent review and verify-repair already ship. [99]

Implementation

Agentic Recipe produce_critique_refine via ProduceCritiqueRefineTemplate / produce_critique_refine_runner and product verb run_recipe (ProduceCritiqueRefineRecipeAdapter).

Validation

Harness user_story stage 080_fangore_insp_produce_critique_refine.yaml drives run_recipe; expects shape keys plus rounds_used / findings_cleared.

Footnotes

fangore_insp_recipe_lineage_promote — Attach lineage and test results when promoting a recipe version

Fangore starts the CLI host with family pass_through and backend mock. New recipe versions are immutable artifacts with provenance, lineage, test results, and a reversible promotion pointer. Research and rule promotion patterns exist (taloneth_insp_rule_promotion); the recipe catalog now keeps versions instead of overwriting by name. Tracks MH-SR-05. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [100]

Implementation

GraphTemplateRegistry.add_version(template, parent_version=...) records the lineage DAG and refuses to replace a stored name+version; attach_evaluation / evaluations hang eval results on a version; promote and rollback move a reversible pointer; merge carries versions, lineage, evaluations, and pointer. Held-out release gates (MH-SR-07) and the evolution loop (MH-SR-06) remain separate stories.

Validation

Harness user_story stage 010_fangore_insp_recipe_lineage_promote.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_recipe_port_search — Search compatible recipe compositions by typed ports

Fangore starts the CLI host with family pass_through and backend mock. Candidate compositions are found by searching only the registered recipes for ones whose declared inputs and outputs fit what is needed. The answer is a list of recipe names; nothing is generated, so no new executable code can enter the production path. A recipe that declares no ports is never suggested, and a type mismatch rules a recipe out. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [101] Related: fangore_insp_isolation_io.

Implementation

search_compatible_recipes(registry, required_inputs, required_outputs) in recipe_port_search.py compares each active recipe’s GraphTemplate.io_contract (TemplateIOContract from isolation_contract.py) with the requested ports (type equality, any as a wildcard) and returns sorted catalog ids only. io_contract is declared on safety_eval, independent_review, produce_critique_refine, verify_repair, and fan_out_aggregate; other recipes are skipped until they declare ports.

Validation

Harness user_story stage 020_fangore_insp_recipe_port_search.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_recipe_version_pointer — Promote and roll back recipes via an immutable version pointer

Fangore starts the CLI host with family pass_through and backend mock. Recipe execution policies are versioned, testable, replaceable artifacts with a reversible promotion pointer — not only class version fields and demotion stamps. Incubation stamps exist in fangore_insp_template_incubation; lineage and evaluation attachments are in fangore_insp_recipe_lineage_promote. Tracks MH-SR-01. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [102]

Implementation

GraphTemplateRegistry stores every version of a catalog id (here verify_repair): add_version registers an immutable inactive candidate, promote(name, version) moves the active pointer, rollback(name) restores the previous target, and get(name, version=...) reads any stored version. register keeps legacy activate-by-name semantics. Eval results and promotion policy stay host-owned.

Validation

Harness user_story stage 030_fangore_insp_recipe_version_pointer.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_registry_only_compose — Require production graphs to compose registered recipes only

Fangore starts the CLI host with family pass_through and backend mock. Production graphs are composed from registered recipes (including nested recipes), not free-form node synthesis. Tiling and recipe-as-tool already help (fangore_recipe_namespace_tile, fangore_recipe_as_tool). Tracks MH-SR-02. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [103]

Implementation

GraphTemplateRegistry.composition_violations(graph) / assert_registry_composed(graph) check that a recipe-stamped graph names a stored name@version and that an unstamped container graph holds only embedded recipe subgraphs, recursively. Free-form nodes and forged versions are reported. Hosts call it as a production gate; the executor does not force it.

Validation

Harness user_story stage 040_fangore_insp_registry_only_compose.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_risk_autonomy — Scale controls by action consequence class

Fangore starts the CLI host with family pass_through and backend mock. High-consequence writes demand stronger controls and visible approval frequency; low-risk work need not nag. Accepts inspiration requirement 15[104]. Contributes to personal-agent MH-PA-02; composed gate delta: fangore_insp_authority_gate[105].

Implementation

ConsequencePolicy / ActionConsequence in mechaharness.consequence classify actions (low…critical), flag approval and exhaustive verification needs, and expose approval_frequency as a usability/safety metric. Grants in AccessControl remain the hard gate.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_soft_evolution_allowlist — Declare which soft recipe fields may evolve under optimization

Fangore starts the CLI host with family pass_through and backend mock. Hard nodes and trusted contracts are never silently rewritten by an optimizer; only allowlisted soft parameters (prompts, bounded rounds, reviewer counts) may evolve. Soft points already exist (fangore_graph_template_soft_points, fangore_insp_soft_vs_hard). Tracks MH-SR-03. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [106]

Implementation

SoftPoint.evolvable (default False) declares the evolution allowlist. GraphTemplate.evolvable_soft_point_names() lists it and assert_evolution_allowed(changed) refuses any edit outside it. produce_critique_refine marks critique_prompt and max_rounds; independent_review marks reviewer_count; every other catalog soft point stays hard.

Validation

Harness user_story stage 050_fangore_insp_soft_evolution_allowlist.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_soft_vs_hard — Enforce grants mechanically instead of by prompt alone

Fangore starts the CLI host with family pass_through and backend mock. Soft guidance may ask models to be careful; hard grants still refuse unauthorized writes. Accepts inspiration requirement 9[107]. Complements fangore_insp_risk_autonomy. Soft-vs-hard split for self-revising MH-SR-03[108].

Implementation

Harness tool loops consult AccessControl before execution — including fused or loop-proposed calls — and denied calls emit access-check events and never run side effects. Failure defaults are deny for mutations / external / privileged / uncertain scope; composed packs from fangore_compound_grants still apply. Prompts never grant permission.

Covers: GAT-01, GAT-02, GAT-03.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_sparse_advisor — Consult an advisor without transferring task ownership

Fangore starts the CLI host with family pass_through and backend mock. Sparse advisor counsel helps at hard boundaries while the active executor keeps ownership. Budgets stop routine consultation. Accepts inspiration requirement 18[109].

Implementation

Advisor / AdvisorPolicy in mechaharness.advisor are distinct from GraphEscalation (ownership transfer). DefaultAdvisorPolicy rate-limits consultations; consult_advisor records AdvisorObservation and never transfers task ownership. Default DI binds RejectAdvisor with an explicit continue fallback.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_state_governance — Freeze graph metric ownership against agent writes

Fangore starts the CLI host with family pass_through and backend mock. Graph quality targets have owners and can be frozen so agents cannot silently mutate success criteria. Accepts WalkingLabs L14 guidance[110].

Implementation

GraphStateGovernance, FieldGovernance, and authorize_write in mechaharness.graph_state_governance enforce owner/writer/mutability rules.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_stop_contract — Require a stop contract on repeating graph steps

Fangore starts the CLI host with family pass_through and backend mock. A repeating repair step without an explicit stop rule must fail validation before it can loop unbounded. Accepts inspiration requirement 4[111]. Complements fangore_insp_linkage_preflight and fangore_convergence_ceiling.

Implementation

DefaultLinkageResolver stop-contract edge; CliInstrumentor verb graph_linkage_preflight.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_insp_targeted_rollback — Roll back to the node that caused a verification defect

Fangore starts the CLI host with family pass_through and backend mock. When verification fails, Fangore wants structured attribution naming the repair target so the graph rolls back to that layer instead of restarting from scratch. Accepts WalkingLabs P08 guidance[112].

Implementation

attribute_with_repair_target / select_rollback_target; CliInstrumentor verb targeted_rollback_select.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_template_incubation — Stamp template provenance and refuse demoted skeletons

Fangore starts the CLI host with family pass_through and backend mock, and works with the fan_out_aggregate recipe. Reusable Agentic Recipes expose soft points and stamp provenance onto concrete graphs. Demoted templates that proved application-specific refuse instantiate. Accepts inspiration requirement 19. He walks product steps (instantiate_recipe, recipe_plan) and verifies completion from the structured observation expects on this scenario. [113][114] Related: fangore_insp_recipe_version_pointer.

Implementation

GraphTemplate is the substrate for Agentic Recipes. SoftPoint, GraphTemplate.stamp, status active/deprecated/demoted, and optional source_workflow_ref support incubation. This story stamps and demotes via the fan_out_aggregate catalog entry.

Validation

Harness user_story stage 060_fangore_insp_template_incubation.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_insp_tool_effect_classes — Separate observe, prepare, and execute tool classes

Fangore starts the CLI host with family pass_through and backend mock. He runs tool_phase_guard: observe/prepare contracts cannot register write or external effects; execute may. An alias cannot smuggle a weaker phase. Lifecycle observe hooks exist (fangore_insp_lifecycle_observe) but are not a tool-class taxonomy. Tracks MH-DOTS-03[115].

Implementation

OperationRegistry.register + OperationContract / ToolPhase via product verb tool_phase_guard (cli_policy_verbs). Walk-bag in/out carry contracts and register/refuse lists.

Validation

Harness user_story walks tool_phase_guard; expects registered / refused / alias_supported.

Footnotes

fangore_insp_tool_result_freshness — Reject stale tool evidence before external decisions

Fangore starts the CLI host with family pass_through and backend mock. He runs tool_result_freshness: an eight-day-old CRM cache and an expired quote are rejected as errors; a live CRM result within TTL passes. Context freshness scoring in fangore_jev_context_budget_pack and fangore_insp_context_provider covers retrieved context; this story covers typed tool-result TTL. Tracks MH-PA-01[116].

Implementation

ToolResultFreshnessPolicy.reject_if_stale via product verb tool_result_freshness (cli_policy_verbs). Walk-bag in/out carry policy inputs and rejected/passed ids.

Validation

Harness user_story walks tool_result_freshness; expects rejected_ids and passed_ids.

Footnotes

fangore_insp_verification_gate — Keep answer-generated distinct from task-complete

Fangore starts the CLI host with pass_through and mock. He supplies a passing host-check result to verification_outcome and sees complete only after verification is supplied. He repeats with a failed check and sees failed. The evidence is explicitly caller_supplied; this walk exercises the completion policy rather than independently running an oracle.

Implementation

OutcomeContract.evaluate applies completion policy to the supplied verification_passed result. Actual oracle selection and execution remain the VerificationPolicy seam and its own tests.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

  1. Inspiration requirements (req 5: verification) — Req 5 — verification

fangore_insp_wake_reresolve — Re-resolve linkage when resuming a woken run

Fangore starts the CLI host with family pass_through and backend mock. Persistent goals live in the client orchestrator. When a goal wakes, MechaHarness must re-resolve linkage and resume only if the checkpoint fingerprint still matches. Accepts the library half of inspiration requirement 17[117]. Wake re-resolve for Dots MH-DOTS-02; effect-dispatch revalidation: fangore_insp_effect_revalidation[118].

Implementation

GraphExecutor wake resolve + resume. CliInstrumentor verb wake_reresolve_resume.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

fangore_insp_wip_backpressure — Apply WIP back-pressure without hard-coding WIP=1

Fangore starts the CLI host with family pass_through and backend mock. Fangore limits concurrent active nodes and per-write-scope work so agents cannot overreach, while hosts still choose thresholds rather than a universal WIP=1. Accepts WalkingLabs L07 and L08 guidance[119][120].

Implementation

WorkInProgressPolicy in mechaharness.work_in_progress_policy gates concurrency by active nodes, write scope, resource class, and consequence.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

fangore_instruction_todo_plan__conflict_list_refinement — Execute oneshot or todo-list instructions via instruction_todo_plan (conflict_list_refinement)

Fangore starts the CLI host with family pass_through and backend mock, loads the instruction_todo_plan durable graph (controller story, store memory). He wants the local agent to judge whether a task is a oneshot or an ordered list, refine conflicts before work, verify pre-list and per-item acceptance, then check post-list acceptance so later todos have not undone earlier ones. With plan_classify local work he can ask for a oneshot helper from a goal, follow a numbered instruction list, resolve conflicting todos via list refinement, or force list mode explicitly. A separate session schedules scope refinement guidance when he answers oneshot without classify. Complements fangore_guided_coding_recipe (which tiles this recipe as plan_tile). He walks product steps (start, answer) and verifies completion from the structured observation expects on each scenario. This stage covers the conflict_list_refinement scenario.

Implementation

Agentic Recipe catalog id instruction_todo_plan (InstructionTodoPlanTemplate) with stages classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete. Domain mechaharness.instruction_plan builds the plan; PlanClassifyLocalWork runs classify/refine without a coding tool loop for offline stories (environment.local_work: plan_classify). Optional soft points scope_refinement / list_refinement (kind=guidance, not required) are requested via local-work request_guidance (or scheduled in inputs.guidance for offline smoke). DurableGraphGenerator._advance enqueues those asks, yields advice_requested, and restarts local work after resume with guidance_history. Step observations lift allowlisted yield payload fields (context_version, mode, plan) for path expects.

Validation

Harness user_story scenarios session.yaml (scheduled scope_refinement), oneshot_from_goal.yaml, numbered_list.yaml, conflict_list_refinement.yaml, explicit_list_mode.yaml. Unit tests tests/test_instruction_todo_plan.py and tests/test_instruction_plan_integration.py (classify_mode) cover topology and pure classifier edges. Stage id fangore_instruction_todo_plan__conflict_list_refinement (scenario conflict_list_refinement).

fangore_instruction_todo_plan__explicit_list_mode — Execute oneshot or todo-list instructions via instruction_todo_plan (explicit_list_mode)

Fangore starts the CLI host with family pass_through and backend mock, loads the instruction_todo_plan durable graph (controller story, store memory). He wants the local agent to judge whether a task is a oneshot or an ordered list, refine conflicts before work, verify pre-list and per-item acceptance, then check post-list acceptance so later todos have not undone earlier ones. With plan_classify local work he can ask for a oneshot helper from a goal, follow a numbered instruction list, resolve conflicting todos via list refinement, or force list mode explicitly. A separate session schedules scope refinement guidance when he answers oneshot without classify. Complements fangore_guided_coding_recipe (which tiles this recipe as plan_tile). He walks product steps (start, answer) and verifies completion from the structured observation expects on each scenario. This stage covers the explicit_list_mode scenario.

Implementation

Agentic Recipe catalog id instruction_todo_plan (InstructionTodoPlanTemplate) with stages classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete. Domain mechaharness.instruction_plan builds the plan; PlanClassifyLocalWork runs classify/refine without a coding tool loop for offline stories (environment.local_work: plan_classify). Optional soft points scope_refinement / list_refinement (kind=guidance, not required) are requested via local-work request_guidance (or scheduled in inputs.guidance for offline smoke). DurableGraphGenerator._advance enqueues those asks, yields advice_requested, and restarts local work after resume with guidance_history. Step observations lift allowlisted yield payload fields (context_version, mode, plan) for path expects.

Validation

Harness user_story scenarios session.yaml (scheduled scope_refinement), oneshot_from_goal.yaml, numbered_list.yaml, conflict_list_refinement.yaml, explicit_list_mode.yaml. Unit tests tests/test_instruction_todo_plan.py and tests/test_instruction_plan_integration.py (classify_mode) cover topology and pure classifier edges. Stage id fangore_instruction_todo_plan__explicit_list_mode (scenario explicit_list_mode).

fangore_instruction_todo_plan__numbered_list — Execute oneshot or todo-list instructions via instruction_todo_plan (numbered_list)

Fangore starts the CLI host with family pass_through and backend mock, loads the instruction_todo_plan durable graph (controller story, store memory). He wants the local agent to judge whether a task is a oneshot or an ordered list, refine conflicts before work, verify pre-list and per-item acceptance, then check post-list acceptance so later todos have not undone earlier ones. With plan_classify local work he can ask for a oneshot helper from a goal, follow a numbered instruction list, resolve conflicting todos via list refinement, or force list mode explicitly. A separate session schedules scope refinement guidance when he answers oneshot without classify. Complements fangore_guided_coding_recipe (which tiles this recipe as plan_tile). He walks product steps (start, answer) and verifies completion from the structured observation expects on each scenario. This stage covers the numbered_list scenario.

Implementation

Agentic Recipe catalog id instruction_todo_plan (InstructionTodoPlanTemplate) with stages classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete. Domain mechaharness.instruction_plan builds the plan; PlanClassifyLocalWork runs classify/refine without a coding tool loop for offline stories (environment.local_work: plan_classify). Optional soft points scope_refinement / list_refinement (kind=guidance, not required) are requested via local-work request_guidance (or scheduled in inputs.guidance for offline smoke). DurableGraphGenerator._advance enqueues those asks, yields advice_requested, and restarts local work after resume with guidance_history. Step observations lift allowlisted yield payload fields (context_version, mode, plan) for path expects.

Validation

Harness user_story scenarios session.yaml (scheduled scope_refinement), oneshot_from_goal.yaml, numbered_list.yaml, conflict_list_refinement.yaml, explicit_list_mode.yaml. Unit tests tests/test_instruction_todo_plan.py and tests/test_instruction_plan_integration.py (classify_mode) cover topology and pure classifier edges. Stage id fangore_instruction_todo_plan__numbered_list (scenario numbered_list).

fangore_instruction_todo_plan__oneshot_from_goal — Execute oneshot or todo-list instructions via instruction_todo_plan (oneshot_from_goal)

Fangore starts the CLI host with family pass_through and backend mock, loads the instruction_todo_plan durable graph (controller story, store memory). He wants the local agent to judge whether a task is a oneshot or an ordered list, refine conflicts before work, verify pre-list and per-item acceptance, then check post-list acceptance so later todos have not undone earlier ones. With plan_classify local work he can ask for a oneshot helper from a goal, follow a numbered instruction list, resolve conflicting todos via list refinement, or force list mode explicitly. A separate session schedules scope refinement guidance when he answers oneshot without classify. Complements fangore_guided_coding_recipe (which tiles this recipe as plan_tile). He walks product steps (start, answer) and verifies completion from the structured observation expects on each scenario. This stage covers the oneshot_from_goal scenario.

Implementation

Agentic Recipe catalog id instruction_todo_plan (InstructionTodoPlanTemplate) with stages classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete. Domain mechaharness.instruction_plan builds the plan; PlanClassifyLocalWork runs classify/refine without a coding tool loop for offline stories (environment.local_work: plan_classify). Optional soft points scope_refinement / list_refinement (kind=guidance, not required) are requested via local-work request_guidance (or scheduled in inputs.guidance for offline smoke). DurableGraphGenerator._advance enqueues those asks, yields advice_requested, and restarts local work after resume with guidance_history. Step observations lift allowlisted yield payload fields (context_version, mode, plan) for path expects.

Validation

Harness user_story scenarios session.yaml (scheduled scope_refinement), oneshot_from_goal.yaml, numbered_list.yaml, conflict_list_refinement.yaml, explicit_list_mode.yaml. Unit tests tests/test_instruction_todo_plan.py and tests/test_instruction_plan_integration.py (classify_mode) cover topology and pure classifier edges. Stage id fangore_instruction_todo_plan__oneshot_from_goal (scenario oneshot_from_goal).

fangore_instruction_todo_plan__session — Execute oneshot or todo-list instructions via instruction_todo_plan (session)

Fangore starts the CLI host with family pass_through and backend mock, loads the instruction_todo_plan durable graph (controller story, store memory). He wants the local agent to judge whether a task is a oneshot or an ordered list, refine conflicts before work, verify pre-list and per-item acceptance, then check post-list acceptance so later todos have not undone earlier ones. With plan_classify local work he can ask for a oneshot helper from a goal, follow a numbered instruction list, resolve conflicting todos via list refinement, or force list mode explicitly. A separate session schedules scope refinement guidance when he answers oneshot without classify. Complements fangore_guided_coding_recipe (which tiles this recipe as plan_tile). He walks product steps (start, answer) and verifies completion from the structured observation expects on each scenario. This stage covers the session scenario.

Implementation

Agentic Recipe catalog id instruction_todo_plan (InstructionTodoPlanTemplate) with stages classify → refine_plan → pre_accept → work_item* → item_accept → post_accept → complete. Domain mechaharness.instruction_plan builds the plan; PlanClassifyLocalWork runs classify/refine without a coding tool loop for offline stories (environment.local_work: plan_classify). Optional soft points scope_refinement / list_refinement (kind=guidance, not required) are requested via local-work request_guidance (or scheduled in inputs.guidance for offline smoke). DurableGraphGenerator._advance enqueues those asks, yields advice_requested, and restarts local work after resume with guidance_history. Step observations lift allowlisted yield payload fields (context_version, mode, plan) for path expects.

Validation

Harness user_story scenarios session.yaml (scheduled scope_refinement), oneshot_from_goal.yaml, numbered_list.yaml, conflict_list_refinement.yaml, explicit_list_mode.yaml. Unit tests tests/test_instruction_todo_plan.py and tests/test_instruction_plan_integration.py (classify_mode) cover topology and pure classifier edges. Stage id fangore_instruction_todo_plan__session (scenario session).

fangore_jev_action_safety__delete_low_risk_no_grant — Let hard grants win over semantic risk classification (delete_low_risk_no_grant)

Fangore starts the CLI host with family pass_through and backend mock. He judges semantic risk of a proposed action and applies hard AccessPolicy grants so hard grants always win. He verifies decision / hard_won / grants_unchanged. This stage covers the delete_low_risk_no_grant scenario.

Implementation

Product verb judge with risk_question_id + required_abilities/grants; hard AccessPolicy gates over semantic risk.

Validation

user_story scenarios with per-scenario cassettes; hard expects on decision keys. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard). Stage id fangore_jev_action_safety__delete_low_risk_no_grant (scenario delete_low_risk_no_grant).

Footnotes

  1. Jev typed-judgment inspiration (MH-JEV-US08) — Agent action safety firewall

  2. Personal agent reliability map (MH-PA-02 action safety) — Hard execution boundary for authority gate

  3. OpenAI Dots agent safety (MH-DOTS-04) — Independent action review allow/deny/request-approval

fangore_jev_action_safety__read_high_risk_with_grant — Let hard grants win over semantic risk classification (read_high_risk_with_grant)

Fangore starts the CLI host with family pass_through and backend mock. He judges semantic risk of a proposed action and applies hard AccessPolicy grants so hard grants always win. He verifies decision / hard_won / grants_unchanged. This stage covers the read_high_risk_with_grant scenario.

Implementation

Product verb judge with risk_question_id + required_abilities/grants; hard AccessPolicy gates over semantic risk.

Validation

user_story scenarios with per-scenario cassettes; hard expects on decision keys. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard). Stage id fangore_jev_action_safety__read_high_risk_with_grant (scenario read_high_risk_with_grant).

fangore_jev_action_safety__read_low_risk_with_grant — Let hard grants win over semantic risk classification (read_low_risk_with_grant)

Fangore starts the CLI host with family pass_through and backend mock. He judges semantic risk of a proposed action and applies hard AccessPolicy grants so hard grants always win. He verifies decision / hard_won / grants_unchanged. This stage covers the read_low_risk_with_grant scenario.

Implementation

Product verb judge with risk_question_id + required_abilities/grants; hard AccessPolicy gates over semantic risk.

Validation

user_story scenarios with per-scenario cassettes; hard expects on decision keys. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard). Stage id fangore_jev_action_safety__read_low_risk_with_grant (scenario read_low_risk_with_grant).

fangore_jev_citation_growth_mismatch — Refuse to verify when the source contradicts the claim

Fangore starts the CLI host with family pass_through and backend mock. He loads a source document and claim, runs product step judge (fixture cassette offline; live System One when enabled) for: Refuse to verify when the source contradicts the claim. He verifies claim_verified / escalate from the typed support answer and confidence floor.

Implementation

Product CLI verb judge (JudgeVerb): JudgeRequest over source+claim state via injected JudgeProvider. Code-owned claim_verified = selected==supported ∧ conf≥floor.

Validation

Harness user_story stage 040_fangore_jev_citation_growth_mismatch.yaml: judge step + response.json cassette; hard expects on claim_verified / escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_citation_matching_claim — Mark a claim verified only when the source supports it

Fangore starts the CLI host with family pass_through and backend mock. He loads a source document and claim, runs product step judge (fixture cassette offline; live System One when enabled) for: Mark a claim verified only when the source supports it. He verifies claim_verified / escalate from the typed support answer and confidence floor.

Implementation

Product CLI verb judge (JudgeVerb): JudgeRequest over source+claim state via injected JudgeProvider. Code-owned claim_verified = selected==supported ∧ conf≥floor.

Validation

Harness user_story stage 050_fangore_jev_citation_matching_claim.yaml: judge step + response.json cassette; hard expects on claim_verified / escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

Footnotes

  1. Jev typed-judgment inspiration (MH-JEV-US04) — Citation / claim support check

  2. Jev decisions in a Pi harness — Typed judgments and code-owned policy

fangore_jev_citation_missing_source — Refuse to verify a claim with no source

Fangore starts the CLI host with family pass_through and backend mock. He loads a source document and claim, runs product step judge (fixture cassette offline; live System One when enabled) for: Refuse to verify a claim with no source. He verifies claim_verified / escalate from the typed support answer and confidence floor.

Implementation

Product CLI verb judge (JudgeVerb): JudgeRequest over source+claim state via injected JudgeProvider. Code-owned claim_verified = selected==supported ∧ conf≥floor.

Validation

Harness user_story stage 060_fangore_jev_citation_missing_source.yaml: judge step + response.json cassette; hard expects on claim_verified / escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_citation_uncertain_support — Leave a low-confidence citation unverified

Fangore starts the CLI host with family pass_through and backend mock. He loads a source document and claim, runs product step judge (fixture cassette offline; live System One when enabled) for: Leave a low-confidence citation unverified. He verifies claim_verified / escalate from the typed support answer and confidence floor.

Implementation

Product CLI verb judge (JudgeVerb): JudgeRequest over source+claim state via injected JudgeProvider. Code-owned claim_verified = selected==supported ∧ conf≥floor.

Validation

Harness user_story stage 070_fangore_jev_citation_uncertain_support.yaml: judge step + response.json cassette; hard expects on claim_verified / escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_context_budget_pack — Pack scored RAG candidates into a fixed token budget

Fangore starts the CLI host with family pass_through and backend mock. He binds a FixtureRagRetriever corpus and loads the context_pack Agentic Recipe for: Pack scored RAG candidates into a fixed token budget. He runs run_recipe context_pack (retrieve → pack via assemble_context_within_budget) and verifies selected_ids / within_budget. [121]

Implementation

Agentic Recipe context_pack (ContextPackTemplate): rag_retrieve → rag_pack. Host binds RagRetriever (story: FixtureRagRetriever via environment.rag_corpus). Pack calls assemble_context_within_budget. Product verb run_recipe.

Validation

Harness user_story stage 080_fangore_jev_context_budget_pack.yaml: environment.rag_corpus + graph.recipe context_pack + run_recipe; hard expects on selected_ids / within_budget.

Footnotes

  1. Personal agent reliability map (MH-PA-01 context freshness) — Native context freshness scoring; typed tool-result TTL is fangore_insp_tool_result_freshness

fangore_jev_context_exclude_injection — Exclude injection-tainted snippets from the pack

Fangore starts the CLI host with family pass_through and backend mock. He binds a FixtureRagRetriever corpus and loads the context_pack Agentic Recipe for: Exclude injection-tainted snippets from the pack. He runs run_recipe context_pack (retrieve → pack) and verifies selected_ids / within_budget.

Implementation

Agentic Recipe context_pack (ContextPackTemplate): rag_retrieve → rag_pack. Host binds RagRetriever (story: FixtureRagRetriever via environment.rag_corpus). Pack calls assemble_context_within_budget. Product verb run_recipe.

Validation

Harness user_story stage 090_fangore_jev_context_exclude_injection.yaml: environment.rag_corpus + graph.recipe context_pack + run_recipe; hard expects on selected_ids / within_budget.

fangore_jev_context_filter_stale_untrusted — Keep stale or untrusted snippets out of the pack

Fangore starts the CLI host with family pass_through and backend mock. He binds a FixtureRagRetriever corpus and loads the context_pack Agentic Recipe for: Keep stale or untrusted snippets out of the pack. He runs run_recipe context_pack (retrieve → pack) and verifies selected_ids / within_budget.

Implementation

Agentic Recipe context_pack (ContextPackTemplate): rag_retrieve → rag_pack. Host binds RagRetriever (story: FixtureRagRetriever via environment.rag_corpus). Pack calls assemble_context_within_budget. Product verb run_recipe.

Validation

Harness user_story stage 100_fangore_jev_context_filter_stale_untrusted.yaml: environment.rag_corpus + graph.recipe context_pack + run_recipe; hard expects on selected_ids / within_budget.

fangore_jev_context_missing_scores_fallback — Fill the budget with deterministic ranking when scores are missing

Fangore starts the CLI host with family pass_through and backend mock. He binds a FixtureRagRetriever corpus and loads the context_pack Agentic Recipe for: Fill the budget with deterministic ranking when scores are missing. He runs run_recipe context_pack (retrieve → pack) and verifies selected_ids / within_budget.

Implementation

Agentic Recipe context_pack (ContextPackTemplate): rag_retrieve → rag_pack. Host binds RagRetriever (story: FixtureRagRetriever via environment.rag_corpus). Pack calls assemble_context_within_budget. Product verb run_recipe.

Validation

Harness user_story stage 110_fangore_jev_context_missing_scores_fallback.yaml: environment.rag_corpus + graph.recipe context_pack + run_recipe; hard expects on selected_ids / within_budget.

fangore_jev_req_review_approve_missing_crash_tests — Request crash tests even when the judge says approve

Fangore starts the CLI host with family pass_through and backend mock. He judges requirements coverage over a PR diff and story facts, then applies crash-test policy. He verifies completion from structured observation expects.

Implementation

Product verb judge over PR/story state; code-owned outcome from coverage + crash_tests_present.

Validation

user_story approve_but_missing_crash_tests.yaml judge + cassette; expect outcome=request_tests. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_req_review_covered_with_tests — Accept a change when requirements and crash tests are covered

Fangore starts the CLI host with family pass_through and backend mock. He judges requirements coverage over a PR diff and story facts, then applies crash-test policy. He verifies completion from structured observation expects.

Implementation

Product verb judge over PR/story state; code-owned outcome from coverage + crash_tests_present.

Validation

user_story covered_with_tests.yaml judge + cassette; expect outcome=continue_review. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_req_review_gap_found — Escalate when a requirement gap appears in the facts

Fangore starts the CLI host with family pass_through and backend mock. He judges requirements coverage over a PR diff and story facts, then applies crash-test policy. He verifies completion from structured observation expects.

Implementation

Product verb judge over PR/story state; code-owned outcome from coverage + crash_tests_present.

Validation

user_story gap_found.yaml judge + cassette; expect outcome=request_tests. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_req_review_template_shape — Shape a requirements-aware review with isolated checkers

Fangore starts the CLI host with family pass_through and backend mock. He runs independent_review with two reviewers and omitted producer reasoning, then verifies the isolated review shape from the run observation. [122]

Implementation

Agentic Recipe independent_review via run_recipe / IndependentReviewRecipeAdapter.

Validation

user_story run_recipe; expects template_name / omit_producer_reasoning / review_count.

Footnotes

fangore_jev_task_route_complex_frontier — Force frontier when quality policy rejects the cheap lane

Fangore starts the CLI host with family pass_through and backend mock. He judges a cheap lane but quality policy forces frontier on high complexity. He verifies completion from structured observation expects.

Implementation

Product verb judge + code-owned quality override on complexity facts.

Validation

user_story judge; expect final_action=frontier. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_task_route_invalid — Escalate when the model invents a disallowed lane

Fangore starts the CLI host with family pass_through and backend mock. He escalates when the model invents a disallowed lane. He verifies completion from structured observation expects.

Implementation

Product verb judge; disallowed selected lane forces escalate.

Validation

user_story judge; expect escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_task_route_low_confidence — Escalate when the router is not confident

Fangore starts the CLI host with family pass_through and backend mock. He escalates when the router confidence is below the floor. He verifies completion from structured observation expects.

Implementation

Product verb judge with confidence_floor escalation.

Validation

user_story judge; expect escalate. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

fangore_jev_task_route_simple_local — Route simple work to the local small model

Fangore starts the CLI host with family pass_through and backend mock. He judges a simple workload to the local_small lane. He verifies completion from structured observation expects.

Implementation

Product verb judge + code-owned quality override on complexity facts.

Validation

user_story judge; expect final_action=local_small. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

Footnotes

  1. Jev typed-judgment inspiration (MH-JEV-US07) — Task-specific model/workflow router

fangore_job_lane_cross_deny — Cross-lane observe denies without exposure or grant

Fangore starts the CLI host with family pass_through and backend mock. Assets publishes asset_urls under deny-all exposure. Billing calls lane_observe for that key and receives a typed deny — no silent bleed across JobLanes.

Implementation

JobLaneBroker.observe returns status: denied when publisher exposure and standing grants/handoffs do not allow the caller (JL-05..06).

Validation

Harness user_story stage 010_fangore_job_lane_cross_deny.yaml.

Footnotes

  1. Job lane broker requirements — Cross-lane deny-by-default

fangore_job_lane_handoff_oneshot — HandoffRecord unlocks named refs once across lanes

Fangore starts the CLI host with family pass_through and backend mock. Assets publishes two memo keys under deny-all exposure, then hands off only memo:1 to billing via lane_handoff. Billing observes the shared ref and is denied the unshared one; a ghost handoff refuses.

Implementation

JobLaneBroker.handoff consumes HandoffRecord.evidence_refs; verbs lane_publish / lane_handoff / lane_observe.

Validation

Harness user_story stage 020_fangore_job_lane_handoff_oneshot.yaml.

Footnotes

  1. Job lane broker requirements — One-shot handoff share

fangore_job_lane_key_expose_artifacts — FileArtifact URLs observe after key exposure allowlist

Fangore starts the CLI host with family pass_through and backend mock. Assets publishes a FileArtifact under asset_urls with allow_lanes for billing. Billing observes latest and receives the URL payload (JL-08).

Implementation

FileArtifact on the run WalkBag; JobLane.keys.asset_urls exposure; lane_publish / lane_observe.

Validation

Harness user_story stage 030_fangore_job_lane_key_expose_artifacts.yaml.

Footnotes

  1. Job lane broker requirements — JL-08 FileArtifact under exposed keys

fangore_job_lane_meta_allowlist — Lane meta is open only to allowlisted caller lanes

Fangore starts the CLI host with family pass_through and backend mock. Assets exposes run meta only to billing.settle. Billing observes meta successfully; a third lane is denied.

Implementation

JobLane.meta ExposureRule with allow_lanes; lane_observe with meta: true (JL-06).

Validation

Harness user_story stage 040_fangore_job_lane_meta_allowlist.yaml.

Footnotes

  1. Job lane broker requirements — Meta exposure allowlist

fangore_job_lane_observe_before — before(t) selector returns the last eligible lane run

Fangore starts the CLI host with family pass_through and backend mock. He publishes two runs on assets.generate with distinct started_at stamps, then observes with before a midpoint timestamp and gets the earlier run (JL-04).

Implementation

ObserveSelector.before / at_or_before on JobLaneBroker.observe; lane_publish.started_at.

Validation

Harness user_story stage 050_fangore_job_lane_observe_before.yaml.

Footnotes

  1. Job lane broker requirements — JL-04 run sequence selectors

fangore_job_lane_same_lane_lineage — Later run in a job lane observes an earlier run’s key

Fangore starts the CLI host with family pass_through and backend mock. He configures JobLane assets.generate, publishes asset_urls on an early run, then from a later run in the same lane observes latest and reads the published artifact URL. Same-lane lineage is allowed by default (JL-07).

Implementation

JobLaneBroker in mechaharness.job_lane_broker; product verbs lane_publish / lane_observe in cli_policy_verbs; story Config binds via environment.job_lanes and step lane / run_id (JL-01..10).

Validation

Harness user_story stage 060_fangore_job_lane_same_lane_lineage.yaml.

Footnotes

  1. Job lane broker requirements — JL-07 same-lane observe

fangore_local_plan_resume — Resume a durable local plan after a crash

Fangore starts the CLI host with family pass_through and backend mock. A local plan’s require_file node fails when /work/input.txt is missing on the virtual filesystem. He observes that failure, seeds the file into MemoryFilesystem, and resumes the same checkpointed run_id (held on walk-bag ctx) so the node succeeds. Checkpoints — not chat — carry the plan across the gap. Incompatible harness fingerprints remain covered by fangore_insp_durable_resume. See inspiration requirements for durable long-running work[123].

Implementation

LocalPlanResumeVerb (local_plan_resume) in cli_policy_verbs: shared MemoryFilesystem + GraphExecutor checkpoint store; fail on missing path; seed; re-arm failed node; resume=True with the same run_id on walk-bag ctx. Fan-in / merge / precondition helpers stay available as library units; fingerprint refuse is fangore_insp_durable_resume.

Validation

Harness user_story walks local_plan_resume; expects first_status=failed (missing_file), resume_status=ok, file_content, and stable run_id.

Footnotes

  1. Loop vs graph engineering — Explicit control flow; MechaHarness extends into execution graphs

fangore_node_components — Query node components inside each graph node for pre-layout

Fangore starts the CLI host with family pass_through and backend mock, and works with the conversational_tool_loop recipe. Before a run starts, Fangore’s console must place interior pieces inside each plan step — soft bindings, stop bounds, and nested child handles — so the camera can zoom into a node without inventing a parallel structure graph. Those pieces are node components of a parent graph node, not free-floating world nodes. Complements fangore_insp_dynamic_subgraph and fangore_traversal_contract. He walks product steps (instantiate_recipe) and verifies completion from the structured observation expects on this scenario. [124]

Implementation

mechaharness.node_component.node_components_for derives NodeComponent rows from an ExecutionGraph plus optional template soft points and tool names. Kinds are limited to the closed catalog in docs/reference/node-components.md (events, soft points, child_graph, stop_contract, effect_state, budget_level). Every component requires parent_node_id. Soft points on Agentic Recipes appear as soft_point components.

Validation

Harness user_story stage 190_fangore_node_components.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_recipe_as_tool — Nest a child recipe under a tool_call graph node

Fangore starts the CLI host with family pass_through and backend mock. Fangore’s generate-image tool should run a child oneshot recipe under that tool step so operators can zoom into prompt → generate → verify without a parallel soft lane. Nested spend shares the parent budget; failure surfaces on the tool node. Complements fangore_insp_dynamic_subgraph, fangore_insp_budget_subgraph_rollup, and fangore_conversational_tool_loop. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [125][126]

Implementation

mechaharness.node_component.embed_recipe_as_tool attaches a child ExecutionGraph on a tool_call graph node using the same nest shape as SubgraphNodeRunner.embed. GraphExecutor runs the child with child_run_id and shared budget (HF-08). Parent exposes a child_graph node component via node_components_for.

Validation

Harness user_story stage 100_fangore_recipe_as_tool.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_recipe_namespace_tile — Embed two recipe instances without node-id collisions

Fangore starts the CLI host with family pass_through and backend mock. Fangore tiles the same Agentic Recipe twice in one parent plan. Each instance must keep distinct step identities and recipe provenance so operators can tell which copy failed. Complements fangore_insp_dynamic_subgraph for nested execution. He walks product steps (tile_recipe) and verifies completion from the structured observation expects on this scenario. [127] Related: fangore_insp_registry_only_compose.

Implementation

GraphTemplateParams.instance_key namespaces node ids on instantiate. GraphTemplate.tile embeds a recipe graph under a parent node via SubgraphNodeRunner. Provenance includes instance id, params fingerprint, and logical-to-concrete node map (RC-01, RC-04, RC-05, RC-08).

Validation

Harness user_story stage 110_fangore_recipe_namespace_tile.yaml: environment + graph + steps + complete expects.

Footnotes

  1. Recipes requirements (RC-01/04/05/08) — Namespaced multi-instance tiling

fangore_recursive_return — Resume a project from its committed grandchild result

Fangore opens a project graph. Each planning step discovers whether its slice needs a smaller child. The worker stops immediately after the grandchild commits its proof. Fangore reopens the SQLite checkpoints, continues the original project, and checks the acceptance result produced by each returning caller.

Implementation

GraphExecutor drives root and nested frames through the same call loop.

Validation

Three levels enter in order. One leaf runs. Each parent accepts once and private child edits stay scoped.

fangore_refund_verdict — Keep billing authority in product rules, not the model

Fangore starts the CLI host with family pass_through and backend mock. A customer was charged twice. Only the billing team may own the ticket. The model may suggest a team, but product policy allows only when the route signal is billing — and a high quality score alone must not override missing completion evidence. He walks product steps (judge_route) and verifies completion from the structured observation expects on this scenario. Related: fangore_decision_surface_reject.

Implementation

Provider-neutral judge types (Choice/Score/Noul questions and signals) plus JudgementPolicy / decide() apply configured thresholds. CliInstrumentor verb judge_route runs judge+decide. System One maps vendor wire via SystemOneJudgeProvider.

Covers: POL-02, JDG-01, JDG-02, JDG-04, VER-02.

Validation

Harness user_story stage 150_fangore_refund_verdict.yaml: environment + graph + steps + complete expects. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

Footnotes

  1. Jev decisions in a Pi harness — Routing, gating, batched questions, thresholds

fangore_strategy_revision_accept — Green diagnosis yields continue_or_accept

Fangore starts the CLI host with family pass_through and backend mock. He walks strategy_revision against a none-class Diagnosis and verifies disposition continue_or_accept.

Implementation

revision_* hard nodes; Agentic Recipe strategy_revision.

Validation

Suite stage 015_fangore_strategy_revision_accept — continue_or_accept.

Footnotes

  1. Gastronomic M6 revision accept — Green verify path continues without inventing a repair loop

fangore_strategy_revision_change — Repeat failure class forces change_strategy

Fangore starts the CLI host with family pass_through and backend mock. He walks strategy_revision against a Diagnosis whose next_experiment already marks a repeated class, and verifies disposition change_strategy with strategy_changed true.

Implementation

revision_* hard nodes; Agentic Recipe strategy_revision.

Validation

Suite stage 025_fangore_strategy_revision_change — change_strategy.

Footnotes

  1. Gastronomic M6 revision change strategy — Repeated identical failure cannot cause unbounded identical retries

fangore_strategy_revision_retry — Retry disposition requires evidence delta

Fangore starts the CLI host with family pass_through and backend mock. He walks strategy_revision against a semantics Diagnosis with remaining retry budget, and verifies disposition retry with evidence_delta_required true.

Implementation

revision_* hard nodes; Agentic Recipe strategy_revision.

Validation

Suite stage 010_fangore_strategy_revision_retry — disposition retry.

Footnotes

  1. Gastronomic M6 revision retry — Every retry must add evidence

fangore_strategy_revision_shape — Instantiate the strategy_revision Agentic Recipe

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe strategy_revision and verifies constrain/decide/publish/validate node ids.

Implementation

Agentic Recipe strategy_revision (StrategyRevisionTemplate) via instantiate_recipe.

Validation

Suite stage 005_fangore_strategy_revision_shape — template_name and node ids.

Footnotes

  1. Gastronomic M6 strategy_revision — Deterministic retry gate after diagnosis

fangore_strategy_revision_stop — Exhausted retry budget stops the loop

Fangore starts the CLI host with family pass_through and backend mock. He walks strategy_revision with attempts_used equal to attempts_max and verifies disposition stop.

Implementation

revision_* hard nodes; Agentic Recipe strategy_revision.

Validation

Suite stage 020_fangore_strategy_revision_stop — disposition stop.

Footnotes

  1. Gastronomic M6 revision stop — Retry loops must terminate when budget is exhausted

fangore_strategy_revision_validate_errors — revision_validate reports schema errors without failing the node

Fangore starts the CLI host with family pass_through and backend mock. He seeds a malformed StrategyRevision into the bag, runs revision_validate with fail_if_invalid false, and verifies the validation receipt lists errors while the walk stays ok.

Implementation

revision_validate in revision_hard_nodes; validate_strategy_revision.

Validation

Suite stage 035_fangore_strategy_revision_validate_errors — validation.ok false.

Footnotes

  1. Gastronomic M6 revision validate errors — Validate is a schema report; hosts decide whether to hard-fail

fangore_strategy_revision_yield — Unknown diagnosis yields guidance

Fangore starts the CLI host with family pass_through and backend mock. He walks strategy_revision against an unknown failure_class Diagnosis and verifies disposition yield_guidance.

Implementation

revision_* hard nodes; Agentic Recipe strategy_revision.

Validation

Suite stage 030_fangore_strategy_revision_yield — yield_guidance.

Footnotes

  1. Gastronomic M6 revision yield — Unknown host evidence escalates instead of inventing a repair

fangore_tdr_crash_after_accept_before_record — Resume after remote accept before the plan records the result

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies after the remote system accepts but before acceptance is recorded. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 010_fangore_tdr_crash_after_accept_before_record.yaml drives product verb transactional_resume with crash_location: after_accept_before_record; hard expects on declared observation keys.

fangore_tdr_crash_after_accept_recorded — Resume after accept is already checkpointed

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies after acceptance is recorded but before the outcome is reduced. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 020_fangore_tdr_crash_after_accept_recorded.yaml drives product verb transactional_resume with crash_location: after_accept_recorded; hard expects on declared observation keys.

fangore_tdr_crash_after_final_commit — Resume after final commit with nothing left to dispatch

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies after the final checkpoint commit. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 030_fangore_tdr_crash_after_final_commit.yaml drives product verb transactional_resume with crash_location: after_final_commit; hard expects on declared observation keys.

fangore_tdr_crash_after_intent_before_call — Resume after crash after intent but before the remote call

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies after the intent is recorded but before the external call. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 040_fangore_tdr_crash_after_intent_before_call.yaml drives product verb transactional_resume with crash_location: after_intent_before_call; hard expects on declared observation keys.

fangore_tdr_crash_after_reduce_before_checkpoint — Resume after reduce before the checkpoint commits

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies after the outcome is reduced but before the checkpoint commits. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 050_fangore_tdr_crash_after_reduce_before_checkpoint.yaml drives product verb transactional_resume with crash_location: after_reduce_before_checkpoint; hard expects on declared observation keys.

fangore_tdr_crash_before_intent — Resume after crash before the job intent is recorded

Fangore starts the CLI host with family pass_through and backend mock. He dispatches a remote coding job on a durable plan; the MechaHarness process dies before the job intent is recorded. After restart he opens the same durable store, resumes the plan, and verifies the remote job is submitted exactly once with the expected effect state for this crash window. Sibling windows: fangore_tdr_crash_before_intent, fangore_tdr_crash_after_intent_before_call, fangore_tdr_crash_after_accept_before_record, fangore_tdr_crash_after_accept_recorded, fangore_tdr_crash_after_reduce_before_checkpoint, and fangore_tdr_crash_after_final_commit. Complements fangore_insp_durable_resume fingerprint refusal. Tracks transactional durable resume[128] and MH-PA-05[129]. He walks product steps (transactional_resume) and verifies completion from the structured observation expects on this scenario.

Implementation

SqliteCheckpointStore + host_graph_executor with ArmedCrashProbe for coding_job effects. Product CLI verb transactional_resume (mechaharness.cli_transactional_resume). Unit matrix: tests/fixtures/transactional_durable_resume/*.json.

Validation

Harness user_story stage 060_fangore_tdr_crash_before_intent.yaml drives product verb transactional_resume with crash_location: before_intent; hard expects on declared observation keys.

Footnotes

  1. OpenAI Dots map (MH-DOTS-06 effect ledger) — Effect ledger native; auth epoch is fangore_insp_auth_epoch_resume

  2. Self-revising recipe map (MH-SR-08 checkpoints) — Durable checkpoints; neighbor CR algorithm is separate delta

fangore_traversal_contract — Align live traversal with node-component ids from existing events

Fangore starts the CLI host with family pass_through and backend mock. As a run proceeds, Fangore’s console lights interiors that were laid out ahead of time. Inference and tool events must map to the same node-component identities under a parent graph node so the path lights up without a second observability graph. Complements fangore_node_components and nubble_insp_rollout_graph. He walks product steps (recipe_plan) and verifies completion from the structured observation expects on this scenario. [130]

Implementation

mechaharness.node_component.traversal_from_events projects EventLog payloads whose types are existing core events (inference, tool_call, tool_result, turn_start, …) into TraversalRecord rows with parent_node_id and component ids. Harness emits enrich those payloads with parent_node_id / component_id / execution_node_id.

Validation

Harness user_story stage 200_fangore_traversal_contract.yaml: environment + graph + steps + complete expects.

Footnotes

fangore_verify_repair_recipe — Run the verify-repair Agentic Recipe until verification succeeds

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe verify_repair with a fixture artifact that fails the first verify, runs run_recipe, and verifies one repair attempt makes verification succeed under the stop contract. Complements fangore_bounded_repair_loop for loop helper semantics. [131]

Implementation

Agentic Recipe verify_repair via VerifyRepairTemplate / verify_repair_runner and product verb run_recipe (VerifyRepairRecipeAdapter).

Validation

Harness user_story stage 120_fangore_verify_repair_recipe.yaml drives run_recipe; expects verification_passed, repair_attempts, final_status plus shape keys.

Footnotes

  1. Recipes requirements (verify_repair) — verify_repair tiling story

fangore_workspace_discovery_checkpoint — Resume workspace discovery after pausing past hypotheses

Fangore starts the CLI host with family pass_through and backend mock. He walks discovery until after search, asserts hypotheses and matches are on the bag, then continues. Downstream interpret/publish must see the same checkpointed bag values.

Implementation

graph_walk start until/stop + continue; WalkBag checkpoint hydration.

Validation

Suite stage 050_fangore_workspace_discovery_checkpoint — pause retains hypotheses/matches; resume publishes found.

Footnotes

  1. Gastronomic M5 — Checkpoint/resume continuity

fangore_workspace_discovery_continuity — Interpret ContextSpec sees hypotheses and matches, not bag noise

Fangore starts the CLI host with family pass_through and backend mock. He seeds unrelated ctx.noise, runs discovery, and verifies the interpret Completer request includes goal/hypotheses/matches while omitting the noise register.

Implementation

ContextSpec reads on interpret; graph_walk surfaces model_inputs.

Validation

Suite stage 060_fangore_workspace_discovery_continuity — model_inputs.interpret includes declared paths only.

Footnotes

  1. Gastronomic M5 — I2 must see I1+H2 evidence

fangore_workspace_discovery_failed — Publish failed when discovery preflight rejects malformed inputs

Fangore starts the CLI host with family pass_through and backend mock. He seeds an empty goal so discovery_preflight records ok: false without aborting the walk, then inventory_publish must emit typed failed status.

Implementation

run_discovery_preflight + publish_workspace_inventory failed branch.

Validation

Suite stage 040_fangore_workspace_discovery_failed — inventory status failed.

Footnotes

  1. Gastronomic M5 — Fatal input errors are typed failed

fangore_workspace_discovery_found — Discover calculator division-by-zero evidence as found

Fangore starts the CLI host with family pass_through and backend mock. He seeds a read-only calculator workspace and objective only (no file paths), then walks the workspace_discovery graph: preflight, manifest, hypotheses inference, search/extract, interpret inference, evidence resolve, coverage, and inventory publish. Verified arithmetic/CLI/test spans must publish out.workspace_inventory.status=found without mutating workspace files.

Implementation

Agentic Recipe workspace_discovery (WorkspaceDiscoveryTemplate); DiscoveryHardNodeRunner kinds discovery_preflight / inventory_publish plus P0 hard nodes; bag-aware CliInferRunner for hypotheses/interpret soft points.

Validation

Suite stage 010_fangore_workspace_discovery_found — inventory status found, relevant_files include arithmetic/cli/test paths, coverage sufficient.

Footnotes

  1. Gastronomic guided-development M5 (workspace_discovery) — Read-only discovery publishes typed WorkspaceInventory

fangore_workspace_discovery_inconclusive — Publish inconclusive when the file budget truncates the manifest

Fangore starts the CLI host with family pass_through and backend mock. He runs workspace discovery with max_files: 1 so the manifest truncates. Even if interpret proposes a path, coverage must be inconclusive and the inventory must not claim a confident found.

Implementation

coverage_measure marks truncated manifests; publish_workspace_inventory maps that to inconclusive.

Validation

Suite stage 030_fangore_workspace_discovery_inconclusive — inventory status inconclusive.

Footnotes

  1. Gastronomic M5 — Insufficient coverage is inconclusive

fangore_workspace_discovery_negative_control — Fail when interpret ContextSpec omits required prior evidence

Fangore starts the CLI host with family pass_through and backend mock. He deliberately configures interpret to require acc.discovery.missing_required. The walk must fail at interpret so the request-contract validator is proven — this stage passes by observing the expected failure.

Implementation

ContextSpec required-read validation in CliInferRunner / compile_context_spec.

Validation

Suite stage 080_fangore_workspace_discovery_negative_control — status not ok; interpret failed.

Footnotes

  1. Gastronomic M5 — Negative control for missing prior context

fangore_workspace_discovery_not_found — Publish not_found after adequate coverage of an absent feature

Fangore starts the CLI host with family pass_through and backend mock. He asks discovery for a deliberately absent feature under a full file budget. After hypotheses/search yield no verified refs and coverage is sufficient, inventory publish must report not_found rather than inventing evidence.

Implementation

publish_workspace_inventory returns not_found only when verified is empty and coverage status is sufficient; Agentic Recipe workspace_discovery.

Validation

Suite stage 020_fangore_workspace_discovery_not_found — status not_found, empty relevant_files.

Footnotes

  1. Gastronomic M5 — Well-supported negative discovery

fangore_workspace_discovery_recipe_shape — Instantiate the workspace_discovery Agentic Recipe shape

Fangore starts the CLI host with family pass_through and backend mock. He loads Agentic Recipe workspace_discovery from a RecipeBind, and verifies the stamped graph exposes preflight through inventory publish node ids so hosts can tile discovery before walking bag-backed stages.

Implementation

Agentic Recipe workspace_discovery via WorkspaceDiscoveryTemplate / instantiate_recipe and catalog registration in default_graph_template_classes.

Validation

Suite stage 005_fangore_workspace_discovery_recipe_shape — template_name and subgraph node ids for the discovery topology.

Footnotes

  1. Gastronomic guided-development M5 (workspace_discovery shape) — Catalog recipe must instantiate with soft points

fangore_workspace_discovery_snapshot_tools — Interpret may inspect the frozen discovery snapshot only

Fangore starts the CLI host with family pass_through and backend mock. On the interpret soft point he permits snapshot inspection of matches and hypotheses, denies ctx.secret, and still publishes verified found inventory.

Implementation

SnapshotInspectionToolkit on CliInferRunner interpret node within workspace_discovery walk.

Validation

Suite stage 070_fangore_workspace_discovery_snapshot_tools — inspection flags + found inventory.

Footnotes

  1. Gastronomic M5 — Bounded snapshot tools on I2

Taloneth’s stories

taloneth_atk_research_reject — Reject research candidates that fail verified success

Taloneth starts the CLI host with family pass_through and backend mock. A cheap backend fails verified success against a frozen baseline. Research must reject it, keep negative results, and only promote noninferior survivors. Candidates cannot rewrite the evaluator. Related: taloneth_validator_qualification. Generic research loop for self-revising MH-SR-06; recipe-from-traces: taloneth_insp_recipe_evolution_loop[132].

Implementation

ResearchLab / EvalProtocol run bounded research: inspect → hypothesis → isolated experiment → ATK-style search → frozen evaluation protocol → promote/rollback. Production evaluators stay protected.

Covers: EXP-01, EXP-02, EXP-03, EXP-04. Final-test evidence is supplied by the caller and bound to the candidate change set and protocol digest; no passing evidence is synthesized.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_cache_layout_experiment — Compare enabled and disabled context layout

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth toggles cache-aware layout on and off. When enabled, stable policy blocks should sit in a stable prefix separate from the dynamic tail; when disabled, everything stays in the dynamic tail with diagnostics.

Implementation

compile_cache_aware_layout / CacheLayout under CtxFlags.cache_aware_layout — an independent experiment toggle with prefix identity diagnostics.

Covers: CTX-09.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

taloneth_decision_plane_shadow_compare__candidate_unavailable — Compare shadowed decision-plane answers before promotion (candidate_unavailable)

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth reviews shadow versus production answers on matched refund triage cases to decide whether a smaller decision model is ready to own the path. Agreement and telemetry must be honest; missing candidate results stay missing. Related: fangore_decision_plane_shadow, taloneth_shadow_decision_backends.[133] This stage covers the candidate_unavailable scenario.

Implementation

compare_shadow_decision plus build_decision_plane_telemetry support promotion evidence for Agentic Recipe decision_plane without inventing unavailable candidate results (DP-07, DP-08).

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys. Stage id taloneth_decision_plane_shadow_compare__candidate_unavailable (scenario candidate_unavailable).

Footnotes

taloneth_decision_plane_shadow_compare__disagree — Compare shadowed decision-plane answers before promotion (disagree)

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth reviews shadow versus production answers on matched refund triage cases to decide whether a smaller decision model is ready to own the path. Agreement and telemetry must be honest; missing candidate results stay missing. Related: fangore_decision_plane_shadow, taloneth_shadow_decision_backends.[133] This stage covers the disagree scenario.

Implementation

compare_shadow_decision plus build_decision_plane_telemetry support promotion evidence for Agentic Recipe decision_plane without inventing unavailable candidate results (DP-07, DP-08).

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys. Stage id taloneth_decision_plane_shadow_compare__disagree (scenario disagree).

taloneth_fixture_judge_batch — Validate judge question batches without a live model

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth iterates yes/no, choice, and score questions offline. Clean batches validate; missing answers must surface structured errors — including partial failure reporting — without a GPU host.

Implementation

Provider-neutral judge schema in mechaharness.inference.judge (Choice/Noul/Score questions and signals, Judgement, JudgeErrorItem, provenance). FixtureJudgeProvider + judge() validate batches and report per-question errors. Semantics cover closed-world answers, partial failure, and calibration/provenance fields adapters must map.

Covers: JDG-01, JDG-02, JDG-03, JDG-04.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

taloneth_insp_component_ablation — Ablate harness components against a matched corpus

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth runs a component-ablation experiment that disables named harness pieces against a matched corpus so retirement decisions rest on success/cost deltas. Accepts WalkingLabs L02 and P01 guidance[134][135].

Implementation

ComponentAblationExperiment and ablation_delta in mechaharness.component_ablation standardize baseline fingerprint, disabled component IDs, and quality/cost deltas.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_correction_spec_debt — Capture corrections as reviewed specification debt before policy change

Taloneth starts the CLI host with family pass_through and backend mock. When a person corrects the agent, the correction is recorded as outstanding specification debt: the correction text, the scenarios that failed, and a link to the rule-promotion record it may harden into. The record stays flagged for human review until someone accepts it, and the host (not the library) generates the regression test and attaches it. Soft-to-hard promotion with provenance exists in taloneth_insp_rule_promotion. Tracks MH-PA-07[136].

Implementation

SpecificationDebtRecord, SpecificationDebtLedger, and capture_correction() in specification_debt.py hold the correction, failing_scenario_refs, promotion_record_id (from PromotionRecord.record_id), review_required, and a host-filled generated_test_ref; link_test() and approve() move status open → test_linked → closed. The library owns only the ledger schema; test generation stays with the host.

Acceptance walks the registered CLI verb (TestHarnessCliConfig promotes remaining story probes when no src product verb exists yet).

Validation

Harness user_story walks the promoted product/test verb (no probe: wrapper); hard expects on declared observation keys.

Footnotes

taloneth_insp_cross_harness_failure — Separate semantic task failure from invalid tool protocol

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs cross-harness evaluation to classify invalid tool names and schema errors separately from simply getting the task wrong. Accepts FineEnvs out-of-harness failure modes[137].

Implementation

CrossHarnessFailure and classify_cross_harness_failure in mechaharness.cross_harness_failure emit taxonomy kinds usable as claims inside matrix cells.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_eval_claims — Compose typed evaluation claims without opaque scores

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs evaluators to emit independent pass/fail/unknown claims backed by evidence refs, not a single opaque score that hides which assertion failed. Accepts Anthropic eval guidance and BINEVAL[138][139].

Implementation

Evidence, Claim, and compose_claims in mechaharness.eval_evidence provide typed evidence pointers and binary assertion composition.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_eval_matrix — Keep model-harness-task matrix cells for drill-down

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth evaluates the same model under multiple harness configurations and must keep every matrix cell so averages cannot hide a catastrophic compatibility failure. Accepts FineEnvs cross-harness matrix practice[140].

Implementation

EvalMatrix and EvalMatrixCell in mechaharness.eval_matrix index trials by model, harness fingerprint, and task family, and aggregate retains cell drill-down.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_evaluation_outcome — Keep infrastructure failures out of task-success scores

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs a dead sandbox or broken trace to count as unscorable execution failure, not as proof the model answered incorrectly. Accepts FineEnvs reward separation guidance[141].

Implementation

EvaluationOutcome and outcome_from_failure in mechaharness.evaluation_outcome, with task_trials / pass_at_k in mechaharness.eval_trial excluding non-task outcomes from denominators.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_evaluator_compose — Compose supplied evaluator claims with version metadata

Taloneth starts the CLI host with pass_through and mock. She supplies a versioned evaluator identity, a held-out label, and recorded file-check claims to evaluator_compose_run. She checks that passing claims compose to passed while evidence_origin stays caller_supplied. This walk does not execute or authenticate the named evaluator.

Implementation

EvaluatorResult and Claim in mechaharness.evaluator and eval_evidence preserve the supplied identity and claims. compose_claims and all_passed compute the aggregate; no hardcoded passing grader runs.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

  1. Anthropic Demystifying evals for AI agents — Deterministic then model graders

  2. Verification Horizon — Held-out evaluator versioning

  3. Self-revising recipe map (MH-SR-07 held_out) — held_out metadata; final-test gate is taloneth_insp_recipe_final_test_gate

taloneth_insp_experiment_dimensions — Declare fixed and varying harness experiment dimensions

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs every harness experiment to state which configuration axes are fixed and which vary, with a reproducible digest on traces. Accepts FineEnvs harness-overfitting axes guidance[142].

Implementation

ExperimentDimensions and require_dimension_trace_fields in mechaharness.experiment_dimensions canonicalize fixed/varying axes into a digest.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_experiment_lineage — Resume experiments without resampling consumed cases

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs mid-corpus experiment resume to remember which cases were already consumed so a crash cannot replay tasks and contaminate later training. Accepts FineEnvs resume integrity findings[143].

Implementation

ExperimentCheckpoint in mechaharness.experiment_lineage persists consumed case ids, sampler state, assignment, checkpoint identity, and evidence digests; consume refuses duplicates.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_exposure_discriminative — Report unequal exposure and no-learning-signal ties

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs equal rollout counts to still reveal unequal token and call exposure, and to flag all-success ties that provide no learning contrast. Accepts FineEnvs exposure and discriminative-value findings[144].

Implementation

ExposureLedger in mechaharness.exposure_accounting and discriminative_report in mechaharness.discriminative_value summarize arm exposure and tie telemetry.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_gated_objective — Apply efficiency only after correctness gates pass

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs harness experiments to satisfy correctness first and only then prefer lower token use, matching gated FineEnvs reward design[145].

Implementation

HarnessExperimentRunner.evaluate accepts an ObjectivePolicy and uses gates plus compare_lexicographic so efficiency cannot beat a failed correctness gate.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_harness_fingerprint — Stamp evaluation results with harness configuration identity

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth compares the same model and task under two graph configurations and needs each result to carry which harness configuration produced it, not only the model name. Accepts FineEnvs multi-harness RL guidance[146].

Implementation

HarnessFingerprint, build_harness_fingerprint, and require_eval_provenance in mechaharness.harness_fingerprint bind model revision, harness family/version, config digests, tool/context surfaces, evaluator, environment, and task identity into a stable digest attached to evaluation summaries.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_harness_health — Snapshot harness health for cleanup evidence

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth captures unused extensions, dead soft points, and unexercised routes as a harness-health snapshot so cleanup can be scheduled by the host. Accepts WalkingLabs L02 and L12 guidance[147][148].

Implementation

HarnessHealthSnapshot and needs_cleanup in mechaharness.harness_health provide the optional health schema.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_harness_hypothesis — Express a harness change as a testable hypothesis

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth writes the failure mode and expected metric before shipping a harness tweak, then evaluates with and without the change. Accepts inspiration requirement 14[149].

Implementation

HarnessExperiment carries hypothesis, intervention, failure_mode, evidence, and to_trace_fields for version/assignment on traces.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_learning_export — Export provenance-rich trajectories without owning training recipes

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs exportable execution packs that carry harness fingerprint, rollout refs, and outcomes so an AI assistant host can curate SFT or RL corpora without MechaHarness choosing the recipe. Accepts FineEnvs SFT-vs-RL reuse guidance[150].

Implementation

LearningExportPack and build_learning_export in mechaharness.learning_export bundle decision exports with fingerprint, rollout, and outcome refs.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_objective_policy — Require an explicit policy before collapsing evaluator signals

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth refuses silent weighted blends of verifier scores and wants gates and formula version written into the result. Accepts FineEnvs reward aggregation guidance[151].

Implementation

ObjectivePolicy and aggregate_objective in mechaharness.objective_policy record component signals, formula, version, gates, and prerequisites on every scalar objective.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_recipe_evolution_loop — Evolve recipe candidates from traces under registry and safety gates

Taloneth starts the CLI host with family pass_through and backend mock. A host can summarize past traces into suggestions, and the library turns them into a short list of candidate recipe settings that stay inside the catalog and inside the settings marked safe to tune. Anything that names an unknown recipe, an unknown or fixed setting, or a setting the host did not allow is reported as rejected rather than quietly dropped. Candidates are then chosen by an explicit scoring policy that respects its gates and a baseline. They walk product steps (recipe_plan) and verify completion from the structured observation expects on this scenario. [152] Related: taloneth_insp_recipe_final_test_gate.

Implementation

recipe_evolution.py: RecipeTraceSummary / SoftBindingSuggestion in, propose_candidates() out as RecipeCandidate soft-binding dicts validated by validate_candidate() against GraphTemplateRegistry names, GraphTemplate.evolvable_soft_point_names(), and an optional host allowlist; select_candidate() picks over ScoredCandidate results built from ObjectivePolicy / aggregate_objective with a deterministic tie-break. Pure structure for hosts such as an AI assistant project; evaluation reuses ResearchLab and the registry final-test gate.

Validation

Harness user_story stage 190_taloneth_insp_recipe_evolution_loop.yaml: environment + graph + steps + complete expects.

Footnotes

taloneth_insp_recipe_final_test_gate — Require an untouched final test set before recipe promotion

Taloneth starts the CLI host with family pass_through and backend mock. A leading candidate must pass a separate untouched final test before it can be released, and that test must not be used as a tuning signal. Promotion is refused when no final-test result is supplied, when the result did not come from a held-out evaluator, or when it failed; only a passing held-out result opens the gate. The same rule guards both the research workflow and the recipe catalog’s active pointer. They walk product steps (recipe_plan) and verify completion from the structured observation expects on this scenario. [153] Related: taloneth_insp_evaluator_compose.

Implementation

require_held_out_final_test() and FinalTestGateError in evaluator.py; ResearchLab.promote(candidate, final_test=...) enforces it whenever EvalProtocol.held_out_protected (the default); GraphTemplateRegistry.promote_with_final_test() applies it before moving the active pointer and attaches the held-out result as an evaluation. Plain GraphTemplateRegistry.promote() stays an ungated pointer move for hosts that run their own gate.

Validation

Harness user_story stage 200_taloneth_insp_recipe_final_test_gate.yaml: environment + graph + steps + complete expects.

Footnotes

taloneth_insp_rule_promotion — Promote review feedback into a hard invariant with provenance

Taloneth starts the CLI host with family pass_through and backend mock. Repeated review feedback becomes an experiment, then a soft instruction, then a hard invariant — always with source permalink and rollback evidence. Accepts WalkingLabs L10 and L12 guidance[154][155]. Soft-to-hard promotion substrate for personal-agent MH-PA-07 (taloneth_insp_correction_spec_debt)[156] and self-revising MH-SR-05 (fangore_insp_recipe_lineage_promote)[157].

Implementation

PromotionRecord, promote_soft_to_hard, and rollback_promotion in mechaharness.rule_promotion model the promotion chain.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_run_parity — Surface material train and eval constraint mismatches

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs comparable runs to record and flag mismatches in output caps, tool budgets, timeouts, and sampling so train and eval behavior stay aligned. Accepts FineEnvs train/eval parity findings. They walk product steps (compare_run_parity) and verify completion from the structured observation expects on this scenario. [158]

Implementation

compare_parity / parity_from_harness_config in mechaharness.run_parity compare harness constraint surfaces. CliInstrumentor verb compare_run_parity exposes the diagnostic.

Validation

Harness user_story stage 220_taloneth_insp_run_parity.yaml: environment + graph + steps + complete expects.

Footnotes

taloneth_insp_safety_eval_recipes — Ship reusable safety evaluation recipes for injection and scope bleed

Taloneth starts the CLI host with family pass_through and backend mock. They run Agentic Recipe safety_eval: a fixture scenario is produced, an isolated reviewer judges without seeing agent reasoning, and a deterministic scorer reports outcome, severity, context, and model/recipe versions. Soft points are not evolvable. Related: taloneth_insp_eval_matrix. [159]

Implementation

Agentic Recipe safety_eval via SafetyEvalTemplate / safety_eval_runner and product verb run_recipe (SafetyEvalRecipeAdapter).

Validation

Harness user_story stage 230_taloneth_insp_safety_eval_recipes.yaml drives run_recipe; expects shape keys plus outcome/severity.

Footnotes

taloneth_insp_scaffolding_retire — Retire scaffolding that loses a controlled experiment

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth treats an orchestration scaffold as temporary. When a with-versus-without experiment shows the scaffold hurts the primary metric, it is retired so task semantics stay the same without fossil prompts. Accepts inspiration requirement 1[160].

Implementation

HarnessExperiment / HarnessExperimentRunner in mechaharness.harness_experiment express interventions as hypotheses with expected metrics, compare with/without arms, and list retirement candidates. Integrates with ResearchLab for offline evaluation. Trace fields expose experiment id, harness version, and assignment.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_insp_scripted_driver_replay — Replay advisory decisions with a strict scripted driver

Taloneth starts the CLI host with family pass_through and backend mock, loads the verify_repair durable graph (controller scripted, store memory). Evaluation and CI need a first-class scripted driver that asserts expected yield kinds and fails when unexpected advice appears. Tracks R-IOC-REPLAY and R-IOC-OFFLINE. They walk product steps (start, answer) and verify completion from the structured observation expects on this scenario. [161]

Implementation

ScriptedDriver / durable_generator_host.run_soft_point_session run start/resume with soft-point bindings and strict_unexpected_advice.

Validation

Harness user_story stage 250_taloneth_insp_scripted_driver_replay.yaml: environment + graph + steps + complete expects.

Footnotes

taloneth_insp_trial_reliability — Separate pass@k capability from pass^k reliability

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth records isolated trials with cost and latency, then reports pass@k for capability and pass^k for repeated-success reliability without conflating the two. Accepts Anthropic eval guidance, τ-bench, and HumanEval[162][163][164].

Implementation

Trial, pass_at_k, pass_caret_k, and trial_cost_rollup in mechaharness.eval_trial aggregate isolated attempts.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_layered_eval — Score the task and the harness as separate results

Taloneth starts the CLI host with pass_through and mock. She supplies five recorded verdict pairs to layered_eval. A correct file with a harness error is not clean. A wrong file with a healthy harness is a task failure, not infrastructure failure. Missing harness evidence stays unknown. When both fail, the link stays a hypothesis unless the caller asserts support; even then the report says caller_asserted, not independently observed. She checks each reported status and the evidence origin.

Implementation

score_layers in mechaharness.layered_verdict, exposed as layered_eval, combines caller- supplied verdicts. This walk checks report semantics; it does not inspect trace artifacts or independently evaluate causality. A host must supply evaluated evidence before using the report. LayeredEvaluation reuses Claim and EvaluationOutcome. Causal support remains caller_asserted.

Validation

Harness user_story stage 270_taloneth_layered_eval drives layered_eval. Unit cases in tests/test_layered_verdict.py cover an observed causal trace and an infrastructure failure that leaves both layers unscored.

Footnotes

  1. Trouble trace and requirement integrity (MH-TRACE-01) — Separate harness fidelity from agent task success

taloneth_offline_decision_export — Export decision data without leaking future outcomes

Taloneth starts the CLI host with family pass_through and backend mock. Offline study needs decision-time features without future outcome leakage. Missing labels stay missing.

Implementation

DecisionRecord / DecisionLog / export_offline_dataset persist append-only learning records and versioned exports without default future leakage.

Covers: OBS-02.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

taloneth_policy_replay — Replay product policy from recorded facts and signals

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth needs deterministic policy replay from recorded facts and signals without re-running tools — so offline audits match live verdicts. Policy replay for Dots MH-DOTS-09; unified review audit: nubble_insp_review_audit_reconstruct[165].

Implementation

replay_verdict in mechaharness.decision_log re-runs decide() on recorded facts/signals/policy for deterministic audits.

Covers: OBS-03.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

Footnotes

taloneth_request_prefix — Name why a request prefix changed, without keeping the prompt

Taloneth starts the CLI host with family pass_through and backend mock. She compares five pairs of otherwise identical inference requests. Shuffling the tool list is an avoidable tool_reserialize miss, and sorting the tools makes the canonical prefix match. Putting a clock reading into the stable policy block is volatile_system. Bumping the policy version is a legitimate policy_change and must not be hidden to save cache. When two requests match but the provider sent no cache counters, the cause stays unknown. None of the reports store the raw prompt. A changed tool schema stays unknown instead of being mistaken for a matching request.

Implementation

prefix_snapshot and classify_prefix_change in mechaharness.request_prefix, exposed as request_prefix_compare, compare selected caller-supplied fields offline. Tool hashes include name and parameters only. No adapter integration or provider cache measurement is exercised. The existing CTX-09 layout compiler is unchanged.

Validation

Harness user_story stage 280_taloneth_request_prefix drives request_prefix_compare. Unit cases in tests/test_request_prefix.py cover a dynamic-tail-only change, which is legitimate.

Footnotes

  1. Trouble prefix-cache regression (MH-CACHE-01) — Attribute avoidable prefix misses without storing prompt text

taloneth_shadow_decision_backends — Compare decision backends without inventing missing results

Taloneth starts the CLI host with family pass_through and backend mock. Taloneth compares rules, local model, and System One on a matched ticket. When the decide profile is cold, System One must be marked unavailable — no fake latency or verdict. Related: nubble_lane_load_hint, nubble_model_affinity. They walk product steps (shadow_decision_backends) and verify completion from the structured observation expects on this scenario.

Implementation

shadow_decision_backends in mechaharness.routing compares backends without inventing unavailable results. CliInstrumentor verb shadow_decision_backends exposes the diagnostic.

Validation

Harness user_story stage 060_taloneth_shadow_decision_backends.yaml: environment + graph + steps + complete expects.

taloneth_systemone_cassette — Pin System One adapter behavior to a versioned cassette

Taloneth starts the CLI host with family pass_through and the versioned SystemOne Laya response cassette. She submits the billing request through the judge adapter and inspects the normalized verdict and confidence fields. The offline walk checks adapter decoding against the recorded response; a real provider schema change must first be recorded and reviewed as a new cassette version.

Implementation

SystemOneJudgeProvider maps System One HTTP JSON onto library judge types and provenance. Connection/provider binding uses Config hooks (get_judge_connection, get_judge_provider). CliInstrumentor verb judge_route runs the cassette through the real provider.

Covers: JDG wire map (System One).

Validation

Harness cli scenario billing_allow.yaml on systemone/laya cassette: hard route_selected, verdict, answer_count. Live (MECHA_STORY_BACKEND=live + MECHA_JUDGE_*): same scenario via SystemOneJudgeProvider (cassette-exact token softens; behavioral expects hard).

taloneth_validator_qualification — Qualify validators before they gate completion

Taloneth starts the CLI host with family pass_through and backend mock. Before a schema validator gates done, known-good, known-bad, and missing fixtures must run — including a weak always-pass mutant that must fail qualification. Judge scores alone cannot complete a task (see fangore_refund_verdict).

Implementation

qualify_validator / validator_qualified in mechaharness.graph (VER-04). CliInstrumentor verb validator_qualification.

Validation

Harness user_story drives product verb(s) with environment pass_through/mock; hard expects on declared observation keys.

taloneth_wire_request — Inspect the provider-normalized request before sending it

Taloneth starts the CLI host with pass_through and mock. She runs inspect_openai_request with two Luna requests that differ only in a tool’s description. The same injectable policy used by the OpenAI adapter normalizes both bodies. She checks that the body identity changes, internal node_id is omitted, and provider_cache_observed stays false. This walk makes no HTTP call and stores no prompt text in its report.

Implementation

InspectOpenAIRequestVerb and OpenAIRequestPolicy reuse domain_request_to_wire and the adapter’s body normalizer. Config owns provider capabilities.

Validation

The static CLI walk asserts wire identity and omissions. Tests in test_openai_request_policy.py compare that digest with the actual body sent to an in-memory HTTP client, and cover custom policy injection and endpoint spoofing.

Footnotes

  1. Trouble cache evidence (MH-CACHE-01) — Inspect actual provider-normalized fields; cache metrics remain separate