fix: remove CUE workflow-contract support#3247
Merged
Merged
Conversation
Contributor
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| deleted | human | docs/examples/contracts/skynet/contract.cue |
+0 / -56 |
| deleted | human | app/controlplane/pkg/biz/testdata/contracts/contract.cue |
+0 / -48 |
| deleted | human | app/controlplane/pkg/unmarshal/testdata/contracts/contract.cue |
+0 / -48 |
| modified | ai | app/controlplane/pkg/unmarshal/unmarshal.go |
+16 / -28 |
| modified | ai | app/controlplane/pkg/unmarshal/unmarshal_test.go |
+24 / -14 |
| modified | human | go.sum |
+0 / -12 |
| modified | ai | app/cli/pkg/action/util.go |
+0 / -5 |
| modified | ai | app/controlplane/pkg/biz/workflowcontract_integration_test.go |
+0 / -5 |
| modified | ai | pkg/attestation/crafter/crafter_test.go |
+0 / -5 |
| modified | ai | app/controlplane/pkg/biz/workflowcontract_test.go |
+0 / -4 |
| modified | human | go.mod |
+0 / -4 |
| deleted | human | pkg/attestation/crafter/testdata/contracts/empty_github.cue |
+0 / -2 |
Policies (4)
| Status | Policy | Material | Messages |
|---|---|---|---|
| ✅ Passed | ai-config-ai-agents-allowed |
ai-coding-session-cc2bbc |
- |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-cc2bbc |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-cc2bbc |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-cc2bbc |
- |
Powered by Chainloop and Chainloop Trace
There was a problem hiding this comment.
1 issue found across 12 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="go.mod">
<violation number="1" location="go.mod:357">
P2: `digitorus/timestamp` is not imported by any Go file in the module, so its `// indirect` annotation should be kept. Removing it makes go.mod inconsistent with the actual dependency graph.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
- unmarshal: drop all CUE compilation. IdentifyFormat no longer detects CUE, FromRaw and LoadJSONBytes reject the CUE format with a clear error, and the cuelang.org/go dependency is removed. - The RawFormatCUE constant and the wire enum value are retained (unused) so contracts already stored with that format and the existing API stay valid; no database migration is required. - Remove CUE test cases and fixtures across unmarshal, biz and crafter, and the CUE contract example under docs. Assisted-by: Claude Code Signed-off-by: Matías Insaurralde <matias@chainloop.dev>
42f2848 to
aeea541
Compare
migmartri
approved these changes
Jun 26, 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.
Refs PFM-6499
Summary
Drops CUE as a supported workflow-contract format. JSON and YAML remain the supported formats for contracts, policies, frameworks and requirements.
cuelang.org/godependency is removed.