Repository navigation
Description
Current state: blocked — Ready PR #718 at baa4148f includes the storage API, SearchSpace, and skill discovery fixes. Both full Ready jobs and the rest of the workflow passed. Ready run
Decision needed: @Dong1017's manual exact-head knowledge-admission exception for baa4148f. The delegate’s disposition records that it has not been granted.
Next action: Complete two independent current-head approvals and the required knowledge-admission check, then squash-merge PR #718 and verify main. Goal acceptance follows integration.
Goal and acceptance
After a successful, failed, or interrupted optimization run, a user can invoke submit-optimization-record for that run. The skill prepares a reviewable bundle and, when the user authorizes publication, opens or reuses a PR to InferMatrixLab/InferRSI. A reviewer can inspect the shareable input prompt, agent version, InferRSI version or commit, effective model configuration, and execution/result trace from one directory.
- The installed skill is discoverable through the existing skill catalog. An offline walkthrough starts from one supported InferRSI run export and produces every required artifact using the ordinary skill procedure.
- Tests cover a complete run and a failed or interrupted run with missing data. Failed attempts, the source outcome, and any existing evaluator verdict survive export. Missing inputs have explicit reasons, and the export does not infer verdicts from execution state.
- Synthetic privacy fixtures put private values in the prompt, config, and trace. Tests verify that staged files, filenames, and PR text contain none of those values. Unsafe or unsupported attachments are omitted and accounted for in the manifest.
- A retry of the same prepared record reuses its directory and any existing submission PR. Two distinct runs with the same UTC start second get separate directories. A failed export leaves no partial record in the repository.
- A synthetic submission verifies the PR destination and record-only diff. The existing evidence inventory accepts the
recordsroot and continues to validate campaign bundles. Each record's manifest, relative artifact paths, and file hashes can be checked offline.
The walkthrough starts with an actual v1 result-delivery fixture produced by the supported exporter. Include cases for publication authorization withheld, a prompt that cannot be shared, missing start time, and a campaign evidence bundle alongside records/.
v1 input
The single supported run source is an InferRSI v1 result-delivery directory, generated from a native campaign by inferrsi export --input <campaign-directory> --output <new-delivery-directory>. Read campaign-result.json (schema_id: inferrsi.campaign-delivery, schema_version: 1) through inferrsi.apps.delivery.read_bundle, which verifies the companion artifacts.json. Use the bundle as a local input and keep its raw files and source locators out of the PR. Use execution, completion, and ordered rounds for the execution trace, and the recorded outcome, final, acceptance, metrics, and gaps for the result trace. Project only the fields listed below. Preserve unavailable, cached, and unverified status from the source. Export retries reuse retained run data without remeasurement. Result-delivery contract.
The user supplies the public prompt separately. Agent, run-time InferRSI, or model configuration facts missing from the export may be supplied by the user for that run and marked as user-reported. Record unknowns explicitly. The exporter version describes the export, while installed versions at submission time describe the submission environment.
Record layout and public field allowlist
evidence/records/
README.md
<YYYYMMDDTHHMMSSZ>-<12-hex>/
record.json
prompt.md
model-config.json
trace/
01-execution.json
02-result.json
Use campaign-result.json:execution.started_at when it contains a valid timezone-qualified timestamp. Convert to UTC and truncate to second precision. If it is missing or invalid, use the UTC time of first local preparation. Record timestamp_basis as run_start or first_capture and persist the complete ID on first preparation. Generate a 12-digit lowercase hexadecimal suffix, detect collisions before writing, and reuse the assigned ID on retry.
| Path | Fields eligible for public publication |
|---|---|
record.json |
Schema version, generated record ID, UTC timestamps and their basis, public agent tool name and version/build, and InferRSI run-time package version or full commit (both when known). Include execution status, original verdict when assessed, optional public issue/campaign reference, and an artifact list with roles, trace source format/version, safe relative paths, SHA-256 of bundled redacted files, and availability or omission codes. The only external artifact references are approved archive references as described below. |
prompt.md |
Explicitly selected user prompt and user refinements for that run, in order. Publish the redacted text only when the user approves that text for the public PR. If withheld or unavailable, omit the file and record the reason in the manifest without quoting the prompt. |
model-config.json |
Agent model ID, reasoning setting, and sampling parameters when observed. For the optimized model, include public model ID/revision, dtype, quantization, backend, TP/PP sizes, and max model length where recorded. Use null and a reason for unavailable values. Select individual fields and exclude arbitrary config keys, endpoints, environment, and filesystem paths. |
trace/01-execution.json |
Execution namespace and state, start/end times when available, completion status, and ordered attempts with ordinal, phase, execution status, and safe outcome/stop codes. Retain failed, interrupted, pending, and rejected attempts with their recorded states. |
trace/02-result.json |
Recorded outcome kind, final execution status where present, assessment status and original verdict, verification/provenance status, and safe gap codes. Preserve historical verdicts separately from current evidence verification. Leave the verdict null when the source is unassessed. Where repository claim rules permit publication, include existing measured values with metric, unit, statistic, sample count and scope when available. Preserve the source's comparability limits and authorized acceptance reference. |
For copied text and string values, redact credentials, private identifiers, hostnames/IPs, endpoints, personal paths, and private payloads. Omit values that cannot be sanitized and record the omission. Exclude hidden/system messages, full agent transcripts, raw commands, environment dumps, raw exception text, and arbitrary attachments. Keep originals outside the public repository. The submitting user reviews the actual staged diff (including the redacted prompt, filenames and reference fields) and the PR title/body before authorizing publication. The skill checks those same artifacts before commit/push. Repository reviewers inspect the record PR through ordinary review. Privacy rules.
Scope and constraints
- Register an English workflow skill named
submit-optimization-record. Prepare the redacted record locally, show the files, gaps and PR destination, and submit after the user's authorization. Stage only the selected record directory and use the repository's DCO/attribution and PR conventions. Return its path and PR link, or retain the prepared record for retry. - discussion: what trace evidence should InferRSI persist beyond per-run artifacts? #333 publication boundary. Keep the local per-run output directory as the runtime trace boundary. The accepted scope allows voluntary publication by PR of a redacted derivative snapshot of one selected run per record. The public directory holds peer-reviewable submissions. Automatic capture, full-trace retention, cross-run indexes/queries, checkpoint ledgers, and reopening discussion: what trace evidence should InferRSI persist beyond per-run artifacts? #333 are outside this proposal. @Dong1017 explicitly accepted this boundary in the recorded decision. #333 closure.
- Inventory. Add a single
recordsentry totools/evidence_inventory.jsonand a dedicated validation path intools/validate_evidence.py. Validate the root README and each immediate record directory offline: name/manifest agreement, supported version, required fields or declared gaps, contained relative paths, and artifact digests. Reject traversal and symlinks. Therecordsentry validates submitted directories individually and leaves campaign entries on their existing validation path. - Archive policy. Keep compact execution and result projections in Git. Follow R6's report-only thresholds of 512 KiB per evidence file and 2 MiB net evidence growth per PR. For raw or oversized evidence, link an existing approved archive from the source campaign's
results/artifacts.jsonwith its fixed version and digest. Public archive URLs use credential-free HTTPS without a query or fragment. Record an availability gap when a shareable reference is unavailable. Archive publication remains with the existing evidence workflow. Archive schema · R6 reporting.
Ownership and authorization
- Scope decision owner: @Dong1017. Status: Accepted, per the recorded decision.
- Goal-acceptance owner: @Dong1017, after merge and review of synthetic submission evidence.
- Issue assignee and implementing engineer: @zengchuang-hw, as recorded in the accepted decision.
- Codex is acting for @zengchuang-hw on implementation and PR follow-through. Integration follows repository review and merge rules. Issue closure remains with the goal-acceptance owner.
Inputs and deliverables
- Registered workflow skill, the record format and submission guide in
evidence/records/README.md, the inventory/validator update, and synthetic fixtures for the ordinary workflow and privacy/retry cases. - Existing InferRSI result-delivery, archive, and privacy contracts linked above.
Completion and closure
The confirmed goal-acceptance owner reviews the merged implementation and synthetic submission evidence, records acceptance, and authorizes closure.
Activity
Dong1017 commentedon Nov 26, 2026
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Not ready to build yet: the scope and checklist are testable, but no decision owner is named and the proposal conflicts with the #333 closure on trace persistence.
Asks: an opt-in
submit-optimization-recordskill that turns one selected InferRSI run export and its prompt into a redacted bundle underevidence/records/<UTC-timestamp>-<12-hex>/, then opens a record-only PR once the user authorizes it.Gaps and risks
not_plannedon 2026-11-19: the per-run output directory stays the trace boundary, with no new ledger, index or retention store. A trackedevidence/records/root that indexes runs is a new durable store, so the requester must decide whether this extends or replaces that closure.Next step: name the owner and implementer, then record the scope decision with the source, redaction allowlist and #333 position. InferRSI has no coding agent, so implementation needs a named human engineer.
Details
Questions
Who accepts the goal, and who implements it?
Does the requester accept the discussion: what trace evidence should InferRSI persist beyond per-run artifacts? #333 boundary change?
Which single export is the v1 source?
Acceptance checklist: the offline walkthrough, the complete and failed/interrupted run tests, the privacy fixtures, and the retry and collision cases are concrete. Keep them as written.
Archive policy: the body cites the "existing archive policy" for oversized evidence but gives no size threshold or permitted reference form. Name them, or link the section.
Timestamp basis: the fallback to first capture time is recorded in the manifest. Specify the rule for choosing between the two.
Inventory root: name the inventory file and validation change, so the
recordsroot does not overlap the existingevidence/<campaign-id>/checks.Read for this triage:
issue/meta.json,issue/body.md,decisions.md(no recorded decision on task: add a skill to submit InferRSI optimization run records #717),skills/review-pr/references/contributing-evidence.md, discussion: what trace evidence should InferRSI persist beyond per-run artifacts? #333 with its closure comment, and theevidence/listing at the default branch.Not run: no tests, scripts or inventory tooling were executed.
zengchuang-hw commentedon Nov 26, 2026
@Dong1017, I updated the proposal in response to your review. v1 uses a single bundle from
inferrsi export, selects fields from a public allowlist, and asks the submitting user to review the redacted staged files before authorizing publication. ReviewCould you confirm two decisions here?
evidence/records/? The per-run output directory would remain the runtime trace boundary. #333 closureDong1017 commentedon Nov 26, 2026
Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).
Accepted: the v1 export source, record format and privacy review workflow, plus a limited #333 extension for one user-selected, redacted run per record under
evidence/records/. #333 stays closed.Dong-bot (authorized delegate) records this scope from the seeded body:
inferrsi export, read ascampaign-result.json(inferrsi.campaign-delivery, schema v1).prompt.mdis published only if the user approves the redacted text.Owners: goal acceptance @Dong1017, after merge and synthetic submission evidence. Implementation @zengchuang-hw.
This accepts the design only. Implementation still goes through normal PR review against the body's checklist.
Details
Read: issue #717 (body, thread, trigger comment); issue #333 with its 2026-11-19 closure;
docs/guides/result-delivery.mdlines 1-80 (export command;read_bundleandexport_bundlenamed; export is not an automatic redaction tool);docs/privacy-security.md(review staged diff before sharing; no automated scanner);tools/evidence_inventory.json(norecordsentry yet);evidence/listing (norecords/root yet).Consistency: no prior decision on #717 in
decisions.md. The #333 closure is not replaced; this extension is limited to publication of selected runs.Not verified:
src/inferrsi/apps/delivery.py(path not found on the default branch;read_bundleis confirmed only by the contract doc);docs/guides/result-delivery.mdlines 81-232; the archive references. No tests were run and no code was read.zengchuang-hw commentedon Nov 26, 2026
Codex, acting for @zengchuang-hw: claiming the accepted v1 skill, offline record validation, and synthetic submission evidence. Scope decision
Next artifact: one Ready PR with the qualified path and test results by 2026-11-27 01:00 Asia/Shanghai (UTC+08:00).