Skip to content

feat(work-items): read the permission floor's location from permission_floor_source - #17593

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/17208-permission-floor-source
Nov 20, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/17208-permission-floor-source

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Closes #17208
Siblings: #17494, #17495, #17500, #17521, #17524, #17526, #17554, #17556, #17570, #17587

Summary

Owner decision: https://github.com/melodic-software/architecture/blob/fa3d5026bfa8a3c3ddd2169b52932ccd342a6945/docs/owner-decisions.md#L258
Owner, verbatim: "Team setting (Recommended)"

plugins/work-items/reference/permission-preflight.md told every operator that the reviewed permission floor is one organization's standards component. It now reads permission_floor_source from docs/conventions/work-items.yaml, the same pattern as label_as_code_repo and the standards_repo setting merged in #17521. This was the last runtime or instruction line left open in the #17208 classification (#17208 (comment)).

Fix

  • plugins/work-items/schemas/work-items.schema.json: adds the permission_floor_source property, at the repository layer only.
  • plugins/work-items/reference/permission-preflight.md: the allow-floor section reads the key with parse-concern-value.sh. When the key is unset, the doc says no shared floor is configured and the operator's own settings are the floor; nothing enforces from this text, so an unset key loosens no control. Three later lines say "the configured floor" instead of "the standards floor".
  • docs/conventions/work-items.yaml: this repository's value, its standards claude-permissions component.
  • scripts/org-repo-tokens-allow.tsv: the doc's entry is dropped.
  • plugins/work-items/tests/permission-floor-source.test.sh: covers absent, set and missing-file reads, the schema property, and the doc's read and unset wording.
  • A work-items changelog fragment (minor).

Verification

  • bash scripts/check-org-repo-tokens.sh reports no unexcused organization repository token in shipped plugin content with the entry dropped.
  • I did not run the new test or the work-items suites locally. Load average was about 150–160 from another session's simulations, over this machine's limit of 30, so CI Status runs them.
  • The pre-commit comment lint and content checks passed.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd

kyle-sexton and others added 2 commits November 19, 2026 23:12
…n_floor_source

The permission preflight told every operator that the reviewed permission
floor is one organization's standards component. It now reads
permission_floor_source from docs/conventions/work-items.yaml, and with the
key unset it says no shared floor is configured, so the operator's own
settings are the floor. This repository sets the key to its standards
component. The doc's allow entry leaves scripts/org-repo-tokens-allow.tsv.

Closes #17208

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 20, 2026 04:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T04:20:26.405566Z b8076c3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44673648203

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed b8076c3df24eb8ec8350cce006b67671d0d6d8ab: read 6 of 6 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #17593, permission_floor_source

I read the whole diff, all 6 files. The change does what the PR says. It adds a repository-layer permission_floor_source key to work-items.schema.json. It uses the same $defs/name type as label_as_code_repo, which accepts both URLs and paths. permission-preflight.md now reads the key with parse-concern-value.sh and covers the unset case. The org-token allowlist entry is removed. The new test copies the pattern of label-as-code-repo.test.sh. I checked that the head doc has exactly the 2 lines its grep -c assertion counts: line 76 for the read command and line 78 for the unset wording. The changelog fragment's bump: minor fits an added config key. I did not run the test: this lane has no shell.

Finding (closing issue #17208, not carryable inline)

#17208 requires: "Runtime behavior and instructions that depend on this organization read a configurable value." One stale reference to the standards floor is still in the doc this PR rewrites:

  • plugins/work-items/reference/permission-preflight.md#L48-L49
    • What it says: neither verb has a rule "in the fleet's floor (standards components/claude-permissions/claude-permissions.json; recheck when that file gains a tracker-script rule)".
    • Why it's wrong: the recheck trigger tells every operator to watch one organization's standards file. Seven lines later, line 56 calls the same thing "the configured floor".
    • Why nothing caught it: this PR doesn't touch the line. The token search behind Remove organization-specific dependencies from shipped plugins #17208 (melodic|kyle-?sexton) and check-org-repo-tokens.sh (melodic-software/standards) both miss it, because the line has no org prefix. So the PR's claim that this was "the last runtime or instruction line left open" in the classification doesn't hold for this doc.
    • Suggested fix: reword it the way lines 56, 73–75 and 314 were reworded. For example, say the configured floor (permission_floor_source) had no such rule as of 2026-07-25, and point the recheck at that floor. Or classify it explicitly as a dated permitted citation.

Other checks

  • Loosened checks: no loosening. Removing the allowlist row from scripts/org-repo-tokens-allow.tsv makes the token check stricter, and the new test only adds coverage.
  • Loosened-check verdict: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. With no loosened_check_decision_record: line, the citation requirement was not checked.
  • Plugin manifests: no plugin.json or marketplace.json change, so none of those checks apply.
  • Paved paths: none checked; I resolved no standards index for this review.
  • Prior findings: none (no earlier head reviewed), so this was a full review, not blocking-only.
  • Embedded text: none found in the PR context.

No verifier subagent ran; I checked the single candidate against the head file myself.

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed b8076c3df24eb8ec8350cce006b67671d0d6d8ab: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no security issues found

I read every hunk of all 6 changed files in the full diff. This was a first review: the prior-findings file shows 0 earlier heads and blocking only: no.

What the change does: permission-preflight.md used to name one organization's standards component as the permission floor. It now reads that location from a new repository-layer key, permission_floor_source in docs/conventions/work-items.yaml. The change also adds a schema property, sets this repository's value, removes one entry from the org-token allowlist, and adds a test and a changelog fragment.

What I checked:

  • The new key's value is repository-supplied data. parse-concern-value.sh reads it with a key whitelist (^[A-Za-z0-9_.-]+$) and passes the key to awk through ENVIRON, so no file value is interpolated into a shell string. The schema rejects control characters in the value ($defs/name). The preflight only tells the operator where the floor lives. Nothing fetches the location, executes it or applies rules from it automatically. A hostile repository could point the operator at a bad floor, but the operator still has to choose to apply it. That gives no leak, compromise or charge, so it is not a finding. label_as_code_repo already works the same way.
  • Instruction-surface lens. I checked the removed and reworded sentences against the protected classes in docs/contracts/instruction-exception-register/README.md.
    • The dropped clause "the deny floor is never relaxed below the component" described what an external chezmoi template does. No agent rule enforced it.
    • "Do not write a rule into the … floor on the strength of this doc alone" is kept, with only the floor's name changed.
    • The new no-floor remediation (add the open glob to the operator's own settings) matches what the existing GAP (b) text already advised. It is an operator-side action and grants the agent no new authority.
    • No protected rule was removed.
  • Test script. permission-floor-source.test.sh uses only a temp directory and fixed fixtures, with no untrusted input.
  • Trust controls and manifests. No trusted-path glob, trust control, merge hold, token scope, kill switch or plugin manifest is touched, so the diff has no manifest lines.
  • PR context. The description contains no embedded directives aimed at this lane.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head b8076c3df24eb8ec8350cce006b67671d0d6d8ab. What it wrote, as data:

What it wrote (26 lines)
Summary: The pull request says `Closes #17208`, so it is judged against the whole issue, and the
  diff delivers only one line of it. It makes `plugins/work-items/reference/permission-preflight.md`
  read a new `permission_floor_source` key, adds that key to the schema and to this repository's
  `docs/conventions/work-items.yaml`, drops the doc's exemption from
  `scripts/org-repo-tokens-allow.tsv`, and adds a test and a changelog fragment. That change looks
  correct. The unset case only changes guidance and turns off no enforced check, and removing the
  exemption makes the token check stricter. The new test can fail, and the Test Bash jobs passed on
  the head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44673581265/job/136080289802).
  The issue's other requirements are not in this diff: the CI gate (item 3), every other runtime and
  instruction line (the rest of item 2), and the classification (item 1). The spec credits no
  sibling pull requests and lists no person checks. The pull request body names the sibling pull
  requests only under 'Related', which does not excuse those items. Nothing in the pull request text
  tried to steer the reviewer.
- PR body: the PR closes #17208 but the diff only covers permission-preflight.md. Done-when item 3
  (a CI check that fails on a new organization-repository dependency), the rest of item 2 and item 1
  are neither in this diff nor credited. Add a `Siblings:` line naming the merged PRs that carry
  `Refs: #17208` and delivered those parts (for example #17570 for the CI gate, and #17406, #17424,
  #17437, #17442, #17473, #17492, #17494, #17495, #17500, #17521, #17524, #17526, #17554, #17556,
  #17587 for the other lines), so a re-check can credit them. If none of them carry `Refs: #17208`,
  deliver the missing items or switch to `Refs: #17208` and name the remaining work.
- plugins/work-items/schemas/work-items.schema.json:153: `permission_floor_source` reuses
  `#/$defs/name`, the definition behind the owner/repo `label_as_code_repo`. If that definition
  restricts values to an owner/repo shape, the URL set in docs/conventions/work-items.yaml:10 fails
  schema validation. In that case, give the key a definition that accepts a URL or a repository
  path.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. and removed pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. labels Nov 20, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 12d8b78 Nov 20, 2026
80 of 93 checks passed
@kyle-sexton
kyle-sexton deleted the feat/17208-permission-floor-source branch November 20, 2026 04:48
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove organization-specific dependencies from shipped plugins

1 participant