Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clean-candidate-contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tangle-network/agent-interface": minor
---

Collapse the unlaunched candidate, profile-diff, and improvement contracts to one canonical shape without schema version fields or frozen compatibility exports.
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,15 @@ describe("candidate artifact schemas", () => {
];
expect(() =>
agentCandidateWorkspaceManifestMaterialSchema.parse({
schemaVersion: 2,
kind: "agent-candidate-workspace-manifest",
files,
}),
).not.toThrow();
expect(
agentCandidateWorkspaceManifestMaterialSchema.safeParse({
schemaVersion: 1,
kind: "agent-candidate-workspace-manifest",
files,
schemaVersion: 2,
}).success,
).toBe(false);
for (const invalidFiles of [
Expand All @@ -269,7 +268,6 @@ describe("candidate artifact schemas", () => {
]) {
expect(() =>
agentCandidateWorkspaceManifestMaterialSchema.parse({
schemaVersion: 2,
kind: "agent-candidate-workspace-manifest",
files: invalidFiles,
}),
Expand All @@ -279,11 +277,9 @@ describe("candidate artifact schemas", () => {

it("requires workspace manifest and archive evidence", () => {
const evidence = {
schemaVersion: 2,
kind: "agent-candidate-workspace-snapshot",
digest: candidateSha("1"),
material: {
schemaVersion: 2,
kind: "agent-candidate-workspace-manifest",
files: [],
},
Expand All @@ -306,7 +302,7 @@ describe("candidate artifact schemas", () => {
expect(
agentCandidateWorkspaceSnapshotEvidenceSchema.safeParse({
...evidence,
schemaVersion: 1,
schemaVersion: 2,
}).success,
).toBe(false);
expect(() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export const agentCandidateCapturedArtifactSchema = z.union([

export const agentCandidateWorkspaceManifestMaterialSchema = z
.object({
schemaVersion: z.literal(2),
kind: z.literal("agent-candidate-workspace-manifest"),
files: z.array(
z
Expand Down Expand Up @@ -168,7 +167,6 @@ export const agentCandidateWorkspaceManifestMaterialSchema = z

export const agentCandidateWorkspaceSnapshotEvidenceSchema = z
.object({
schemaVersion: z.literal(2),
kind: z.literal("agent-candidate-workspace-snapshot"),
digest: sha256DigestSchema,
material: agentCandidateWorkspaceManifestMaterialSchema,
Expand Down
93 changes: 0 additions & 93 deletions packages/agent-interface/src/agent-candidate-compat.test.ts

This file was deleted.

Loading
Loading