Skip to content

feat(artifacts): file approval_package with source pins and secret scan - #58

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-11932-file-approval-packages-as-a-versioned-document-kind
Nov 2, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-11932-file-approval-packages-as-a-versioned-document-kind

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Closes CL-11932 (Slice 2 of 5 for CL-11929; stacked on cl-11930-give-agents-deck-tools-that-check-and-render-decks).

Summary

  • Add approval_package to ArtifactKind (packages/schemas/src/artifact.ts) with ApprovalPackageManifest, ApprovalPackageBundle, ApprovalPackageSourceRef, and MAX_APPROVAL_PACKAGE_BYTES.
  • Validate filed approval_package versions in the Hub (apps/hub/src/artifacts/approval-package.ts):
    • Every manifest.sources entry must match a filed project document's version and sha256 (invalid_package_source on mismatch; app and approval_package sources refused).
    • Fail-closed secret scan across deck text, speaker notes, manifest fields, and supporting documents (package_contains_secret naming only the file, never the secret value), plus rejection of live-app URLs and demoLogin blocks.
  • Strip pptxBase64 and pdfBase64 when read_artifact reads an approval_package so agents inspect the structured JSON and manifest without loading binary payloads into context.
  • Render approval_package in the workspace reading pane (apps/web/src/pages/workspace/approval-package-preview.tsx) with Slides, PDF, and Sources views.

@linear-code

linear-code Bot commented Nov 2, 2026

Copy link
Copy Markdown

CL-11932

corbits-triage[bot]
corbits-triage Bot previously approved these changes Nov 2, 2026
@TheGreatAxios
TheGreatAxios force-pushed the cl-11932-file-approval-packages-as-a-versioned-document-kind branch from 6cddf64 to 331d923 Compare November 2, 2026 03:40
@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 03:43

This pull request is no longer ready to approve, so this approval no longer stands.

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triage requests changes:

  • Errors kept: added code matches a code pattern

@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 05:02

Nothing triage asked to change still fails, so this request no longer stands.

corbits-triage[bot]
corbits-triage Bot previously approved these changes Nov 2, 2026
@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 05:08

This pull request is no longer ready to approve, so this approval no longer stands.

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triage requests changes:

  • CI green: required checks are failing
    • test

@TheGreatAxios
TheGreatAxios force-pushed the cl-11932-file-approval-packages-as-a-versioned-document-kind branch from 3f747fb to 80364b3 Compare November 2, 2026 05:08
@corbits-triage
corbits-triage Bot dismissed stale reviews from themself November 2, 2026 06:36

Nothing triage asked to change still fails, so this request no longer stands.

corbits-triage[bot]
corbits-triage Bot previously approved these changes Nov 2, 2026
@TheGreatAxios
TheGreatAxios changed the base branch from cl-11930-give-agents-deck-tools-that-check-and-render-decks to main November 2, 2026 08:46
@TheGreatAxios
TheGreatAxios dismissed corbits-triage[bot]’s stale review November 2, 2026 08:46

The base branch was changed.

@TheGreatAxios
TheGreatAxios enabled stacked auto-merge November 2, 2026 08:46

@corbits-triage corbits-triage Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triage requests changes:

  • Merge conflicts: merge conflicts with base

@TheGreatAxios
TheGreatAxios force-pushed the cl-11932-file-approval-packages-as-a-versioned-document-kind branch from 983f5a1 to 852abac Compare November 2, 2026 08:53
@TheGreatAxios
TheGreatAxios disabled stacked auto-merge November 2, 2026 09:03
@TheGreatAxios
TheGreatAxios added this pull request to stack #90 November 2, 2026 09:06
@corbits-triage

corbits-triage Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Triage will approve, request review.

@corbits-triage
corbits-triage Bot dismissed their stale review November 2, 2026 09:14

Nothing triage asked to change still fails, so this request no longer stands.

@TheGreatAxios
TheGreatAxios added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 44e8cdf Nov 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant