Skip to content

feat: every published page is public, restricted, private or off (15.6.0) - #328

Merged
xjacka merged 8 commits into
mainfrom
claude/dam-artifacts-sso-gating-24e507
Dec 3, 2026
Merged

xjacka merged 8 commits into
mainfrom
claude/dam-artifacts-sso-gating-24e507

Conversation

@xjacka

@xjacka xjacka commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

What and why

Code Guardian published every DAM page with visibility: "public". Anyone with the link opened it, with no sign-in. For a private repository, the review guide showed its code and review notes to anyone who had the link.

This change gives each published page one key with four values: public, restricted, private and off. restricted shares a page only with named people, who must sign in. It uses DAM's set_artifact_sharing.

Reviewer guide

What changes in substance

  • Each page key (review_guide (new), audit_trend, survey_report, benchmark_report, health_dashboard, agent_manifest) takes public | restricted | private | off. dam still reads as public. A missing key keeps the behavior of today.
  • restricted reads its people from <key>_viewers. The token desk adds every email on the Desk's People list. DAM lets only the owner move a restricted page back to private or public, so the agent never tries.
  • off publishes nothing. A page published before becomes private. The agent never deletes it.
  • docs/artifact.md → Visibility is the single home for what each value means, and for the warning about a private repository. Onboarding, the audit and the Desk link to it.
  • A new audit check, artifact_visibility, gives a warning when a private or internal repository has a public page.
  • Desk: Settings shows the four values with what each one means. Each page has an editor for its list of people. A public page of a private repository gets a red warning. Settings was revised item by item against docs/config.md. People is now its own menu item.

Where to look closely

  • scripts/health.sh publishes by itself. Look at the paths for restricted (the viewer diff), for a changed key (due at once) and for off (made private once). A wrong state here can leave a public link in the alert DMs.
  • scripts/review-pr.sh compose-brief. Under off, the guide skill does not run, and a guide that was published before goes private through guide --url private. Look at how this interacts with the guide-owed and guide-label rounds in preflight.sh.
  • An unknown value now reads as off. Before, it read as dam (public). (open)
  • artifact_visibility is a warn, not a fail. (open)

Scope

  • Scripts: lib/common.sh (pub_vis, pub_viewers, PUB_KEYS), preflight.sh (config object, page_viewers, guide gating, audit check, desk/repo.json once a day), review-pr.sh (guide steps, private marker), health.sh, monitor.sh, audit-trend.sh, verify-onboarding.sh, templates/guide-brief.md.
  • Desk: page.html, settings.mjs, dev/seed.mjs. The week-at-a-glance grid is removed. The fixed values (hours, cadences) are no longer shown as invalid.
  • Docs: artifact.md, config.md, trends.md, benchmark.md, health.md, manifest.md, audit.md, desk.md, logging.md, runbook.md, self-modification.md, README.md, ONBOARDING.md.
  • VERSION 15.5.0 and its CHANGELOG.md entry. The upgrade rewrites dam to public and asks the operator about each public page of a private repository.

Issue

No issue tracks this change. The operator asked for it in a direct session.

Testing

  • Full suite in Docker (scripts/tests/docker.sh): ALL TESTS PASSED. New cases cover the health dashboard (private, a switch from public, a restricted page the owner set, restricted with a viewer diff, off), the review guide (off, restricted), verify-onboarding (the values and the viewer lists) and the audit check.
  • test_desk.sh is skipped in the container because it has no Node. I checked the Desk by hand with scripts/desk/dev/harness.mjs: the four values, the red warning, the editor for people, and the People menu item. The console had no errors.
  • The CI doc checks (links and cross-file references) pass locally.
  • Not run: a read-only preflight.sh sanity run against a live pod.

The grid listed every one-time review session as a weekly schedule and
filled half of the page. The Overview keeps the next runs.
…5.0)

Each DAM page (review guide, weekly trends, survey, benchmark, health
dashboard, interface card) now has one key with four values:
public (anyone with the link, no sign-in), restricted (named people,
after sign-in, via set_artifact_sharing and <key>_viewers, where `desk`
adds everyone on the Desk's People list), private (the owner only) and
off (nothing published; a page published before turns private). `dam`
still reads as public. The new key review_guide replaces the always-public
guide.

docs/artifact.md -> Visibility is the single home of what each value
means and of the warning for a private repository. The weekly audit's
artifact_visibility check reports every public page of a private or
internal repository, and the Desk shows it in red.

Desk: Settings revised item by item against docs/config.md (progress is a
check run, benchmark runs on request, Slack-dependent features say so,
review guide, survey findings and three review switches added, fixed
values no longer flagged as invalid), each page's People list is edited
in place, and People is its own menu item next to Settings.
@xjacka xjacka changed the title feat: every published page is public, restricted, private or off (15.5.0) feat: every published page is public, restricted, private or off (15.6.0) Dec 3, 2026

@dam-code-protector dam-code-protector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛡️ Code Guardian - Code guardian repo — ⚠️ Code Review @ 687f281

PR #328: feat: every published page is public, restricted, private or off (15.6.0)

Author: xjacka | Branch: claude/dam-artifacts-sso-gating-24e507 → main | Changes: +696 −218 (33 files)

Summary

Every published page now takes one key with four values: public, restricted, private or off. A restricted page opens only for named people, and the audit warns at a public page of a private repository.
Limits: 2 skill(s) did not run: issue-fit, react-ui-engineering.

Findings

  • 🟡 Warning: The new value words are missing from the manifest privacy list (scripts/lib/common.sh:198)
  • 🟡 Warning: A failed sharing call reads as a published page (scripts/health.sh:443)
  • 🟢 Suggestion: restricted is missing from three publish enumerations: docs/trends.md:38, docs/benchmark.md:587 and docs/runbook.md:332. Each names public, private and off only. The value is reachable, and docs/artifact.md → Visibility still covers it, so a run can recover. Add the fourth value to each list.

Human Review Guide

📊 Visual guide for the human reviewer — two open calls: an unknown page value reads as off, and the audit only warns (about 25 min)

Documentation Check (doc-drift)

✅ No findings.

TypeScript Engineering Review

✅ No findings.
The two changed .mjs files follow the repository conventions. This repository declares no module architecture of the skill type, so its alignment rules do not apply.

Agent Engineering

✅ No findings beyond the two warnings in ### Findings. The definition check reports no fail and no warn at this head.

Verdict

COMMENT — two warnings hold approval: the manifest privacy scan stops at the new value words, and a refused sharing call is reported as a success.


Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi

Comment thread scripts/lib/common.sh Resolved
Comment thread scripts/health.sh Resolved
…e fails the publish

- manifest-check.sh: public, restricted, private and desk are documented
  values, not private ones; a card that says "public" no longer fails.
- health.sh: a refused set_artifact_sharing at a changed key records the
  failure and returns, so the old public link is not marked as published.
- Docs: every publish enumeration names restricted too (trends, benchmark,
  runbook, health, manifest, onboarding).
- health.sh keeps agent_viewers, the people it gave the dashboard under
  restricted. Under private or off they are removed again; the owner's
  people stay. An answer with no visibility under private is set private.
- A guide publishes only in a round of its PR, so guides of finished PRs
  kept their public link after review_guide became private or off. The
  audit check guide_visibility lists them, the audit run makes each one
  private or restricted, and `review-pr.sh guide-sharing` rewrites the
  history marker, so no review, nudge or report links the page again.
A missing review_guide, audit_trend, survey_report or benchmark_report
published public pages for a private repository until the operator
answered. Now such a key reads as private unless the target repository
is public. preflight.sh reads the visibility once an hour into
work/repo.json (it was work/desk/repo.json, daily, Desk only) and keeps
the last value on an unreadable answer; nothing read yet means private.
The interface card stays public and the health dashboard stays off. The
Desk shows the same defaults.
@xjacka xjacka added code-guardian:rereview Request a code-guardian delta re-review code-guardian:automerge Request auto-merge by code-guardian labels Dec 3, 2026

@dam-code-protector dam-code-protector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛡️ Code Guardian - Code guardian repo — ⚠️ Code Review @ b832274

PR #328: feat: every published page is public, restricted, private or off (15.6.0)

Author: xjacka | Branch: claude/dam-artifacts-sso-gating-24e507 → main | Changes: +947 −225 (35 files)

Summary

This PR gives every published page a visibility value: public, restricted, private or off, with a new review_guide key. The fix commits make a missing key private unless the repository is public. They also remove the people the agent added when a restricted page's key narrows.
Limits: 2 skill(s) did not run: issue-fit, react-ui-engineering. the diff is more than 2000 lines — the review covers the most critical files.

Changes since last review

Previous HEAD: 687f281 (2026-12-03T15:29:13Z) — verdict COMMENT

  • ✅ Fixed: new value words missing from the manifest privacy list (scripts/lib/common.sh:198)
  • ✅ Fixed: a failed sharing call reads as a published page (scripts/health.sh:443)
  • ✅ Fixed: restricted missing from three publish enumerations (docs/trends.md:38)
  • 🆕 New: off leaves a restricted page restricted but reports it private (scripts/health.sh:478)
  • 🆕 New: the sample CONFIG.md still says public (default) after the default change (ONBOARDING.md:606)

Findings

  • 🟡 Warning: off leaves a restricted page restricted but reports it private (scripts/health.sh:478)

Human Review Guide

📊 Visual guide for the human reviewer — whether a missing page key should read private, and how a narrowed key drops only the agent-added viewers (about 12 min)

Documentation Check (doc-drift)

✅ No findings.

TypeScript Engineering Review

✅ No findings.

Agent Engineering

  • 🟢 Suggestion: The sample CONFIG.md still says public (default). It also omits restricted, and the new default is private for a non-public repository (ONBOARDING.md:606, also 608, 616, 626 and README.md:156).

Verdict

COMMENT — one warning remains: the off path reports a restricted page as private.

For the human reviewer

The PR now decides a page's audience from its key and the repository's visibility. When the key changes, a restricted page stays restricted, and only the people the agent added lose access. Decide whether the operator should be told that a page is still restricted, not private, after the key becomes off.


Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi

Comment thread scripts/health.sh Resolved
@dam-code-protector dam-code-protector Bot removed the code-guardian:rereview Request a code-guardian delta re-review label Dec 3, 2026
…onfig names every value

health.sh retract returned status private when the page stayed
restricted. It now returns the page's real visibility, and the monitor
logs that the agent's viewers were removed. The sample CONFIG.md and the
README key rows now name restricted and the new default.
@xjacka xjacka added the code-guardian:rereview Request a code-guardian delta re-review label Dec 3, 2026

@dam-code-protector dam-code-protector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🛡️ Code Guardian - Code guardian repo — ✅ Code Review @ dfa2587

PR #328: feat: every published page is public, restricted, private or off (15.6.0)

Author: xjacka | Branch: claude/dam-artifacts-sso-gating-24e507 → main | Changes: +954 −225 (35 files)

Summary

This PR gives every published page one visibility value: public, restricted, private or off. The two fix commits settle the prior findings on the off path and on the sample configuration.
Limits: 3 skill(s) did not run: issue-fit, typescript-engineering, react-ui-engineering. the diff is more than 2000 lines — the review covers the most critical files.

Changes since last review

Previous HEAD: b832274 (2026-12-03T20:39:00Z) — verdict COMMENT

  • ✅ Fixed: off leaves a restricted page restricted but reports it private (scripts/health.sh:478)
  • ✅ Fixed: the sample CONFIG.md still says public (default) after the default change (ONBOARDING.md:606)
  • 🔎 Missed earlier: three texts still name fewer than four visibility values (scripts/review-pr.sh:197) — present at b832274

Findings

No new findings at this HEAD.

Human Review Guide

📊 Visual guide for the human reviewer — at b832274: the two fix commits settle the prior findings and change no decision the page shows

Documentation Check (doc-drift)

✅ No findings.

Agent Engineering

  • 🟢 Suggestion: This text was present at b832274; the previous review did not report it. The review_guide comment, the ONBOARDING.md count and the audit remedy still name fewer than four visibility values (scripts/review-pr.sh:197; also ONBOARDING.md:440 and scripts/preflight.sh:2450).

Verdict

APPROVE — the two open findings are fixed, and only a documentation gap remains.


Review by Code Guardian - Code guardian repo · automated code guardian · cb/rits/deepseek-ai/DeepSeek-V4.1-Flash-1017 on pi

@dam-code-protector dam-code-protector Bot removed the code-guardian:rereview Request a code-guardian delta re-review label Dec 3, 2026
@xjacka
xjacka merged commit 7443e7b into main Dec 3, 2026
3 checks passed
@xjacka
xjacka deleted the claude/dam-artifacts-sso-gating-24e507 branch December 3, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-guardian:automerge Request auto-merge by code-guardian

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant