You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Clearfolio's protected-branch review governance deterministic and auditable instead of relying on an implicit or manually discovered reviewer path. A buyer, maintainer, or automation must be able to determine who is eligible to provide a qualifying independent review, how that reviewer is requested, and which exact-head review evidence satisfies the repository's live merge policy without manufacturing approval.
Fresh evidence — 2026-08-10
Protected main is 83ec6f7fe2b04bdcd28bf98ec350e41e55730a18.
Current protected-main docs/repository-metadata.md still records Explicit CODEOWNERS set to transfer team as incomplete. Repository code search does not expose a current CODEOWNERS file.
Three independent Ready/mergeable lanes illustrate the operational gap:
fix(openapi): align buyer contract license metadata #316 exact head b6d79bce1cbbcc34e2743891788d96d40ab42d87: exact-head CI, Security Scan, SAST Semgrep, and fuzz successful; review threads resolved/outdated; no qualifying approval.
Auto-merge is enabled on all three through ordinary repository protection so no branch-protection requirement is bypassed.
Empirical protection proof
After revalidating #316's unchanged exact head and exact-head gates, the normal GitHub merge endpoint was invoked with expected_head_sha=b6d79bce1cbbcc34e2743891788d96d40ab42d87. GitHub rejected the merge with HTTP 405:
At least 1 approving review is required by reviewers with write access.
This proves one approving review from a reviewer GitHub counts as write-authorized is a live protected-merge requirement.
Current reviewer eligibility — central authority resolves the ambiguity
The ordinary request-reviewers API for opencode-agent returned HTTP 422 because it is not an ordinary collaborator. A fresh repository permission probe independently reports collaborator permission none for opencode-agent; the cwl-noema-review mention identity does not expose qualifying repository write permission.
More importantly, the organization-owned governance authority ContextualWisdomLab/.github#772 explicitly records the current CWL separation-of-duties contract:
opencode-agent, cwl-noema-review, and coderabbitai are advisory reviewers and do not have repository write permission that GitHub counts for protected-branch approval;
author self-review is non-independent;
the durable target design is an independent-reviewers human team with at least two non-author maintainers and the minimum permission GitHub counts, plus CODEOWNERS/reviewer assignment and reviewer-availability evidence;
automated reviewers must remain read-only/advisory and must not receive broad contents-write authority merely to manufacture approval.
Therefore the earlier hypothesis that a central OpenCode/Noema formal APPROVED review might itself satisfy Clearfolio's write-authorized review rule is now falsified by the central governance contract. Historical PR #107 proves OpenCode can submit a formal review object, but that object is advisory for the protected-review separation-of-duties gate.
Review-delivery control plane is also currently under repair
The central trusted-comment mention route remains useful for advisory exact-head source review, but it is not the counted human-approval route. Fresh central state also shows .github PR #911 repairing a separate live delivery defect: GitHub repository_dispatch.client_payload permits at most ten top-level properties, while the protected-main OpenCode router→wrapper hop carried fourteen. #911 rebuilds that repair on current central main and remains Draft pending its own gates. Thus absence of a current OpenCode queue receipt must not be misclassified as a Clearfolio source defect.
Current exact-head @opencode-agent / @cwl-noema-review invocations on #270/#305/#316 remain advisory review probes only. They do not substitute for the counted human review required by the merge rule.
Required governance contract
Preserve the observed Clearfolio merge rule: at least one approving review from a reviewer with permission GitHub counts as write-authorized.
Adopt the organization-level solution from .github#772 rather than granting write authority to advisory bots: an eligible independent human team with backup coverage and minimum counted permission.
Add/update CODEOWNERS or another explicit reviewer-assignment route using verified eligible human/team identities. Do not invent a team slug or reviewer before organization governance creates/verifies it.
Keep OpenCode, Noema, CodeRabbit, GHAS and other automation evidence separate and advisory; they may discover defects but cannot satisfy the counted-human gate by inference.
Keep exact-head review identity separate from source-head checks, statuses, model judgments, synthetic-merge evidence, and protected-main runtime evidence.
Preserve stale-review/dismissal behavior and revalidate approving permission/head immediately before merge.
Keep expected-head-safe auto-merge enabled only through normal protection; no bypass or review-count reduction.
Test / acceptance
Repository governance docs/tests reflect the observed 1 approving review by a reviewer with write access rule.
Negative evidence is preserved: author self-review does not qualify; opencode-agent ordinary review request is 422/non-collaborator; advisory bots do not have counted write permission.
Organization governance provides at least two non-author human identities with minimum counted repository permission through an independent-reviewer team or equivalent reviewed mechanism.
A dry-run/current clean PR proves an eligible independent human approval changes the live protection decision while advisory bot review alone does not.
A post-approval commit proves stale approval is dismissed/invalidated according to live policy.
Reviewer permission removal/loss fails closed with an actionable governance blocker.
CODEOWNERS/reviewer assignment, backup/leave/offboarding, exact-head identity and permission snapshot are documented and auditable.
docs/repository-metadata.md, canonical traceability/governance, and operator guidance are reconciled after the organization route is actually provisioned.
No branch protection, required check, security gate, or review count is weakened merely to merge work.
Dependency / scope
This issue is the Clearfolio leaf view of organization governance issue ContextualWisdomLab/.github#772. .github is read-only to the Clearfolio writer loop. Do not duplicate the central human-team provisioning or grant bots write permission here.
#270/#305/#316 are technically clean candidates whose merges remain locally deferred on the counted-human gate; their auto-merge configuration preserves every normal protection requirement. While organization governance is unresolved, continue every other safe Clearfolio product/security/reliability lane.
Buyer / acquisition outcome
Make Clearfolio's protected-branch review governance deterministic and auditable instead of relying on an implicit or manually discovered reviewer path. A buyer, maintainer, or automation must be able to determine who is eligible to provide a qualifying independent review, how that reviewer is requested, and which exact-head review evidence satisfies the repository's live merge policy without manufacturing approval.
Fresh evidence — 2026-08-10
Protected
mainis83ec6f7fe2b04bdcd28bf98ec350e41e55730a18.Current protected-main
docs/repository-metadata.mdstill recordsExplicit CODEOWNERS set to transfer teamas incomplete. Repository code search does not expose a current CODEOWNERS file.Three independent Ready/mergeable lanes illustrate the operational gap:
63cdc36b926af8fd03a1ec689a1a6d5d800b8248: exact-head CI, Security Scan, SAST Semgrep, and fuzz successful; review threads resolved/outdated; no qualifying approval.5bbe979a256f4f19ba8a416a3f5fdd3e01305dd5: exact-head CI, Security Scan, and SAST Semgrep successful; review threads resolved; no qualifying approval.b6d79bce1cbbcc34e2743891788d96d40ab42d87: exact-head CI, Security Scan, SAST Semgrep, and fuzz successful; review threads resolved/outdated; no qualifying approval.Auto-merge is enabled on all three through ordinary repository protection so no branch-protection requirement is bypassed.
Empirical protection proof
After revalidating #316's unchanged exact head and exact-head gates, the normal GitHub merge endpoint was invoked with
expected_head_sha=b6d79bce1cbbcc34e2743891788d96d40ab42d87. GitHub rejected the merge with HTTP 405:This proves one approving review from a reviewer GitHub counts as write-authorized is a live protected-merge requirement.
Current reviewer eligibility — central authority resolves the ambiguity
The ordinary
request-reviewersAPI foropencode-agentreturned HTTP 422 because it is not an ordinary collaborator. A fresh repository permission probe independently reports collaborator permissionnoneforopencode-agent; thecwl-noema-reviewmention identity does not expose qualifying repository write permission.More importantly, the organization-owned governance authority
ContextualWisdomLab/.github#772explicitly records the current CWL separation-of-duties contract:opencode-agent,cwl-noema-review, andcoderabbitaiare advisory reviewers and do not have repository write permission that GitHub counts for protected-branch approval;independent-reviewershuman team with at least two non-author maintainers and the minimum permission GitHub counts, plus CODEOWNERS/reviewer assignment and reviewer-availability evidence;Therefore the earlier hypothesis that a central OpenCode/Noema formal
APPROVEDreview might itself satisfy Clearfolio's write-authorized review rule is now falsified by the central governance contract. Historical PR #107 proves OpenCode can submit a formal review object, but that object is advisory for the protected-review separation-of-duties gate.Review-delivery control plane is also currently under repair
The central trusted-comment mention route remains useful for advisory exact-head source review, but it is not the counted human-approval route. Fresh central state also shows
.githubPR #911 repairing a separate live delivery defect: GitHubrepository_dispatch.client_payloadpermits at most ten top-level properties, while the protected-main OpenCode router→wrapper hop carried fourteen. #911 rebuilds that repair on current central main and remains Draft pending its own gates. Thus absence of a current OpenCode queue receipt must not be misclassified as a Clearfolio source defect.Current exact-head
@opencode-agent/@cwl-noema-reviewinvocations on #270/#305/#316 remain advisory review probes only. They do not substitute for the counted human review required by the merge rule.Required governance contract
.github#772rather than granting write authority to advisory bots: an eligible independent human team with backup coverage and minimum counted permission.Test / acceptance
1 approving review by a reviewer with write accessrule.opencode-agentordinary review request is 422/non-collaborator; advisory bots do not have counted write permission.docs/repository-metadata.md, canonical traceability/governance, and operator guidance are reconciled after the organization route is actually provisioned.Dependency / scope
This issue is the Clearfolio leaf view of organization governance issue
ContextualWisdomLab/.github#772..githubis read-only to the Clearfolio writer loop. Do not duplicate the central human-team provisioning or grant bots write permission here.#270/#305/#316 are technically clean candidates whose merges remain locally deferred on the counted-human gate; their auto-merge configuration preserves every normal protection requirement. While organization governance is unresolved, continue every other safe Clearfolio product/security/reliability lane.