Artifact-storage release: pipeline evidence can now be published to Cloudflare R2 or any S3-compatible bucket through a built-in Files SDK uploader selected in configuration, with a runnable PNG-explainer example plugin, and auto-review recovers its verdict JSON when a harness truncates tool output ahead of the final object.
Added
- Built-in Files SDK artifact uploader (R2/S3):
pipeline.artifacts.publish.uploadernow accepts the built-in"files-sdk"target in addition to a module path, backed by a newfiles-sdkruntime dependency and configured throughDEVINTERN_ARTIFACT_PROVIDER(r2ors3),DEVINTERN_ARTIFACT_BUCKET,DEVINTERN_ARTIFACT_ACCESS_KEY_ID,DEVINTERN_ARTIFACT_SECRET_ACCESS_KEY, andDEVINTERN_ARTIFACT_PUBLIC_BASE_URL, with optionalDEVINTERN_ARTIFACT_ACCOUNT_ID(R2, validated as a 32-character hex account id),DEVINTERN_ARTIFACT_ENDPOINT,DEVINTERN_ARTIFACT_REGION, andDEVINTERN_ARTIFACT_KEY_PREFIX. R2 derives its S3 endpoint from the account id and uses regionauto; S3 defaults tous-east-1and accepts a custom endpoint; ambient AWS credentials are never substituted for the artifact-specific keys. Missing or invalid settings fail pipeline resolution before the agent starts, while SDK initialization is lazy and connection/upload failures stay advisory at publication time. Keys combine a SHA-256 digest of the media type and bytes with a sanitized filename so identical bytes with different content types do not collide, uploads get a 30-second deadline (configurable up to 300000) with two retries, and the uploader’s identity hashes the destination so switching provider, bucket, endpoint, region, public base, or prefix never reuses an earlier target’s persisted URLs.createFilesArtifactUploaderandloadFilesArtifactUploaderare exported from@getdevintern/code/pipelinefor other Files SDK backends, andpublicBaseUrlmust be an HTTP(S) URL without credentials, query, or fragment - PR PNG-explainer example plugin:
examples/pipeline-plugins/pr-explainer-image/demonstrates the full generation → capture → upload → PR-comment path for the built-in uploader — an agent generatespr-explanation.png, the plugin checks its signature and size (32 MiB maximum) and snapshots it asexplanation-image, andfinalizeuploads and embeds it in the managed artifact comment. It ships a copyable storage adapter, an anonymous upload probe, and tests, and generation, capture, upload, and comment failures remain advisory
Fixed
- Review JSON is recovered after truncated tool output: plain-text harness output can include truncated tool output (for example a
headof a file) before the auto-review verdict, which defeated the single balanced-object scan and failed the parse.parseAgentJsonObjectnow restarts at independent opening braces when the normal scan fails, parses the first complete object at each position, keeps the last verdict that contains the required key instead of letting nested fields replace the outer one, and still throws the original syntax error when nothing parses
Technical
- Remote tracker end-to-end fixtures (DEV-177): the private
packages/e2eworkspace gains a reusableTrackerScenariofixture that runs the built CLI against a real remote tracker ticket with a deterministic agent and no model credentials, verifying that unique markers seeded into the ticket description and a seeded comment reached the agent’s input before it edits the repository. Each scenario provisions one fresh ticket in a configured tracker repository, exercises the real ticket key (feature/<key>, run-record lookups), writes per-projectinProgressStatus/todoStatus/prStatusinto a scoped.devintern-code/settings.json, then closes the ticket, deletes only its seeded comment, and closes the scenario’s PR and branches while recording and reporting any resource it could not remove. GitHub Issues is the initial tracker with GitHub as the common code host, configured throughE2E_TRACKER_REPOSITORYandE2E_TRACKER_TOKEN; the opt-in command fails before any remote mutation when either is missing, and ordinarytestruns never invoke it