一键导入
hypothesis-proximity-update
Update hypothesis proximity state by invoking the canonical embedding bridge for one hypothesis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update hypothesis proximity state by invoking the canonical embedding bridge for one hypothesis.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run the full Co-Scientist pipeline for one research run.
Evaluate whether a hypothesis newly entered the current top-k set and update the convergence counter deterministically.
Assemble a dashboard-ready snapshot from the canonical state.
Choose exactly one concrete evolution strategy for the active evolution round.
Run the assumption decomposition and deep verification review for a hypothesis.
Run the iterative evolution loop from the current persisted run state until convergence.
| name | hypothesis-proximity-update |
| description | Update hypothesis proximity state by invoking the canonical embedding bridge for one hypothesis. |
Goal:
Inputs:
state/PROXIMITY_GRAPH.jsonhypothesis_idstate/RESOLVED_RUN_CONFIG.jsonOutputs:
state/proximity_receipts/<hypothesis_id>.jsonstate/PROXIMITY_STATUS.jsonProximityGraphContractstate/PROXIMITY_GRAPH.json when the provider returns a valid embeddingstate/PIPELINE_STATE.jsonstate/CURRENT_STAGE.jsonContext Loading:
skills/shared-references/schema-index.md.packages/agent_contracts/state.py and confirm the exact ProximityGraphContract shape before writing state/PROXIMITY_GRAPH.json.packages/agent_contracts/proximity.py and confirm the proximity receipt and status schemas before interpreting provider outcomes.packages/agent_contracts/pipeline_runtime.py before updating state/PIPELINE_STATE.json or state/CURRENT_STAGE.json.ProximityGraphContract.Execution Contract:
from tools import sync_pipeline_stage_artifacts as the canonical paired write surface for entering the Proximity substage.tools.sync_pipeline_stage_artifacts(run_dir, current_phase="Proximity", current_skill="hypothesis-proximity-update").from tools import update_hypothesis_proximity as the stable invocation surface.packages/agent_mechanics/hypothesis_embedding.py.packages/agent_mechanics/hypothesis_embedding_text.py.update_hypothesis_proximity(run_dir, hypothesis_id, config=None, provider=None) -> ProximityEmbeddingReceiptContract.state/RESOLVED_RUN_CONFIG.json unless an explicit test config is passed, calls the configured provider when enabled, records a proximity receipt/status, and updates state/PROXIMITY_GRAPH.json only when a valid embedding is returned.openai_compatible and gemini must remain behind tools.update_hypothesis_proximity(...); host agents must not call provider SDKs directly or paste provider-returned vectors into artifacts.tools.update_proximity_graph(...), implemented in packages/agent_mechanics/proximity_update.py; host agents must not call it with prompt-fabricated vectors.Execution Steps:
skills/shared-references/schema-index.md, then read packages/agent_contracts/state.py, packages/agent_contracts/proximity.py, and packages/agent_contracts/pipeline_runtime.py before writing proximity or run-level stage artifacts.tools.sync_pipeline_stage_artifacts(run_dir, current_phase="Proximity", current_skill="hypothesis-proximity-update").hypothesis_id identifies an existing canonical hypotheses/<id>/HYPOTHESIS.json artifact.tools.update_hypothesis_proximity(run_dir, hypothesis_id) exactly once for the target hypothesis.ProximityEmbeddingReceiptContract and the persisted state/proximity_receipts/<hypothesis_id>.json.succeeded, validate the updated state/PROXIMITY_GRAPH.json.skipped_disabled, skipped_provider_unavailable, failed_provider_error, or failed_invalid_embedding, preserve the receipt/status and return control to ranking. Do not infer or fabricate placeholder embeddings from text, IDs, or manual feature heuristics.Artifact Rules:
state/PROXIMITY_GRAPH.json must remain the canonical persisted graph artifact.state/proximity_receipts/<hypothesis_id>.json is the canonical per-hypothesis embedding bridge receipt.state/PROXIMITY_STATUS.json is the canonical run-level proximity bridge status artifact.succeeded receipt with graph_updated=false; do not duplicate entries.Completion Rule:
tools.update_hypothesis_proximity(run_dir, hypothesis_id) has returned a persisted receipt and either state/PROXIMITY_GRAPH.json validates after a succeeded receipt or the receipt/status explicitly records why the graph was not updated.