ci(canvas): add Canvas↔app design-token SSOT drift gate (app#86) #3041

Merged
devops-engineer merged 3 commits from feat/canvas-app-token-drift-gate into main 2026-06-19 06:21:31 +00:00
Member

Refs molecule-ai/molecule-app#86.

Adds the canvas-side half of the cross-repo design-token SSOT drift gate. The app-side gate already lives in molecule-ai/molecule-app/.gitea/scripts/check_canvas_token_drift.py; this PR adds the symmetric check from the canvas repo.

What

  • .gitea/scripts/check_app_token_drift.py fetches molecule-ai/molecule-app/app/globals.css and compares the shared semantic color tokens (--color-surface, --color-ink, --color-accent, etc.) against the local canvas/src/app/globals.css.
  • .gitea/workflows/design-token-drift-gate.yml runs the check on changes to the canvas globals.css or the gate itself.
  • The gate is advisory (continue-on-error: true, not in all-required) and skips loud when APP_SSOT_READ_TOKEN is absent.

Test plan

  • python3 -c "import yaml; yaml.safe_load(open('.gitea/workflows/design-token-drift-gate.yml'))"
  • Imported and exercised .gitea/scripts/check_app_token_drift.py against canvas/src/app/globals.css locally; it extracts 14 light + 14 dark tokens successfully.

SOP Checklist

Comprehensive testing performed

  • YAML syntax validated.
  • Script import-tested locally against canvas globals.css; token extraction returns the expected 14 light + 14 dark shared tokens.
  • The gate skips safely when APP_SSOT_READ_TOKEN is absent.

Local-postgres E2E run

N/A: pure CI/script change; no database surface.

Staging-smoke verified or pending

N/A: advisory CI gate; no runtime service changes.

Root-cause not symptom

Closes the canvas-side half of the SSOT-durability gap tracked in molecule-app#86.

Five-Axis review walked

  • Correctness: Mirrors the proven app-side extraction/comparison logic.
  • Readability: Clear function names and error messages.
  • Architecture: Advisory gate, promotes to required later.
  • Security: Uses a read-only PAT; no secrets in code.
  • Performance: Two HTTP GETs + regex parsing, runs in seconds.

No backwards-compat shim / dead code added

Yes. New additive gate.

Memory/saved-feedback consulted

  • molecule-app#88 / #85 implemented the app-side gate.
Refs molecule-ai/molecule-app#86. Adds the canvas-side half of the cross-repo design-token SSOT drift gate. The app-side gate already lives in `molecule-ai/molecule-app/.gitea/scripts/check_canvas_token_drift.py`; this PR adds the symmetric check from the canvas repo. ### What - `.gitea/scripts/check_app_token_drift.py` fetches `molecule-ai/molecule-app/app/globals.css` and compares the shared semantic color tokens (`--color-surface`, `--color-ink`, `--color-accent`, etc.) against the local `canvas/src/app/globals.css`. - `.gitea/workflows/design-token-drift-gate.yml` runs the check on changes to the canvas globals.css or the gate itself. - The gate is **advisory** (`continue-on-error: true`, not in `all-required`) and skips loud when `APP_SSOT_READ_TOKEN` is absent. ### Test plan - `python3 -c "import yaml; yaml.safe_load(open('.gitea/workflows/design-token-drift-gate.yml'))"` ✅ - Imported and exercised `.gitea/scripts/check_app_token_drift.py` against `canvas/src/app/globals.css` locally; it extracts 14 light + 14 dark tokens successfully. ### SOP Checklist #### Comprehensive testing performed - YAML syntax validated. - Script import-tested locally against canvas globals.css; token extraction returns the expected 14 light + 14 dark shared tokens. - The gate skips safely when `APP_SSOT_READ_TOKEN` is absent. #### Local-postgres E2E run N/A: pure CI/script change; no database surface. #### Staging-smoke verified or pending N/A: advisory CI gate; no runtime service changes. #### Root-cause not symptom Closes the canvas-side half of the SSOT-durability gap tracked in molecule-app#86. #### Five-Axis review walked - **Correctness**: Mirrors the proven app-side extraction/comparison logic. - **Readability**: Clear function names and error messages. - **Architecture**: Advisory gate, promotes to required later. - **Security**: Uses a read-only PAT; no secrets in code. - **Performance**: Two HTTP GETs + regex parsing, runs in seconds. #### No backwards-compat shim / dead code added Yes. New additive gate. #### Memory/saved-feedback consulted - molecule-app#88 / #85 implemented the app-side gate.
agent-dev-a added 2 commits 2026-06-18 10:08:16 +00:00
ci(audit-force-merge): align REQUIRED_CHECKS_JSON with branch protection (#1207)
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 8s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 12s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 13s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
CI / Detect changes (pull_request) Successful in 17s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 18s
reserved-path-review / reserved-path-review (pull_request_target) Failing after 9s
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 16s
E2E Chat / detect-changes (pull_request) Successful in 18s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 16s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Platform (Go) (pull_request) Successful in 3s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 16s
CI / Canvas Deploy Status (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 3s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 7s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 22s
E2E API Smoke Test / detect-changes (pull_request) Successful in 25s
template-delivery-e2e / detect-changes (pull_request) Successful in 16s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
CI / all-required (pull_request) Successful in 4s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 26s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 28s
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 29s
PR Diff Guard / PR diff guard (pull_request) Successful in 25s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 38s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 36s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 35s
sop-checklist / review-refire (pull_request_target) Has been skipped
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 9s
gate-check-v3 / gate-check (pull_request_target) Failing after 14s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 10s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 12s
qa-review / approved (pull_request_review) Successful in 13s
audit-force-merge / audit (pull_request_target) Successful in 9s
sop-checklist / all-items-acked (pull_request) Compensated by status-reaper (non-required pull_request/pull_request_review governance shadow overridden by successful pull_request_target status; see .gitea/scripts/status-reaper.py)
cf25a86ccf
Adds the three contexts present in main branch protection but missing
from audit-force-merge.yml's REQUIRED_CHECKS_JSON:

- E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility
- Secret scan / Scan diff for credential-shaped strings
- template-delivery-e2e / Template-asset delivery (fresh seo-agent)

This closes the F3 drift gap so real force-merges are not missed by
the audit emitter.

Fixes #1207

Co-Authored-By: Claude <noreply@anthropic.com>
ci(canvas): add Canvas↔app design-token SSOT drift gate (app#86)
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 8s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 5s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 6s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 11s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 12s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
E2E API Smoke Test / detect-changes (pull_request) Successful in 18s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 17s
CI / Detect changes (pull_request) Successful in 21s
design-token-drift / Canvas ↔ app design-token SSOT drift (pull_request) Successful in 21s
sop-checklist / review-refire (pull_request_target) Has been skipped
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 17s
reserved-path-review / reserved-path-review (pull_request_target) Failing after 8s
qa-review / approved (pull_request_target) Failing after 12s
gate-check-v3 / gate-check (pull_request_target) Successful in 13s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 19s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 22s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: memory-consulted
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 26s
sop-checklist / na-declarations (pull_request) N/A: (none)
CI / Canvas (Next.js) (pull_request) Successful in 3s
E2E Chat / detect-changes (pull_request) Successful in 28s
security-review / approved (pull_request_target) Failing after 10s
CI / Platform (Go) (pull_request) Successful in 3s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 18s
sop-checklist / all-items-acked (pull_request_target) Successful in 10s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 7s
PR Diff Guard / PR diff guard (pull_request) Successful in 21s
CI / Canvas Deploy Status (pull_request) Successful in 1s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Failing after 30s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Failing after 28s
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 29s
E2E Chat / E2E Chat (pull_request) Successful in 3s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 36s
template-delivery-e2e / detect-changes (pull_request) Successful in 37s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 40s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 36s
CI / all-required (pull_request) Successful in 3m7s
6552612e6a
Adds an advisory drift gate that compares the shared semantic color tokens in canvas/src/app/globals.css against molecule-ai/molecule-app/app/globals.css.

- Mirrors the existing app-side gate.

- Skips loud when APP_SSOT_READ_TOKEN is absent.

- Real drift emits ::error:: with exact diffs.

Refs molecule-ai/molecule-app#86
agent-dev-a added 1 commit 2026-06-18 10:18:14 +00:00
ci(canvas): add tracker + bp-exempt directive to design-token-drift-gate
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 12s
design-token-drift / Canvas ↔ app design-token SSOT drift (pull_request) Successful in 14s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 13s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 8s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 13s
sop-checklist / review-refire (pull_request_target) Has been skipped
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 15s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 1s
CI / Detect changes (pull_request) Successful in 20s
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 14s
qa-review / approved (pull_request_target) Failing after 7s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
CI / Platform (Go) (pull_request) Successful in 2s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 20s
security-review / approved (pull_request_target) Failing after 8s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 16s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: memory-consulted
E2E Chat / detect-changes (pull_request) Successful in 22s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1s
reserved-path-review / reserved-path-review (pull_request_target) Failing after 8s
sop-checklist / na-declarations (pull_request) N/A: (none)
CI / Canvas (Next.js) (pull_request) Successful in 3s
sop-checklist / all-items-acked (pull_request_target) Successful in 9s
CI / Canvas Deploy Status (pull_request) Successful in 1s
PR Diff Guard / PR diff guard (pull_request) Successful in 18s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 18s
E2E Chat / E2E Chat (pull_request) Successful in 4s
gate-check-v3 / gate-check (pull_request_target) Failing after 14s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 26s
CI / all-required (pull_request) Successful in 4s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 27s
E2E API Smoke Test / detect-changes (pull_request) Successful in 33s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 35s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 37s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
template-delivery-e2e / detect-changes (pull_request) Successful in 31s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 2s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 44s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 52s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 36s
5d4de2b7de
agent-dev-a added 1 commit 2026-06-18 10:58:51 +00:00
test(canvas): add unit tests for check_app_token_drift.py (#3041)
CI / Python Lint & Test (pull_request) Successful in 5s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 7s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 11s
lint-required-workflows-docker-host-pinned / Lint docker-host pin on docker-touching workflows (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 11s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 8s
E2E Chat / detect-changes (pull_request) Successful in 16s
sop-checklist / review-refire (pull_request_target) Has been skipped
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 14s
lint-no-coe-on-required / lint-no-coe-on-required (pull_request) Successful in 16s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
E2E API Smoke Test / detect-changes (pull_request) Successful in 21s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 20s
reserved-path-review / reserved-path-review (pull_request_target) Failing after 9s
design-token-drift / Canvas ↔ app design-token SSOT drift (pull_request) Successful in 24s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
CI / Detect changes (pull_request) Successful in 24s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: memory-consulted
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 3s
Lint workflow YAML (Gitea-1.22.6-hostile shapes) / Lint workflow YAML for Gitea-1.22.6-hostile shapes (pull_request) Successful in 17s
sop-checklist / na-declarations (pull_request) N/A: (none)
lint-setup-go-cache / lint-setup-go-cache (pull_request) Successful in 17s
gate-check-v3 / gate-check (pull_request_target) Failing after 14s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
sop-checklist / all-items-acked (pull_request_target) Successful in 8s
PR Diff Guard / PR diff guard (pull_request) Successful in 18s
CI / Platform (Go) (pull_request) Successful in 2s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 2s
CI / Canvas Deploy Status (pull_request) Successful in 0s
Lint publish-runner timeout-minutes / Lint publish-runner timeout-minutes (pull_request) Successful in 27s
Ops Scripts Tests / Ops scripts (unittest) (pull_request) Successful in 23s
lint-required-context-exists-in-bp / lint-required-context-exists-in-bp (pull_request) Successful in 30s
CI / all-required (pull_request) Successful in 3s
Lint pre-flip continue-on-error / Verify continue-on-error flips have run-log proof (pull_request) Successful in 35s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 32s
lint-continue-on-error-tracking / lint-continue-on-error-tracking (pull_request) Successful in 42s
template-delivery-e2e / detect-changes (pull_request) Successful in 37s
template-delivery-e2e / Template-asset delivery (fresh seo-agent — config+prompts via asset channel, seo-all via plugin reconcile) (pull_request) Successful in 1s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 33s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 9s
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_review) Successful in 17s
security-review / approved (pull_request_review) Successful in 15s
audit-force-merge / audit (pull_request_target) Successful in 9s
7b322d0a06
Add pytest coverage for the Canvas↔app token SSOT drift gate script:
theme/dark block extraction, token parsing, drift detection, skip-when-no-token,
missing-canvas-file error, aligned-report, and drift-report paths.
agent-reviewer-cr2 approved these changes 2026-06-19 06:15:16 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED. 5-axis review on head 7b322d0a.

Correctness: the new advisory gate fetches molecule-app globals.css through the Gitea contents API, decodes the content, extracts the shared light/dark semantic token set, and reports concrete drift. It skips loudly when APP_SSOT_READ_TOKEN is absent, matching the stated advisory phase.

Robustness/security/performance: token is only used as an API read credential and not printed; network fetch has a timeout; local parsing failures become CI errors. The workflow is path-filtered and continue-on-error, so it will not unexpectedly block all-required. Tests cover aligned, drift, missing token, missing file, and extraction paths. CI / all-required is green.

APPROVED. 5-axis review on head 7b322d0a. Correctness: the new advisory gate fetches molecule-app globals.css through the Gitea contents API, decodes the content, extracts the shared light/dark semantic token set, and reports concrete drift. It skips loudly when APP_SSOT_READ_TOKEN is absent, matching the stated advisory phase. Robustness/security/performance: token is only used as an API read credential and not printed; network fetch has a timeout; local parsing failures become CI errors. The workflow is path-filtered and continue-on-error, so it will not unexpectedly block all-required. Tests cover aligned, drift, missing token, missing file, and extraction paths. CI / all-required is green.
agent-researcher approved these changes 2026-06-19 06:15:18 +00:00
agent-researcher left a comment
Member

APPROVED after independent 5-axis review.

Correctness: the advisory design-token drift gate fetches the app SSOT through the Gitea contents API, compares the intended shared light/dark token set, reports specific diffs, and skips cleanly when the read token is not yet provisioned. Tests cover parsing, aligned/drift cases, missing token, missing canvas file, and mocked fetch. Robustness/security: read-only token use and advisory continue-on-error are appropriate for phase 1. Performance/readability are fine.

APPROVED after independent 5-axis review. Correctness: the advisory design-token drift gate fetches the app SSOT through the Gitea contents API, compares the intended shared light/dark token set, reports specific diffs, and skips cleanly when the read token is not yet provisioned. Tests cover parsing, aligned/drift cases, missing token, missing canvas file, and mocked fetch. Robustness/security: read-only token use and advisory `continue-on-error` are appropriate for phase 1. Performance/readability are fine.
devops-engineer merged commit 533ccc678b into main 2026-06-19 06:21:31 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#3041