-
Notifications
You must be signed in to change notification settings - Fork 0
[codex] PR1: record evidence-backed harness hypotheses #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0d552d6
feat: record evidence-backed harness hypotheses
divo12 40216a9
fix: address hypothesis boundary reviews
divo12 a588854
fix: close follow-up preparation reviews
divo12 d6d19a7
fix: type remaining preparation boundaries
divo12 48d7363
fix: bind hypotheses to curated evidence
divo12 abee2da
fix: pin plugin to hypothesis runtime
divo12 8495ce1
ci: fetch pinned runtime history
divo12 a43b8a2
test: avoid git history in plugin runtime check
divo12 3175f24
ci: keep runtime check shallow-safe
divo12 fe5d097
feat: persist baseline provenance and hypothesis predictions
divo12 a63fc06
chore: pin plugin runtime to experiment fix
divo12 b4b30d3
feat: execute isolated candidates
divo12 aa6c0ee
fix: harden candidate execution lifecycle
divo12 36204b3
fix: preserve controls and cancel timed out runs
divo12 dff3057
refactor: simplify process age parsing
divo12 270cee6
feat: add durable evaluated run receipt
divo12 0240852
fix: default optional receipt metrics
divo12 422a0dc
fix: harden evaluated receipt invariants
divo12 cc05032
refactor: trim candidate execution abstractions
divo12 1e56f29
fix: rebase candidate lifecycle onto latest policy
divo12 c3b3d6d
refactor: remove dead Harbor parsing code
divo12 4aa2f2e
fix: describe candidate execution in plugin
divo12 c5c08c0
chore: pin plugin to candidate runtime
divo12 9041db3
fix: accept Harbor task id objects
divo12 b9df048
chore: pin plugin to Harbor compatibility fix
divo12 70a47e0
Merge pull request #35 from divo12/stack/v2-02-candidate
divo12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| name: hypothesis-former | ||
| description: Record one OpenFlywheel harness hypothesis from one curated failure group and its exact supported pattern and diagnosis receipts. Use after failure curation and before any candidate edit; do not use with incomplete evidence or to modify harness files. | ||
| --- | ||
|
|
||
| # Hypothesis Former | ||
|
|
||
| Select one group from the retained failure-curation receipt. Use every diagnosis artifact ID in | ||
| that group, partitioned under its exact mined pattern IDs; do not add or omit IDs. Keep the global | ||
| diagnosis set at fifty IDs or fewer. Read the compact diagnoses, then propose one bounded | ||
| statement, rationale, expected effect, regression-risk list, component taxonomy, and one or more | ||
| exact target paths within the group's target component, explicit predicted task IDs, and at-risk | ||
| task IDs. Keep those prediction sets disjoint so the next iteration can falsify the decision. | ||
|
|
||
| Call `record_hypothesis` once with the prepared worktree, experiment ID, current initialization | ||
| commit, curation ID, selected curation group ID, exact pattern-to-diagnosis assignments, explicit | ||
| predicted and at-risk task IDs, and proposed target. The tool reloads the curation, requires the complete selected group, recomputes | ||
| the patterns, and rejects missing, extra, misassigned, or inconclusive evidence. It also proves | ||
| each target is exactly present in the authoritative editable allowlist; `component_kind` must | ||
| match the curated component and never grants path access. | ||
|
|
||
| Retain the returned hypothesis ID and artifact path. Stop before editing any harness file. On an | ||
| MCP timeout, retry the identical request once because publication is idempotent; if the retry | ||
| also times out, stop with unknown operation status. Do not query Langfuse, rewrite diagnoses, | ||
| broaden target paths, infer support, or begin candidate work while following this skill. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Because
experiment_idis collected only in step 4, the assistant cannot evaluate this condition while following the required step-3 ordering. Defer the check until after collecting the ID and specify that declining adoption requires a new ID; otherwiseprepare_workspacerejects the existing job withlaunch_failed.Prompt for AI agents