Repository navigation
feat(ci): dg ci runners and check runs, checkRun-only keys, verified logs on the commit page (I-1) - #148
Merged
Conversation
… in forge-core Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…he existing helpers Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…reads, merge-box parity Clear completedAt unless completed and reset start and log on a re-queue; plan the write before the prompt with estimates above the measured fees; stream log reads with a cap, timeout, no credentials or referrer, loopback only from a loopback page; the newest trusted run decides in the web and in dg pr merge (checks_state); refuse --log on private repos without --public-log; runner keys disable without --force. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
Warning Review limit reachedNext included review available in 26 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (27)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 29, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I-1 of the CI track (platform-parity-spec §2, Group I):
dg ci, runner memberships, checkRun-only runner keys, check runs on the commit page, and a verified log view. Closes the "nothing renders checkRuns" half of D-604 (D-038) for the CLI and the commit page.What ships
CLI (
dg ci)dg ci runner new <repo> --runner <file> -o <file>does four things:ContractBounds::SingleContractDocumentType {forge-collab, checkRun}, 0.5 DASH budget, 365-day expiry;dfk1:to a 0600 file before registering it, then verifies it on chain;runner, which only the owner can do;dg ci runner add | list | revoke.dg ci report <repo> --sha … --name … --status … [--conclusion] [--details-url] [--summary|--summary-file] [--external-id] [--log <file> --storage <profile>]:--external-idmatches an existing run;--loguploads to the storage profile (content-addressed) and recordslogUrlandlogSha256;--logis refused (E207) unless--public-log;dg ci status <repo> <sha>.dg pr mergenow enforcesrequireChecksusingchecks_state: the newest trusted run per name decides, which is the same rule as the web merge box.dg auth keys disableaccepts a runner key without--force.forge-core: new
cimodule:RunnerReader/RunnerService;CheckReportvalidation that mirrors the schema'sconclusionIfDone/doneIfConclusionrules;CheckRuns::plan/execute, andcommit_web_url.Also:
KeySpec::DocumentTypepluscheck_doc_type_key;Collab::check_runstrusts runners;Collab::head_checks. Membership reads are shared withmembers.rs.Replace semantics:
completedAtis cleared unless the status is completed.startedAtand the log pair.startedAtis never moved by a repeated in_progress report.Web
credentials: omitandno-referrer. It is shown only if it hashes to the on-chainlogSha256; otherwise a warning is shown.checksState, in parity with Rustchecks_state/newest_check_runs: an untrusted newer run never shadows a trusted one.Docs:
docs/guides/ci.md: enrol, report, costs, security, and the current contract's limits;docs/design/ci-contract-wishes.md: wishes for the forge-community rework;Platform facts (verified against v4.2.0-beta.6)
validate_identity_public_key_contract_boundsv2 admitsSingleContractDocumentTypebounds on AUTHENTICATION, non-master keys.check_batched_transition. Out of bounds is error 20014, and a bound key signing a non-batch transition getsContractBoundedKeyNonBatchError.Measured on moutai (2026-09-29, drive 4.2.0-beta.6)
runnerdoc, owner pays)--logThe prompts use estimates above these figures (35 M / 55 M / 85 M / 5 M).
Tests
e2e/cli/scenarios/35-ci-runner-report.sh: PASS live on moutai with freshly minted identities, re-run after the review fixes. It covers:ci statustrusted;--force.forge-web/e2e/ci-checks.spec.ts: PASS against a local build (4831, build marker checked). It covers a runner's run trusted, a revoked runner's run not counted, and a log verified from a local RustFS bucket.ci(validation, run selection, replace semantics, commit URL) and the E302 mapping;checks_refusal;checks.test.ts(trusted-first parity, log verification, streaming cap, content-length refusal, no credentials/referrer, the loopback rule).cargo clippy -D warnings,cargo test -p forge-core -p dg,tsc,vitest,eslint: all green.dash-forge-qa/evidence/impl/feat-dg-ci/(screenshots and JSON outputs).Review
Not in this PR
(forge-community, checkRun). That is in WIPE-PLAN; the contract id comes fromForgeIds, so only the id source changes.🤖 Generated with Claude Code