Repository navigation
Add an opt-in skill for optimization run records - #718
zengchuang-hw wants to merge 10 commits into
Conversation
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
|
Codex, acting for @zengchuang-hw. Ready for independent review at @amy-why-3459 @david6666666, please review the v1 scope, in particular projection of a native export, staged and committed byte checks, and protection against duplicate or unintended publication. The targeted local suite passed 27 tests and the installed wheel exposes the skill. Please submit an independent formal review on this head. Accepted criteria @Dong1017, please decide the exact-head knowledge admission exception requested in the PR declaration. The session did not expose an exact model ID or reasoning effort, so both fields are declared |
Skill evaluationPLANNED: not executed; there are no task outcomes yet.
Author verification steps (nonpaid; not yet run)
python tools/build_skill_index.py --source-revision 2f086ae2b16157caf24cf770903e571d7096705b --checkThe declared source pin matches this head's canonical library bytes. The command has not run: retain its exit code and full drift/success output. It checks the generated projection, not claim truth or skill efficacy. Evidence and logs · Retention: 30 days. Plan bindings, budget, frozen exam and advisory detailsAdvisory: obtain missing evidenceRetained evidence availability: planned / unexecuted. No approval or merge authorization is issued.
Model/settings:
Automatic execution / cumulative PR budget: {"reason":"Trusted configuration or pricing missing, invalid or expired","remaining_usd":"unknown","reserved_or_unresolved_usd":"unknown","spent_or_legacy_usd":"unknown","state":"blocked"}Projection check selection (not an executed result): {"declared_in":"src/inferrsi/knowledge/data/skill_library/_compiled/_provenance.json","source_revision":"2f086ae2b16157caf24cf770903e571d7096705b","status":"ready"}Provider/settings: Uncovered / unsupported paths (20)
|
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced). Not granted by Dong-bot (authorized delegate): the knowledge-authorship exception for head Details
|
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
PR review verdict — DO NOT PASS. Score: 40/100. Base 3efb03ea71356786b19b705e53f65267c17d19bf, head fdd65042e9508414114f3dbf9430c637742142cb.
Scope 3, correctness 0, validation 2, claim evidence N/A, simplicity 0. The local Git checks bind the staged bytes as intended, but the replay check does not bind the returned PR to the approved title/body or confirm a usable submission state. I executed the pinned lookup with synthetic GitHub responses only. Both installed-package jobs and knowledge admission are red; no live publication performed.
| candidate["html_url"], | ||
| )): | ||
| raise ValueError("An existing submission PR has a different head or destination") | ||
| return candidate["html_url"] |
There was a problem hiding this comment.
The retry path accepts a same-head PR even when its title/body differ from the approved review, or it was closed without merging. I ran the exact lookup with a matching branch/SHA and a closed PR with different text; it returned the URL as success. Please check the approved title/body on reconciliation (including after creation) and distinguish an open or already-merged submission from a closed-unmerged one without creating a duplicate.
There was a problem hiding this comment.
Codex, acting for @zengchuang-hw. Fixed in 3e798ded: reconciliation verifies the approved title and body after creation and on every retry. It returns a matching open or merged PR and reports a closed-unmerged or edited PR as a conflict without pushing or creating a duplicate. The synthetic submission test exercises all four retry outcomes with real local Git staging and commit bytes.
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
|
Codex, acting for @zengchuang-hw. The review fix and wheel smoke updates are on @david6666666 @amy-why-3459, please review this head. Reconciliation rejects an edited title/body or closed-unmerged PR and reuses matching open or merged PRs. The regression uses real Git index/commit bytes and synthetic GitHub responses. The focused run passed 95 tests and two subtests. The complete isolated wheel smoke, compiled catalog checks and Ruff also passed. Inline finding @Dong1017, Dong-bot confirmed that the admission exception requires your manual decision. Please review the refreshed declaration for this head and, if you approve, post the exact-head |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced). Decision: the knowledge-authorship exception is not granted on head
This answers the admission request only. It is not a code verdict and does not re-decide the open DetailsRead: Checked:
Not verified here: I did not review |
amy-why-3459
left a comment
There was a problem hiding this comment.
Dot, acting for @amy-why-3459. Reviewed ec34d087 against 3efb03ea for #717. The lookup now checks the approved PR title/body and treats closed-unmerged submissions as conflicts. One separate gap in the publication review: the actual commit metadata is not covered by the approval, especially on the already-committed retry path.
In tools/submit_optimization_record.py, review() accepts a clean one-commit branch by checking the tree, blob bytes and merge base. Its digest includes the attribution argument but not the actual commit message, sign-off or public author/committer identities. publish() skips git commit -s for that branch and pushes the commit object; the second review() does not verify those fields either. So a matching tree can still publish an unexpected commit message, an email the user did not intend to share, or missing/mismatched attribution. This is distinct from the PR title/body, and does not require exposing any real values to test. Source review only; no remote publication or reproduction attempted.
Please show and bind the intended public identities and commit message/sign-off to approval, then verify the actual object before each push, including retry (or refuse an existing commit that cannot be verified). Add a local synthetic test with matching file bytes but a different commit message or identity, and assert no push is called. The current knowledge-admission check is separate. No approval.
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
Agent-assisted-by: Codex / unknown [effort=unknown] (author) Signed-off-by: zengchuang <[email protected]>
|
Codex, acting for @zengchuang-hw. The commit-metadata review fix is on @amy-why-3459 @david6666666, please independently review this head. The preview and approval digest now cover the public Git author and committer identities and the exact message, including attribution and DCO sign-off. Publication verifies the checked Git object before push, including committed retries. Tests reject same-tree commits with an altered message, author, or missing sign-off before any network call. Metadata finding @Dong1017, the knowledge admission request now targets |
|
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced). Not granted. The knowledge-authorship exception stays off for head Details
|
david6666666
left a comment
There was a problem hiding this comment.
Dot, acting for @david6666666 under delegated PR review.
DO NOT PASS — 55/100. Base 3efb03ea71356786b19b705e53f65267c17d19bf, head b3514de683840368465e6ffe7dcd50ef187e8d1e. Scope 3 (accepted opt-in slice); correctness 2 (prior reconciliation and commit identity gaps addressed in the patch; storage ownership gap remains); validation 1 (both installed-package checks pass, but both full suites fail, including stale SearchSpace and the unregistered archive consumer); claim evidence N/A (no campaign result claimed); simplicity 0 (new explanatory code comments). No live publication attempted. Please resolve the full-suite failures and the separate exact-head knowledge policy admission.
|
|
||
| def publish_files(parent, name, files): | ||
| """Atomically expose the complete directory and preserve a colliding destination.""" | ||
| from inferrsi.apps.storage.archive import _publish_directory |
There was a problem hiding this comment.
This direct import of the private archive publisher makes test_active_consumers_use_canonical_paths_and_are_registered fail on both Ready Python versions. Please expose a supported atomic directory publication boundary in the owning storage module and register the new consumer in docs/apps-module-migrations.json as applicable. Keep the collision-preserving semantics and rerun both full checks. Regenerating SearchSpace alone will not fix this failure.
Governing Issue and delivery slice
Refs #717
Implements the accepted opt-in workflow for one selected native v1 result-delivery export. The skill projects a redacted record, stages it in an isolated Git worktree, and binds user approval to the exact staged bytes, PR text, and public commit identities, message, and DCO sign-off. An authorized retry reconciles the committed record and approved title/body with an open or merged submission PR. A closed-unmerged PR or edited metadata is reported as a conflict. Accepted scope
Anchors touched: none
Knowledge authorship declaration
Changed artifacts and evidence
submit-optimization-recordand regenerated the compiled catalog and skill coverage.evidence/records/. Existing campaign entries follow their existing validation path.Checks and dependencies
ruff check src tests tools, Git whitespace check, both catalog generators in check mode, and offline evidence inventory (29 roots, 485 campaign hashes) passed.mainat54342cc5merged cleanly and passed 94 targeted tests, two subtests, and the outside-checkout wheel smoke.Acceptance
@Dong1017 reviews the merged implementation and synthetic submission evidence and records goal acceptance separately.