Template: workspace_discovery
Read-only workspace discovery: enumerate, search, and verify evidence relevant
to a caller objective, then publish a typed WorkspaceInventory.
Item |
Value |
|---|---|
Name |
|
Module |
|
Class |
|
Version |
|
When to use
Locate source/test evidence for a natural-language objective before coding
Distinguish
found/not_found/inconclusive/failedwith verified refsKeep discovery read-only (no workspace mutations, no change plan)
Topology
seed → preflight → manifest → hypotheses (infer)
→ search → extract → interpret (infer)
→ resolve → coverage → publish
Soft points
Name |
Kind |
Default |
Notes |
|---|---|---|---|
|
task_state |
ContextSpec defaults |
I1 completion / context |
|
task_state |
ContextSpec defaults |
I2 completion / context / inspection |
|
budget |
|
Or |
|
budget |
|
Or |
|
budget |
|
Coverage floor |
Example
from mechaharness.graph_templates import (
GraphTemplateParams,
WorkspaceDiscoveryTemplate,
)
graph = WorkspaceDiscoveryTemplate().instantiate(
GraphTemplateParams(
goal="Find division-by-zero handling",
inputs={
"goal": "Find division-by-zero handling",
"workspace": {"root": "."},
"constraints": {"read_only": True, "max_files": 100},
},
)
)
assert graph.template_name == "workspace_discovery"
assert graph.nodes["publish"].kind == "inventory_publish"
Outputs
out.workspace_inventory (via hard inventory_publish):
status:found|not_found|inconclusive|failedrelevant_files[]/tests[]with verified paths and hashescoverage,unknowns,rejected_claims,workspace_revision
A model cannot force found without verified evidence.
Node components
Graph node |
Components |
|---|---|
|
|
|
|
|
|
Stories
Suite fangore_workspace_discovery (005–080): recipe shape, found,
not_found, inconclusive, failed, checkpoint, continuity, snapshot tools,
negative control.