archctx-contracts 0.11.4 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fixtures/valid/archctx-capabilities.json +1 -1
- package/fixtures/valid/product-version-manifest.json +5 -9
- package/package.json +1 -1
- package/schemas/runtime/product-version-manifest.schema.json +2 -6
- package/src/failure.ts +0 -8
- package/src/index.ts +1 -2
- package/src/ports.ts +0 -35
- package/src/product-version.ts +1 -9
- package/src/review-guards.ts +90 -0
- package/src/schema.ts +0 -2
- package/fixtures/boundary/attestation-v2-error.json +0 -43
- package/fixtures/boundary/check-delivery-dead-letter.json +0 -14
- package/fixtures/boundary/review-challenge-v2-organization.json +0 -15
- package/fixtures/boundary/runner-identity-organization-scope.json +0 -16
- package/fixtures/invalid/attestation-v2-finding-field.json +0 -39
- package/fixtures/invalid/check-delivery-legacy-check-name.json +0 -14
- package/fixtures/invalid/review-challenge-v2-private-field.json +0 -16
- package/fixtures/valid/attestation-v2.json +0 -38
- package/fixtures/valid/attestation.json +0 -25
- package/fixtures/valid/check-delivery.json +0 -14
- package/fixtures/valid/device-identity.json +0 -10
- package/fixtures/valid/governance-key-status.json +0 -11
- package/fixtures/valid/org-runner-identity.json +0 -10
- package/fixtures/valid/review-challenge-v2.json +0 -15
- package/fixtures/valid/runner-identity.json +0 -13
- package/schemas/cloud/attestation-v2.schema.json +0 -85
- package/schemas/cloud/attestation.schema.json +0 -49
- package/schemas/cloud/check-delivery.schema.json +0 -25
- package/schemas/cloud/device-identity.schema.json +0 -18
- package/schemas/cloud/governance-key-status.schema.json +0 -19
- package/schemas/cloud/org-runner-identity.schema.json +0 -21
- package/schemas/cloud/review-challenge-v2.schema.json +0 -23
- package/schemas/cloud/runner-identity.schema.json +0 -42
- package/src/control-plane-routes.ts +0 -35
- package/src/github-governance.ts +0 -850
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "archcontext.capabilities/v1",
|
|
3
|
-
"package": { "name": "archctx", "version": "0.
|
|
3
|
+
"package": { "name": "archctx", "version": "0.12.0" },
|
|
4
4
|
"protocols": {
|
|
5
5
|
"projectionRequest": "archcontext.projection-request/v1",
|
|
6
6
|
"projectionResult": "archcontext.projection-result/v2",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": "archcontext.product-version-manifest/v1",
|
|
3
3
|
"product": {
|
|
4
4
|
"name": "archctx",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.12.0",
|
|
6
6
|
"distribution": "one-package"
|
|
7
7
|
},
|
|
8
8
|
"packageManager": "bun@1.4.3",
|
|
@@ -12,29 +12,25 @@
|
|
|
12
12
|
"surfaces": {
|
|
13
13
|
"cli": {
|
|
14
14
|
"packageName": "@archcontext/surfaces",
|
|
15
|
-
"version": "0.
|
|
15
|
+
"version": "0.12.0",
|
|
16
16
|
"entrypoint": "archctx"
|
|
17
17
|
},
|
|
18
18
|
"daemon": {
|
|
19
19
|
"packageName": "@archcontext/local-runtime",
|
|
20
|
-
"version": "0.
|
|
20
|
+
"version": "0.12.0",
|
|
21
21
|
"entrypoint": "archctx daemon start",
|
|
22
22
|
"rpcSchemaVersion": "archcontext.runtime-rpc/v2"
|
|
23
23
|
},
|
|
24
24
|
"mcp": {
|
|
25
25
|
"packageName": "@archcontext/surfaces",
|
|
26
|
-
"version": "0.
|
|
26
|
+
"version": "0.12.0",
|
|
27
27
|
"entrypoint": "archctx mcp",
|
|
28
28
|
"transport": "stdio"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"schemas": {
|
|
32
32
|
"schemaSetVersion": "2026-06-25.al0-ledger",
|
|
33
|
-
"contractsPackageVersion": "0.
|
|
34
|
-
"reviewChallenge": "archcontext.review-challenge/v2",
|
|
35
|
-
"attestation": "archcontext.attestation/v2",
|
|
36
|
-
"deviceIdentity": "archcontext.device-identity/v1",
|
|
37
|
-
"runnerIdentity": "archcontext.runner-identity/v1"
|
|
33
|
+
"contractsPackageVersion": "0.12.0"
|
|
38
34
|
},
|
|
39
35
|
"runtime": {
|
|
40
36
|
"localRpc": {
|
package/package.json
CHANGED
|
@@ -58,14 +58,10 @@
|
|
|
58
58
|
"schemas": {
|
|
59
59
|
"type": "object",
|
|
60
60
|
"additionalProperties": false,
|
|
61
|
-
"required": ["schemaSetVersion", "contractsPackageVersion"
|
|
61
|
+
"required": ["schemaSetVersion", "contractsPackageVersion"],
|
|
62
62
|
"properties": {
|
|
63
63
|
"schemaSetVersion": { "type": "string", "minLength": 1 },
|
|
64
|
-
"contractsPackageVersion": { "$ref": "#/$defs/semver" }
|
|
65
|
-
"reviewChallenge": { "const": "archcontext.review-challenge/v2" },
|
|
66
|
-
"attestation": { "const": "archcontext.attestation/v2" },
|
|
67
|
-
"deviceIdentity": { "const": "archcontext.device-identity/v1" },
|
|
68
|
-
"runnerIdentity": { "const": "archcontext.runner-identity/v1" }
|
|
64
|
+
"contractsPackageVersion": { "$ref": "#/$defs/semver" }
|
|
69
65
|
}
|
|
70
66
|
},
|
|
71
67
|
"runtime": {
|
package/src/failure.ts
CHANGED
|
@@ -73,14 +73,8 @@ const policies: Record<string, Policy> = {
|
|
|
73
73
|
};
|
|
74
74
|
// C1 policies are selected at explicit producer branches, never from diagnostic text.
|
|
75
75
|
Object.assign(policies, {
|
|
76
|
-
"developer-review-run-not-owned": {code:"AC_PRECONDITION_FAILED",message:"developer-review-run-not-owned",facts:{refusal:"reviewOwnershipRefusal"}},
|
|
77
|
-
"developer-review-attestation-input-invalid": {code:"AC_SCHEMA_INVALID",message:"Caller-provided attestation fields are forbidden.",facts:{issueCount:"uint"}},
|
|
78
76
|
"init-would-overwrite-existing-model": {"code": "AC_PRECONDITION_FAILED", "message": "init-would-overwrite-existing-model: an existing architecture model must not be overwritten.", "facts": {}},
|
|
79
77
|
"waiver-list-unreadable": {"code": "AC_SCHEMA_INVALID", "message": "Practice waiver list or owner registry could not be read.", "facts": {}},
|
|
80
|
-
"developer-review-run-already-active": {"code": "AC_PRECONDITION_FAILED", "message": "developer-review-run-already-active", "facts": {"challengeId": "id"}},
|
|
81
|
-
"developer-review-run-prepare-failed": {"code": "AC_PRECONDITION_FAILED", "message": "developer-review-run-prepare-failed", "facts": {}},
|
|
82
|
-
"developer-review-worktree-invalid": {"code": "AC_PRECONDITION_FAILED", "message": "developer-review-worktree-invalid", "facts": {"refusal":"reviewWorktreeRefusal"}},
|
|
83
|
-
"device-private-key-signer-unavailable": {"code": "AC_PRECONDITION_FAILED", "message": "device-private-key-signer-unavailable", "facts": {}},
|
|
84
78
|
|
|
85
79
|
"ledger-worktree-claim-required": {code:"AC_PRECONDITION_FAILED", message:"Ledger write requires expectedWorktreeDigest.", facts:{}},
|
|
86
80
|
"ledger-worktree-claim-changed": {code:"AC_PRECONDITION_FAILED", message:"Worktree digest changed before ledger write.", facts:{expectedWorktreeDigest:"sha256",actualWorktreeDigest:"sha256"}},
|
|
@@ -380,8 +374,6 @@ function dataRecord(value: unknown): Record<string, PropertyDescriptor> {
|
|
|
380
374
|
return fields;
|
|
381
375
|
}
|
|
382
376
|
const localEnums: Readonly<Record<string, readonly string[]>> = {
|
|
383
|
-
reviewWorktreeRefusal: ["UNKNOWN","HEAD_UNAVAILABLE","HEAD_SHA_MISMATCH","TREE_OID_MISMATCH","WORKTREE_NOT_DETACHED","WORKTREE_NOT_CLEAN"],
|
|
384
|
-
reviewOwnershipRefusal: ["persisted-manifest-missing","persisted-manifest-identity-mismatch","run-id","manifest-path","lock-path","persisted-manifest-mismatch","persisted-lock-mismatch","run-root-name","worktree-temp-root","codegraph-temporary-state-root","run-root-not-a-directory","run-root-owner-marker-missing","run-root-owner-marker-mismatch","worktree-temporary-root","worktree-root","worktree-source-root"],
|
|
385
377
|
projectionInputField: ["headSha","worktreeDigest","sourceFiles"],
|
|
386
378
|
upgradeAction: ["upgrade-archctx-runtime"],
|
|
387
379
|
upgradeCommand: ["archctx daemon upgrade"],
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export * from "./control-plane-routes";
|
|
2
1
|
export * from "./architecture";
|
|
3
2
|
export * from "./architecture-history";
|
|
4
3
|
export * from "./architecture-debt";
|
|
5
4
|
export * from "./docs-anchors";
|
|
6
5
|
export * from "./external-docs";
|
|
7
|
-
export * from "./
|
|
6
|
+
export * from "./review-guards";
|
|
8
7
|
export * from "./ledger";
|
|
9
8
|
export * from "./native-context";
|
|
10
9
|
export * from "./ref-impact";
|
package/src/ports.ts
CHANGED
|
@@ -247,7 +247,6 @@ export interface RendererPort {
|
|
|
247
247
|
|
|
248
248
|
export interface CloudMetadataPort {
|
|
249
249
|
verifyEntitlement(input: { repositoryVisibility: "public" | "private"; accountId?: string }): Promise<{ allowed: boolean; reason?: string }>;
|
|
250
|
-
submitAttestation(input: unknown): Promise<{ accepted: boolean; checkRunId?: string; reason?: string }>;
|
|
251
250
|
}
|
|
252
251
|
|
|
253
252
|
export type NotificationResult = "pass" | "pass_with_warnings" | "fail_action_required";
|
|
@@ -800,40 +799,6 @@ export interface ChatGptGaToolContract {
|
|
|
800
799
|
disclosure: string;
|
|
801
800
|
}
|
|
802
801
|
|
|
803
|
-
export type DetachedReviewWorktreeReason =
|
|
804
|
-
| "HEAD_UNAVAILABLE"
|
|
805
|
-
| "HEAD_SHA_MISMATCH"
|
|
806
|
-
| "TREE_OID_MISMATCH"
|
|
807
|
-
| "WORKTREE_NOT_DETACHED"
|
|
808
|
-
| "WORKTREE_NOT_CLEAN";
|
|
809
|
-
|
|
810
|
-
export interface DetachedReviewWorktreeVerification {
|
|
811
|
-
schemaVersion: "archcontext.detached-review-worktree-verification/v1";
|
|
812
|
-
accepted: boolean;
|
|
813
|
-
reasonCode?: DetachedReviewWorktreeReason;
|
|
814
|
-
expected: {
|
|
815
|
-
headSha: string;
|
|
816
|
-
headTreeOid?: string;
|
|
817
|
-
};
|
|
818
|
-
observed: {
|
|
819
|
-
headSha?: string;
|
|
820
|
-
headTreeOid?: string;
|
|
821
|
-
detached?: boolean;
|
|
822
|
-
clean?: boolean;
|
|
823
|
-
};
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
export interface ReviewCheckoutGitPort {
|
|
828
|
-
findRepositoryRoot(start: string): string;
|
|
829
|
-
readOriginUrl(root: string): string | null;
|
|
830
|
-
verifyDetachedWorktree(input: {
|
|
831
|
-
worktreeRoot: string;
|
|
832
|
-
expectedHeadSha: string;
|
|
833
|
-
expectedHeadTreeOid?: string;
|
|
834
|
-
}): DetachedReviewWorktreeVerification;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
802
|
export interface NonLocalEgressChannel {
|
|
838
803
|
channel: "context7" | "agent-audit" | "github-issue-publishing" | "npm-update-check" | "projection-publishing" | "codegraph-telemetry";
|
|
839
804
|
destination: string;
|
package/src/product-version.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export const ARCHCONTEXT_PRODUCT_NAME = "archctx";
|
|
2
|
-
export const ARCHCONTEXT_PRODUCT_VERSION = "0.
|
|
2
|
+
export const ARCHCONTEXT_PRODUCT_VERSION = "0.12.0";
|
|
3
3
|
export const ARCHCONTEXT_PACKAGE_MANAGER = "bun@1.4.3";
|
|
4
4
|
export const ARCHCONTEXT_NODE_RANGE = ">=22.22 <26";
|
|
5
5
|
export const LOCAL_RUNTIME_RPC_SCHEMA_VERSION = "archcontext.runtime-rpc/v2";
|
|
@@ -28,10 +28,6 @@ export interface ProductVersionManifest {
|
|
|
28
28
|
schemas: {
|
|
29
29
|
schemaSetVersion: typeof ARCHCONTEXT_SCHEMA_SET_VERSION;
|
|
30
30
|
contractsPackageVersion: typeof ARCHCONTEXT_PRODUCT_VERSION;
|
|
31
|
-
reviewChallenge: "archcontext.review-challenge/v2";
|
|
32
|
-
attestation: "archcontext.attestation/v2";
|
|
33
|
-
deviceIdentity: "archcontext.device-identity/v1";
|
|
34
|
-
runnerIdentity: "archcontext.runner-identity/v1";
|
|
35
31
|
};
|
|
36
32
|
runtime: {
|
|
37
33
|
localRpc: {
|
|
@@ -87,10 +83,6 @@ export function productVersionManifest(): ProductVersionManifest {
|
|
|
87
83
|
schemas: {
|
|
88
84
|
schemaSetVersion: ARCHCONTEXT_SCHEMA_SET_VERSION,
|
|
89
85
|
contractsPackageVersion: ARCHCONTEXT_PRODUCT_VERSION,
|
|
90
|
-
reviewChallenge: "archcontext.review-challenge/v2",
|
|
91
|
-
attestation: "archcontext.attestation/v2",
|
|
92
|
-
deviceIdentity: "archcontext.device-identity/v1",
|
|
93
|
-
runnerIdentity: "archcontext.runner-identity/v1"
|
|
94
86
|
},
|
|
95
87
|
runtime: {
|
|
96
88
|
localRpc: {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Guards that keep a caller from forging a review conclusion, and the envelope shape the remaining
|
|
3
|
+
* Cloud surfaces still record.
|
|
4
|
+
*
|
|
5
|
+
* These live here, not with the rest of the retired governance surface, because they survive ADR-0053:
|
|
6
|
+
* the runtime daemon's `completeTask` and the mcp-local `complete-task` tool use the attestation-field
|
|
7
|
+
* guards for local review, and `schemas/cloud/cloud-egress-envelope.schema.json` plus the ADR-0035
|
|
8
|
+
* privacy rule keep `CloudEgressEnvelope`. Keeping them in `github-governance.ts` would have made that
|
|
9
|
+
* file undeletable without breaking local review.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
export const CALLER_PROVIDED_ATTESTATION_FIELDS = [
|
|
13
|
+
"result",
|
|
14
|
+
"reviewDigest",
|
|
15
|
+
"policyDigest",
|
|
16
|
+
"modelDigest",
|
|
17
|
+
"signature",
|
|
18
|
+
"practiceEnforcement",
|
|
19
|
+
"practiceViolations",
|
|
20
|
+
"waiversApplied",
|
|
21
|
+
"actionsRequired",
|
|
22
|
+
"practiceCatalogDigest",
|
|
23
|
+
"practicePolicyDigest",
|
|
24
|
+
"practiceCheckResultDigest"
|
|
25
|
+
] as const;
|
|
26
|
+
export type CallerProvidedAttestationField = (typeof CALLER_PROVIDED_ATTESTATION_FIELDS)[number];
|
|
27
|
+
|
|
28
|
+
export const LLM_ADVISORY_FORBIDDEN_FIELDS = [
|
|
29
|
+
...CALLER_PROVIDED_ATTESTATION_FIELDS,
|
|
30
|
+
"conclusion",
|
|
31
|
+
"checkConclusion",
|
|
32
|
+
"attestationResult"
|
|
33
|
+
] as const;
|
|
34
|
+
export type LlmAdvisoryForbiddenField = (typeof LLM_ADVISORY_FORBIDDEN_FIELDS)[number];
|
|
35
|
+
|
|
36
|
+
function collectForbiddenFields<T extends string>(value: unknown, found: Set<T>, forbiddenFields: readonly T[]): void {
|
|
37
|
+
if (!value || typeof value !== "object") return;
|
|
38
|
+
if (Array.isArray(value)) {
|
|
39
|
+
for (const item of value) collectForbiddenFields(item, found, forbiddenFields);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
for (const [key, child] of Object.entries(value as Record<string, unknown>)) {
|
|
43
|
+
if ((forbiddenFields as readonly string[]).includes(key)) {
|
|
44
|
+
found.add(key as T);
|
|
45
|
+
}
|
|
46
|
+
collectForbiddenFields(child, found, forbiddenFields);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function collectCallerProvidedAttestationFields(value: unknown, found: Set<CallerProvidedAttestationField>): void {
|
|
51
|
+
collectForbiddenFields(value, found, CALLER_PROVIDED_ATTESTATION_FIELDS);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function findCallerProvidedAttestationFields(value: unknown): CallerProvidedAttestationField[] {
|
|
55
|
+
const found = new Set<CallerProvidedAttestationField>();
|
|
56
|
+
collectCallerProvidedAttestationFields(value, found);
|
|
57
|
+
return CALLER_PROVIDED_ATTESTATION_FIELDS.filter((field) => found.has(field));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function assertNoCallerProvidedAttestationFields(value: unknown, boundary = "review request"): void {
|
|
61
|
+
const fields = findCallerProvidedAttestationFields(value);
|
|
62
|
+
if (fields.length > 0) throw new Error(`${boundary}-caller-provided-attestation-field-forbidden: ${fields.join(",")}`);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function findLlmAdvisoryForbiddenFields(value: unknown): LlmAdvisoryForbiddenField[] {
|
|
66
|
+
const found = new Set<LlmAdvisoryForbiddenField>();
|
|
67
|
+
collectForbiddenFields(value, found, LLM_ADVISORY_FORBIDDEN_FIELDS);
|
|
68
|
+
return LLM_ADVISORY_FORBIDDEN_FIELDS.filter((field) => found.has(field));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function assertNoLlmAdvisoryConclusionFields(value: unknown): void {
|
|
72
|
+
const fields = findLlmAdvisoryForbiddenFields(value);
|
|
73
|
+
if (fields.length > 0) throw new Error(`llm-advisory-conclusion-field-forbidden: ${fields.join(",")}`);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* What a remaining Cloud surface records when it calls the GitHub API. ADR-0035's privacy rule and
|
|
78
|
+
* `schemas/cloud/cloud-egress-envelope.schema.json` both depend on this shape.
|
|
79
|
+
*/
|
|
80
|
+
export interface CloudEgressEnvelope {
|
|
81
|
+
schemaVersion: "archcontext.cloud-egress/v1";
|
|
82
|
+
requestId: string;
|
|
83
|
+
category: "github.metadata" | "github.pull-head" | "github.check-list-for-ref" | "github.check-create" | "github.check-update";
|
|
84
|
+
method: "GET" | "POST" | "PATCH";
|
|
85
|
+
host: "api.github.com";
|
|
86
|
+
pathTemplate: string;
|
|
87
|
+
statusCode: number;
|
|
88
|
+
latencyMs: number;
|
|
89
|
+
recordedAt: string;
|
|
90
|
+
}
|
package/src/schema.ts
CHANGED
|
@@ -32,7 +32,6 @@ export type ArchContextErrorCode =
|
|
|
32
32
|
| "AC_COMPAT_CONTRACT_REQUIRED"
|
|
33
33
|
| "AC_USER_CONFIRMATION_REQUIRED"
|
|
34
34
|
| "AC_ENTITLEMENT_REQUIRED"
|
|
35
|
-
| "AC_ATTESTATION_REJECTED"
|
|
36
35
|
| "AC_TUNNEL_SCOPE_DENIED"
|
|
37
36
|
| "AC_MODEL_ADOPTION_REQUIRED"
|
|
38
37
|
| "AC_REFACTOR_STALE"
|
|
@@ -83,7 +82,6 @@ export const ERROR_CATALOG: Record<ArchContextErrorCode, Omit<ArchContextError,
|
|
|
83
82
|
AC_COMPAT_CONTRACT_REQUIRED: { code: "AC_COMPAT_CONTRACT_REQUIRED", severity: "error", retryable: false, action: "delete-or-contract" },
|
|
84
83
|
AC_USER_CONFIRMATION_REQUIRED: { code: "AC_USER_CONFIRMATION_REQUIRED", severity: "warning", retryable: true, action: "show-human-decision" },
|
|
85
84
|
AC_ENTITLEMENT_REQUIRED: { code: "AC_ENTITLEMENT_REQUIRED", severity: "error", retryable: false, action: "login-or-subscribe" },
|
|
86
|
-
AC_ATTESTATION_REJECTED: { code: "AC_ATTESTATION_REJECTED", severity: "error", retryable: false, action: "review-again" },
|
|
87
85
|
AC_TUNNEL_SCOPE_DENIED: { code: "AC_TUNNEL_SCOPE_DENIED", severity: "error", retryable: false, action: "reduce-scope" },
|
|
88
86
|
AC_MODEL_ADOPTION_REQUIRED: { code: "AC_MODEL_ADOPTION_REQUIRED", severity: "error", retryable: false, action: "adopt-architecture-model" },
|
|
89
87
|
AC_REFACTOR_STALE: { code: "AC_REFACTOR_STALE", severity: "warning", retryable: true, action: "rerun-refactor-scan" },
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.attestation/v2",
|
|
3
|
-
"attestationId": "att_20260620_error",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"installationId": 10001,
|
|
6
|
-
"repositoryId": 20002,
|
|
7
|
-
"pullRequestNumber": 42,
|
|
8
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
9
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
10
|
-
"mergeBaseSha": "cccccccccccccccccccccccccccccccccccccccc",
|
|
11
|
-
"headTreeOid": "tree_aaaaaaaa",
|
|
12
|
-
"worktreeDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
13
|
-
"modelDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
14
|
-
"policyDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
15
|
-
"codeFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
16
|
-
"reviewDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
17
|
-
"result": "error",
|
|
18
|
-
"errorCode": "CODEGRAPH_FAILED",
|
|
19
|
-
"execution": {
|
|
20
|
-
"trustLevel": "organization",
|
|
21
|
-
"source": "organization-runner-checkout",
|
|
22
|
-
"principalId": "runner_0001",
|
|
23
|
-
"publicKeyId": "key_runner_0001",
|
|
24
|
-
"runnerId": "runner_0001",
|
|
25
|
-
"workflowRef": "owner/repo/.github/workflows/archcontext-review.yml@refs/heads/main",
|
|
26
|
-
"runId": "1234567890",
|
|
27
|
-
"runAttempt": 1
|
|
28
|
-
},
|
|
29
|
-
"runtime": {
|
|
30
|
-
"version": "0.2.1",
|
|
31
|
-
"buildDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
32
|
-
"codeGraphVersion": "1.0.1",
|
|
33
|
-
"capabilitiesDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
|
|
34
|
-
},
|
|
35
|
-
"nonce": "nonce_base64url_0001",
|
|
36
|
-
"startedAt": "2026-06-20T09:03:00Z",
|
|
37
|
-
"completedAt": "2026-06-20T09:04:00Z",
|
|
38
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
39
|
-
"signature": {
|
|
40
|
-
"algorithm": "ed25519",
|
|
41
|
-
"value": "base64url_signature"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.check-delivery/v1",
|
|
3
|
-
"deliveryId": "delivery_dead_letter",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"checkRunId": null,
|
|
6
|
-
"checkName": "ArchContext / Organization Runner",
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"status": "DEAD_LETTER",
|
|
9
|
-
"attemptCount": 5,
|
|
10
|
-
"nextAttemptAt": null,
|
|
11
|
-
"lastErrorCode": "CHALLENGE_SUPERSEDED",
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"updatedAt": "2026-06-20T09:30:00Z"
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.review-challenge/v2",
|
|
3
|
-
"challengeId": "chal_20260620_org",
|
|
4
|
-
"installationId": 10001,
|
|
5
|
-
"repositoryId": 20002,
|
|
6
|
-
"pullRequestNumber": 42,
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
9
|
-
"nonce": "nonce_base64url_org",
|
|
10
|
-
"requiredTrust": "organization",
|
|
11
|
-
"policyProfileId": "policy.organization",
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
14
|
-
"status": "LEASED"
|
|
15
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.runner-identity/v1",
|
|
3
|
-
"runnerId": "runner_org_0001",
|
|
4
|
-
"installationId": 10001,
|
|
5
|
-
"repositoryIds": [],
|
|
6
|
-
"scope": {
|
|
7
|
-
"kind": "organization"
|
|
8
|
-
},
|
|
9
|
-
"workflowRef": "owner/repo/.github/workflows/archcontext-review.yml@refs/heads/main",
|
|
10
|
-
"publicKeyId": "key_runner_org_0001",
|
|
11
|
-
"publicKeyFingerprint": "sha256:8888888888888888888888888888888888888888888888888888888888888888",
|
|
12
|
-
"status": "active",
|
|
13
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
14
|
-
"rotatedAt": null,
|
|
15
|
-
"revokedAt": null
|
|
16
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.attestation/v2",
|
|
3
|
-
"attestationId": "att_bad_finding",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"installationId": 10001,
|
|
6
|
-
"repositoryId": 20002,
|
|
7
|
-
"pullRequestNumber": 42,
|
|
8
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
9
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
10
|
-
"mergeBaseSha": "cccccccccccccccccccccccccccccccccccccccc",
|
|
11
|
-
"headTreeOid": "tree_aaaaaaaa",
|
|
12
|
-
"worktreeDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
13
|
-
"modelDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
14
|
-
"policyDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
15
|
-
"codeFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
16
|
-
"reviewDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
17
|
-
"result": "pass",
|
|
18
|
-
"execution": {
|
|
19
|
-
"trustLevel": "developer",
|
|
20
|
-
"source": "clean-commit-worktree",
|
|
21
|
-
"principalId": "device_0001",
|
|
22
|
-
"publicKeyId": "key_device_0001"
|
|
23
|
-
},
|
|
24
|
-
"runtime": {
|
|
25
|
-
"version": "0.2.1",
|
|
26
|
-
"buildDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
27
|
-
"codeGraphVersion": "1.0.1",
|
|
28
|
-
"capabilitiesDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
|
|
29
|
-
},
|
|
30
|
-
"nonce": "nonce_base64url_0001",
|
|
31
|
-
"startedAt": "2026-06-20T09:03:00Z",
|
|
32
|
-
"completedAt": "2026-06-20T09:04:00Z",
|
|
33
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
34
|
-
"signature": {
|
|
35
|
-
"algorithm": "ed25519",
|
|
36
|
-
"value": "base64url_signature"
|
|
37
|
-
},
|
|
38
|
-
"finding": "private finding body"
|
|
39
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.check-delivery/v1",
|
|
3
|
-
"deliveryId": "delivery_bad_legacy",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"checkRunId": "check_legacy",
|
|
6
|
-
"checkName": "ArchContext / Legacy Architecture Review",
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"status": "PENDING",
|
|
9
|
-
"attemptCount": 0,
|
|
10
|
-
"nextAttemptAt": null,
|
|
11
|
-
"lastErrorCode": null,
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"updatedAt": "2026-06-20T09:00:00Z"
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.review-challenge/v2",
|
|
3
|
-
"challengeId": "chal_bad_private_field",
|
|
4
|
-
"installationId": 10001,
|
|
5
|
-
"repositoryId": 20002,
|
|
6
|
-
"pullRequestNumber": 42,
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
9
|
-
"nonce": "nonce_base64url_0001",
|
|
10
|
-
"requiredTrust": "developer",
|
|
11
|
-
"policyProfileId": "policy.default",
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
14
|
-
"status": "PENDING",
|
|
15
|
-
"filename": "src/private.ts"
|
|
16
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.attestation/v2",
|
|
3
|
-
"attestationId": "att_20260620_0001",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"installationId": 10001,
|
|
6
|
-
"repositoryId": 20002,
|
|
7
|
-
"pullRequestNumber": 42,
|
|
8
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
9
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
10
|
-
"mergeBaseSha": "cccccccccccccccccccccccccccccccccccccccc",
|
|
11
|
-
"headTreeOid": "tree_aaaaaaaa",
|
|
12
|
-
"worktreeDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
13
|
-
"modelDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
14
|
-
"policyDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
15
|
-
"codeFactsDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
16
|
-
"reviewDigest": "sha256:4444444444444444444444444444444444444444444444444444444444444444",
|
|
17
|
-
"result": "pass",
|
|
18
|
-
"execution": {
|
|
19
|
-
"trustLevel": "developer",
|
|
20
|
-
"source": "clean-commit-worktree",
|
|
21
|
-
"principalId": "device_0001",
|
|
22
|
-
"publicKeyId": "key_device_0001"
|
|
23
|
-
},
|
|
24
|
-
"runtime": {
|
|
25
|
-
"version": "0.2.1",
|
|
26
|
-
"buildDigest": "sha256:5555555555555555555555555555555555555555555555555555555555555555",
|
|
27
|
-
"codeGraphVersion": "1.0.1",
|
|
28
|
-
"capabilitiesDigest": "sha256:6666666666666666666666666666666666666666666666666666666666666666"
|
|
29
|
-
},
|
|
30
|
-
"nonce": "nonce_base64url_0001",
|
|
31
|
-
"startedAt": "2026-06-20T09:03:00Z",
|
|
32
|
-
"completedAt": "2026-06-20T09:04:00Z",
|
|
33
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
34
|
-
"signature": {
|
|
35
|
-
"algorithm": "ed25519",
|
|
36
|
-
"value": "base64url_signature"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.attestation/v1",
|
|
3
|
-
"attestationId": "att_123",
|
|
4
|
-
"challengeId": "challenge_123",
|
|
5
|
-
"repository": {
|
|
6
|
-
"provider": "github",
|
|
7
|
-
"owner": "ancienttwo",
|
|
8
|
-
"name": "arch-context",
|
|
9
|
-
"visibility": "private"
|
|
10
|
-
},
|
|
11
|
-
"headSha": "abc123",
|
|
12
|
-
"worktreeDigest": "sha256:0000000000000000000000000000000000000000000000000000000000000000",
|
|
13
|
-
"reviewDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
14
|
-
"device": {
|
|
15
|
-
"deviceId": "device_local",
|
|
16
|
-
"publicKeyId": "pk_local"
|
|
17
|
-
},
|
|
18
|
-
"issuedAt": "2026-06-19T00:00:00Z",
|
|
19
|
-
"expiresAt": "2026-06-19T00:10:00Z",
|
|
20
|
-
"trustLevel": "developer",
|
|
21
|
-
"signature": {
|
|
22
|
-
"alg": "ed25519",
|
|
23
|
-
"value": "base64-test-signature"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.check-delivery/v1",
|
|
3
|
-
"deliveryId": "delivery_0001",
|
|
4
|
-
"challengeId": "chal_20260620_0001",
|
|
5
|
-
"checkRunId": "check_0001",
|
|
6
|
-
"checkName": "ArchContext / Developer Review",
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"status": "PENDING",
|
|
9
|
-
"attemptCount": 0,
|
|
10
|
-
"nextAttemptAt": null,
|
|
11
|
-
"lastErrorCode": null,
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"updatedAt": "2026-06-20T09:00:00Z"
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.device-identity/v1",
|
|
3
|
-
"deviceId": "device_0001",
|
|
4
|
-
"accountId": "acct_0001",
|
|
5
|
-
"publicKeyId": "key_device_0001",
|
|
6
|
-
"publicKeyFingerprint": "sha256:8888888888888888888888888888888888888888888888888888888888888888",
|
|
7
|
-
"status": "active",
|
|
8
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
9
|
-
"revokedAt": null
|
|
10
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.governance-key-status/v1",
|
|
3
|
-
"publicKeyId": "key_runner_0001",
|
|
4
|
-
"ownerKind": "runner",
|
|
5
|
-
"ownerId": "runner_0001",
|
|
6
|
-
"fingerprint": "sha256:9999999999999999999999999999999999999999999999999999999999999999",
|
|
7
|
-
"status": "active",
|
|
8
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
9
|
-
"rotatedAt": null,
|
|
10
|
-
"revokedAt": null
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.org-runner-identity/v1",
|
|
3
|
-
"runnerId": "runner_acme_prod_1",
|
|
4
|
-
"installationId": 12345,
|
|
5
|
-
"repositoryNumericIds": [1001, 1002],
|
|
6
|
-
"publicKeyId": "org_pk_1",
|
|
7
|
-
"publicKeyFingerprint": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
8
|
-
"status": "active",
|
|
9
|
-
"createdAt": "2026-06-19T00:00:00Z"
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.review-challenge/v2",
|
|
3
|
-
"challengeId": "chal_20260620_0001",
|
|
4
|
-
"installationId": 10001,
|
|
5
|
-
"repositoryId": 20002,
|
|
6
|
-
"pullRequestNumber": 42,
|
|
7
|
-
"headSha": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
-
"baseSha": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
9
|
-
"nonce": "nonce_base64url_0001",
|
|
10
|
-
"requiredTrust": "developer",
|
|
11
|
-
"policyProfileId": "policy.default",
|
|
12
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
13
|
-
"expiresAt": "2026-06-20T09:15:00Z",
|
|
14
|
-
"status": "PENDING"
|
|
15
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "archcontext.runner-identity/v1",
|
|
3
|
-
"runnerId": "runner_0001",
|
|
4
|
-
"installationId": 10001,
|
|
5
|
-
"repositoryIds": [20002],
|
|
6
|
-
"workflowRef": "owner/repo/.github/workflows/archcontext-review.yml@refs/heads/main",
|
|
7
|
-
"publicKeyId": "key_runner_0001",
|
|
8
|
-
"publicKeyFingerprint": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
|
|
9
|
-
"status": "active",
|
|
10
|
-
"createdAt": "2026-06-20T09:00:00Z",
|
|
11
|
-
"rotatedAt": null,
|
|
12
|
-
"revokedAt": null
|
|
13
|
-
}
|