[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MRY844Y0WSVGRAE46WTV4":3,"skill-same:01M75MRY844Y0WSVGRAE46WTV4":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75MRY844Y0WSVGRAE46WTV4","portfolio-delivery-control",null,"Check a multi-project delivery ledger deterministically at coordinator wakeups, directive intake, worker admission, review readiness, and witness follow-through. Use when projects disappear, ready work ages, evidence conflicts, or parallel work becomes serial. Composes maintained transport and review mechanisms without adding supervisors.","selamy-labs\u002Fagent-skills","selamy-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287832944?v=4","01M75MDKJ0CKAM94KZ7TWQJM5Q","01M75MDKJNP3TATHAW1MX1FWM6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: portfolio-delivery-control\ndescription: Check a multi-project delivery ledger deterministically at coordinator wakeups, directive intake, worker admission, review readiness, and witness follow-through. Use when projects disappear, ready work ages, evidence conflicts, or parallel work becomes serial. Composes maintained transport and review mechanisms without adding supervisors.\n---\n\n# Portfolio delivery control\n\nRequires Python 3.10+, local JSON control records, and installed transport\u002Freview helpers. No third-party Python dependencies.\n\nUse one current work ledger and a short deterministic report to make omissions visible. The coordinator still decides decomposition and priority. A report is an inspection of recorded evidence, not proof that the evidence is true or permission to act.\n\n## Run before deciding\n\nRun the bundled script with the absolute control directory and policy selected by primary authority:\n\n```sh\npython3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fpreflight.py \\\n  --control-dir \u002Fabsolute\u002Fcontrol --policy \u002Fabsolute\u002Fcontrol\u002Fdelivery-policy.json \\\n  --format json\n```\n\nUse `--compact` to emit a bounded, agent-friendly projection (>70% byte reduction) containing ready projects, time-critical blockers, pending intake, and aggregated control gaps. Use `--pane-capture-file \u003Cpath>` for deterministic one-shot derivation of queued dispatches from a captured tmux pane (captured with `tmux capture-pane -p -J`). Use `--format markdown` for human-readable reports including audit summary counts.\n\nExit 0 means the recorded structural checks pass, 1 means attention is needed, and 2 means input\u002Fschema errors. Preserve the output and its source digest with the coordinator's checkpoint. Never manufacture missing records to obtain green output. Run once per existing coordinator\u002Fwitness tick and after a material state transition, not after every tool call.\n\nThe script reads `coordinator-status.json`, `local-actions.json`, and an optional results file. The normalized current view lives in `coordinator-status.json.delivery_control`; see [the contract](references\u002Fcontract.md). Existing historical records remain historical. Do not create an independently maintained CSV or spreadsheet. A human-readable export can be generated from the same report.\n\n## Executable workflow management layer (`workflow.py`)\n\nA focused, deterministic, zero-daemon executable workflow-management module `skills\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py` (callable via subcommands `admit`, `claim`, `record-implementation`, `record-review`, `execute-transition` or direct Python API) mutates and transitions work items under an exclusive `flock` on the control directory lockfile (`.workflow.lock`).\n\n### Operations and Subcommands\n\n1. **`admit` (`admit_work`)**:\n   - Admit and deduplicate real work from GitHub issues or SpecKit `tasks.md` entries under exclusive lock.\n   - Binds a stable `work_id` to `project`, `repository`, immutable `task_id`, `spec_path` (verifying task exists in spec when present), `base_sha` (40-hex SHA), initial stage `admitted`, `prerequisites`, `required_completion_action` (`push`, `publish_pr`, or `merge_pr`; default `\"merge_pr\"`), and `approval_ref` (`path:sha256`).\n   - Validates live approval file on disk: Resolves directive file path, calculates live SHA-256 digest, checks for revocation\u002Fwithdrawal markers (`WITHDRAWN`, `REVOKED`, `DO NOT PUBLISH`, `\"status\": \"withdrawn\"`), and verifies hash match before admitting.\n   - Refuses before mutation on duplicate work ID (`DUPLICATE_WORK_ID`), malformed base SHA (`INVALID_BASE_SHA`), missing spec task (`MISSING_SPEC_TASK`), absent\u002Finvalid approval (`ABSENT_APPROVAL`, `MISSING_APPROVAL`), stale approval hash (`STALE_APPROVAL`), or withdrawn approval (`APPROVAL_WITHDRAWN`), writing a durable refusal receipt to `\u003Ccontrol-dir>\u002Freceipts\u002Frefusal_\u003Cwork_id>_\u003Creason>.json`.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py admit \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --project project-name \\\n       --repository owner\u002Frepo \\\n       --task-id TASK-001 \\\n       --base-sha 0123456789abcdef0123456789abcdef01234567 \\\n       --approval-ref \u002Fpath\u002Fto\u002Fdirective.md \\\n       --approval-sha256 \u003Csha256> \\\n       --required-completion-action merge_pr \\\n       --spec-path \u002Fpath\u002Fto\u002Ftasks.md\n     ```\n\n2. **`claim` (`claim_work`)**:\n   - Atomically claims admitted work with `owner` (session\u002Flane ID), verified `worktree`, path scope (`write_paths`), generated cryptographic `claim_token`, and TTL-based expiration `expires_at`.\n   - Pre-effect refusals:\n     - `WRITER_CONFLICT`: Reused active session holding a claim on another active work item (\"a reused session cannot count as two simultaneous writers\").\n     - `COMPETING_ACTIVE_CLAIM`: Overlapping claim on work ID or intersecting write paths.\n     - `SCOPE_ESCAPE`: Worktree or write paths outside allowed roots or intersecting protected directories (`skills\u002Fportfolio-delivery-control`).\n     - `UNMET_PREREQUISITES`: Incomplete prerequisite work items.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py claim \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --owner lane-session-1 \\\n       --worktree \u002Fpath\u002Fto\u002Fworktree \\\n       --write-paths src\u002Fmodule\u002F \\\n       --allowed-roots \u002Fpath\u002Fto\u002Fworkspace \\\n       --ttl-seconds 7200\n     ```\n\n3. **`record-implementation` (`record_implementation`)**:\n   - Binds implementation round, commit SHA, tree SHA, parent SHA, patch\u002Fbundle\u002Freceipt artifacts, and gate results (`test_exit_code == 0`) to an active claim.\n   - Verifies the live git repository at `worktree` (`git rev-parse HEAD`, `git rev-parse HEAD^{tree}`, `git rev-parse HEAD^`, `git rev-list --count base_sha..HEAD`, and commit identity `selamy-labs-bot`).\n   - Refuses on git mismatches (`HEAD_MISMATCH`, `TREE_MISMATCH`, `BASE_SHA_DRIFT`, `NON_SINGLE_COMMIT_RANGE`, `INVALID_COMMIT_IDENTITY`), artifact hash mismatches (`ARTIFACT_HASH_MISMATCH`), or missing mandatory gates (`MISSING_MANDATORY_GATE`).\n   - Automatically invalidates prior reviews and transitions if `commit_sha` or `tree_sha` differs from previous candidate revision.\n   - Advances stage to `review` and records durable implementation receipt.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py record-implementation \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --owner lane-session-1 \\\n       --claim-token \u003Ctoken> \\\n       --round 1 \\\n       --commit-sha \u003C40-hex> \\\n       --tree-sha \u003C40-hex> \\\n       --parent-sha \u003C40-hex> \\\n       --gate-results '{\"test_exit_code\": 0}'\n     ```\n\n4. **`record-review` (`record_review`)**:\n   - Binds an independent review report (`reviewer_id`, `model`, `family` in `argon`, `opus`, `sol`, `session_id`, `verdict` in `SHIP`, `REVISE`, `report_path`, `report_sha256`) to the candidate.\n   - Enforces strict reviewer provenance: Refuses unattributed reports lacking non-empty model or reviewer attestation (`REPORT_IDENTITY_MISMATCH`).\n   - Refuses duplicate report reuse across reviewers on the current revision (`REPORT_IDENTITY_MISMATCH`).\n   - Enforces embedded self-review refusal: Inspects report tokens (`session`, `session_id`, `conversationId`, `authorModel`, `reviewer`, `model`, `dispatch`, `attestation`) against implementer identity, claim owner, candidate model, and flash models (`SELF_REVIEW_FORBIDDEN`).\n   - Verifies embedded reviewer consistency against caller session, reviewer, account, and dispatch (`REPORT_IDENTITY_MISMATCH`).\n   - Validates report file SHA-256 and verified commit\u002Ftree match candidate.\n   - Refuses forbidden models (`claude-fable-5-1`), duplicate reviewer family\u002Fsession per round, or revision drift.\n   - `REVISE` verdict reverts stage to `implementing` with `remediation_required: true` and records actionable defect IDs.\n   - 3 distinct reviewer families (`argon`, `opus`, `sol`) and 3 distinct sessions with `SHIP` marks candidate `qualified: true`.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py record-review \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --reviewer-id rev-opus \\\n       --model claude-3-7-sonnet \\\n       --family opus \\\n       --session-id sess-rev-1 \\\n       --verdict SHIP \\\n       --report-path \u002Fpath\u002Fto\u002Freport.json \\\n       --report-sha256 \u003Csha256>\n     ```\n\n5. **`execute-transition` (`execute_transition`)**:\n   - Executes guarded side effects (`push`, `publish_pr`, `merge_pr`, `complete_spec_task`) through maintained helpers with provider reconciliation.\n   - Pre-effect guards: Validates claim freshness, live git revision matching qualified candidate, 3 unanimous `SHIP` reviews, mandatory gates, live primary operator approval verification on disk (checking hash match and absence of withdrawal markers), exact-head CI, and approved bot identity (for `merge_pr`).\n   - Provider-authoritative merge CI: Evaluates `provider_checks` (`statusCheckRollup` from `gh pr view`). Requires non-empty, green rollup (`MISSING_EXACT_HEAD_CI`). Caller `ci_checks` cannot override provider CI and must explicitly match `commit_sha`.\n   - Provider actor identity verification: Calls `gh api user` and enforces actor identity matching `ALLOWED_MERGE_IDENTITIES` (`selamy-labs-bot`), refusing unauthorized human\u002Fbot actors with `DISALLOWED_MERGE_IDENTITY`.\n   - Already-merged reconciliation verification: Verifies `headRefOid == commit_sha` and valid provider CI before returning reconciled success, recording `merge_commit_sha`.\n   - Revision-bound transitions: Requires prior transitions matching `required_completion_action` bound to the current candidate commit and tree (`MISSING_TRANSITION_EVIDENCE`).\n   - Updates `coordinator-status.json` with truthful CI\u002Fbranch protection projection and writes durable transition receipts.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py execute-transition \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --action push \\\n       --claim-token \u003Ctoken> \\\n       --branch feat\u002Fmy-branch\n     ```\n\n## Resolve the report\n\n1. **Coverage:** Every primary-authorized project has an owner, next action, current stage, dated progress evidence, or an explicit blocker\u002Fwait. Priority for one foundation does not remove other projects. Unresolved product scope can advance through a bounded discovery artifact; it does not authorize invented implementations or deployments. Legacy entries are projected with RFC 6901 source pointers, canonical SHA-256 digests, and verified fact age.\n2. **Intake:** Read new primary directives, reconcile superseded instructions, record their exact file hashes, and verify actual application. A hash proves which file was read, not compliance. Keep a compact current checkpoint with the next consequential decisions.\n3. **Parallelism:** Admit independent ready slices using available authorized implementation and review capacity. Give each writer a verified worktree and path scope. Stage transition guards enforce strict admission keys, claim fencing (`claim_token`), and distinct reviewer model roles. Keep review\u002Fintegration capacity available. Count advancing artifacts and stage transitions, not session names or idle processes. Preserve valid long waits and advancing work.\n4. **Evidence:** Distinguish implementation, review, push, protected merge, green post-merge CI, artifact publication, and hosted validation. A fresh root timestamp does not refresh old nested facts. Bind review and CI receipts to the exact revision; verify live state before an irreversible action.\n5. **Follow-through:** For each nudge, record the cause, expected next observable result, owner and recheck time. Recheck action\u002Fresult, not just acknowledgement. Stop repeating a nudge already queued or being handled.\n\n6. **Quality coverage:** Reconcile every `required_controls` entry to each project's `controls` record. Read the canonical definition, check applicable repository enforcement and exact-revision evidence, and retain an owned next task for gaps. A checked box, hook configuration or self-reported status is insufficient proof. Preserve both successful execution and meaningful rejection evidence where the baseline requires them. Use narrow justified non-applicability, never blanket exemptions.\n\nTreat unrelated deficits independently. A missing project row should prompt admission\u002Freconciliation, not halt an unrelated productive worker. Missing authorization or failed prerequisites block the specific action they govern. A passing preflight never grants cloud apply, paid execution, permission bypass, model access, merges outside primary approval, or secret\u002Fcustody changes.\n\n## Compose maintained mechanisms\n\nUse the installed versions of these skills rather than reimplementing their mechanisms:\n\n- `low-level-executor-task-spec`: immutable task scope, allowed paths, acceptance criteria and evidence contract.\n- `orchestrate-agy`, `orchestrate-claude`, `orchestrate-codex`: installed-capability checks, safe execution, unique dispatch and verified read.\n- `pr-ci-shepherding` \u002F `github-pr-shepherding`: exact-revision review, required checks and protected landing.\n- `verify-from-system-of-record` \u002F `verify-real-artifact`: verify claims against repository\u002Fprovider evidence.\n- `loop-governance-and-learning`: turn repeated failures into regression cases for this preflight or the owning repository gate.\n\nKeep composition shallow: preflight → bounded decision → maintained action helper → independent verification → checkpoint. No recursive supervisors, self-spawning skills, extra schedules, or general command-string security parser.\n\n## Primary roles and safeguards\n\nRead the current policy rather than assuming roles from a historical status field. The coordinator owns admission and integration, the witness observes the coordinator, and admitted workers implement or remediate. Current primary policy selects the implementation model and independent reviewer roles for each exact revision. A coauthor trailer, audit or model nickname alone does not establish implementation provenance.\n\nUse the existing coordinator input lock and a single-line directive-file pointer. If any relevant input is queued, the lock is busy, or a helper result is ambiguous, inspect the same dispatch and defer new input. Do not re-paste. Preserve the same conversation when recovering.\n\nNo script here dispatches workers, starts timers, changes permissions, merges, deploys or mutates the ledger. Required server-side branch checks, restricted credentials, sandboxing and explicit live-apply approval remain independent boundaries.\n\n## Adoption and limits\n\nVerify four separate steps: tests pass; the installed harness discovers this skill; the current conversation actually invokes the script; observed project outcomes improve. Merely installing or reading it is not adoption.\n\nAntigravity documentation describes hooks, but the installed version is the contract. Before any hook enforcement, test discovery, payload, deny, malformed output, crash and timeout behavior in a harmless isolated probe. Do not install an untested hook on productive sessions or claim this read-only script prevents arbitrary bypasses. If hooks are unsupported, invoke explicitly from the existing wakeup contract and let the independent witness verify freshness.\n\n## Verify changes\n\n```sh\npython3 -m unittest discover -s \u002Fabsolute\u002Fportfolio-delivery-control\u002Ftests -v\n```\n\nKeep incident-based tests for missing collections, stale revisions, omitted projects, valid versus expired waits, conflicting writers, unsafe custody\u002Fpermissions, duplicate input and already-fulfilled actions. Test decisions and outputs, not source spelling or handwritten inventory counts.\n","# Portfolio delivery control\n\nRequires Python 3.10+, local JSON control records, and installed transport\u002Freview helpers. No third-party Python dependencies.\n\nUse one current work ledger and a short deterministic report to make omissions visible. The coordinator still decides decomposition and priority. A report is an inspection of recorded evidence, not proof that the evidence is true or permission to act.\n\n## Run before deciding\n\nRun the bundled script with the absolute control directory and policy selected by primary authority:\n\n```sh\npython3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fpreflight.py \\\n  --control-dir \u002Fabsolute\u002Fcontrol --policy \u002Fabsolute\u002Fcontrol\u002Fdelivery-policy.json \\\n  --format json\n```\n\nUse `--compact` to emit a bounded, agent-friendly projection (>70% byte reduction) containing ready projects, time-critical blockers, pending intake, and aggregated control gaps. Use `--pane-capture-file \u003Cpath>` for deterministic one-shot derivation of queued dispatches from a captured tmux pane (captured with `tmux capture-pane -p -J`). Use `--format markdown` for human-readable reports including audit summary counts.\n\nExit 0 means the recorded structural checks pass, 1 means attention is needed, and 2 means input\u002Fschema errors. Preserve the output and its source digest with the coordinator's checkpoint. Never manufacture missing records to obtain green output. Run once per existing coordinator\u002Fwitness tick and after a material state transition, not after every tool call.\n\nThe script reads `coordinator-status.json`, `local-actions.json`, and an optional results file. The normalized current view lives in `coordinator-status.json.delivery_control`; see [the contract](references\u002Fcontract.md). Existing historical records remain historical. Do not create an independently maintained CSV or spreadsheet. A human-readable export can be generated from the same report.\n\n## Executable workflow management layer (`workflow.py`)\n\nA focused, deterministic, zero-daemon executable workflow-management module `skills\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py` (callable via subcommands `admit`, `claim`, `record-implementation`, `record-review`, `execute-transition` or direct Python API) mutates and transitions work items under an exclusive `flock` on the control directory lockfile (`.workflow.lock`).\n\n### Operations and Subcommands\n\n1. **`admit` (`admit_work`)**:\n   - Admit and deduplicate real work from GitHub issues or SpecKit `tasks.md` entries under exclusive lock.\n   - Binds a stable `work_id` to `project`, `repository`, immutable `task_id`, `spec_path` (verifying task exists in spec when present), `base_sha` (40-hex SHA), initial stage `admitted`, `prerequisites`, `required_completion_action` (`push`, `publish_pr`, or `merge_pr`; default `\"merge_pr\"`), and `approval_ref` (`path:sha256`).\n   - Validates live approval file on disk: Resolves directive file path, calculates live SHA-256 digest, checks for revocation\u002Fwithdrawal markers (`WITHDRAWN`, `REVOKED`, `DO NOT PUBLISH`, `\"status\": \"withdrawn\"`), and verifies hash match before admitting.\n   - Refuses before mutation on duplicate work ID (`DUPLICATE_WORK_ID`), malformed base SHA (`INVALID_BASE_SHA`), missing spec task (`MISSING_SPEC_TASK`), absent\u002Finvalid approval (`ABSENT_APPROVAL`, `MISSING_APPROVAL`), stale approval hash (`STALE_APPROVAL`), or withdrawn approval (`APPROVAL_WITHDRAWN`), writing a durable refusal receipt to `\u003Ccontrol-dir>\u002Freceipts\u002Frefusal_\u003Cwork_id>_\u003Creason>.json`.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py admit \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --project project-name \\\n       --repository owner\u002Frepo \\\n       --task-id TASK-001 \\\n       --base-sha 0123456789abcdef0123456789abcdef01234567 \\\n       --approval-ref \u002Fpath\u002Fto\u002Fdirective.md \\\n       --approval-sha256 \u003Csha256> \\\n       --required-completion-action merge_pr \\\n       --spec-path \u002Fpath\u002Fto\u002Ftasks.md\n     ```\n\n2. **`claim` (`claim_work`)**:\n   - Atomically claims admitted work with `owner` (session\u002Flane ID), verified `worktree`, path scope (`write_paths`), generated cryptographic `claim_token`, and TTL-based expiration `expires_at`.\n   - Pre-effect refusals:\n     - `WRITER_CONFLICT`: Reused active session holding a claim on another active work item (\"a reused session cannot count as two simultaneous writers\").\n     - `COMPETING_ACTIVE_CLAIM`: Overlapping claim on work ID or intersecting write paths.\n     - `SCOPE_ESCAPE`: Worktree or write paths outside allowed roots or intersecting protected directories (`skills\u002Fportfolio-delivery-control`).\n     - `UNMET_PREREQUISITES`: Incomplete prerequisite work items.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py claim \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --owner lane-session-1 \\\n       --worktree \u002Fpath\u002Fto\u002Fworktree \\\n       --write-paths src\u002Fmodule\u002F \\\n       --allowed-roots \u002Fpath\u002Fto\u002Fworkspace \\\n       --ttl-seconds 7200\n     ```\n\n3. **`record-implementation` (`record_implementation`)**:\n   - Binds implementation round, commit SHA, tree SHA, parent SHA, patch\u002Fbundle\u002Freceipt artifacts, and gate results (`test_exit_code == 0`) to an active claim.\n   - Verifies the live git repository at `worktree` (`git rev-parse HEAD`, `git rev-parse HEAD^{tree}`, `git rev-parse HEAD^`, `git rev-list --count base_sha..HEAD`, and commit identity `selamy-labs-bot`).\n   - Refuses on git mismatches (`HEAD_MISMATCH`, `TREE_MISMATCH`, `BASE_SHA_DRIFT`, `NON_SINGLE_COMMIT_RANGE`, `INVALID_COMMIT_IDENTITY`), artifact hash mismatches (`ARTIFACT_HASH_MISMATCH`), or missing mandatory gates (`MISSING_MANDATORY_GATE`).\n   - Automatically invalidates prior reviews and transitions if `commit_sha` or `tree_sha` differs from previous candidate revision.\n   - Advances stage to `review` and records durable implementation receipt.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py record-implementation \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --owner lane-session-1 \\\n       --claim-token \u003Ctoken> \\\n       --round 1 \\\n       --commit-sha \u003C40-hex> \\\n       --tree-sha \u003C40-hex> \\\n       --parent-sha \u003C40-hex> \\\n       --gate-results '{\"test_exit_code\": 0}'\n     ```\n\n4. **`record-review` (`record_review`)**:\n   - Binds an independent review report (`reviewer_id`, `model`, `family` in `argon`, `opus`, `sol`, `session_id`, `verdict` in `SHIP`, `REVISE`, `report_path`, `report_sha256`) to the candidate.\n   - Enforces strict reviewer provenance: Refuses unattributed reports lacking non-empty model or reviewer attestation (`REPORT_IDENTITY_MISMATCH`).\n   - Refuses duplicate report reuse across reviewers on the current revision (`REPORT_IDENTITY_MISMATCH`).\n   - Enforces embedded self-review refusal: Inspects report tokens (`session`, `session_id`, `conversationId`, `authorModel`, `reviewer`, `model`, `dispatch`, `attestation`) against implementer identity, claim owner, candidate model, and flash models (`SELF_REVIEW_FORBIDDEN`).\n   - Verifies embedded reviewer consistency against caller session, reviewer, account, and dispatch (`REPORT_IDENTITY_MISMATCH`).\n   - Validates report file SHA-256 and verified commit\u002Ftree match candidate.\n   - Refuses forbidden models (`claude-fable-5-1`), duplicate reviewer family\u002Fsession per round, or revision drift.\n   - `REVISE` verdict reverts stage to `implementing` with `remediation_required: true` and records actionable defect IDs.\n   - 3 distinct reviewer families (`argon`, `opus`, `sol`) and 3 distinct sessions with `SHIP` marks candidate `qualified: true`.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py record-review \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --reviewer-id rev-opus \\\n       --model claude-3-7-sonnet \\\n       --family opus \\\n       --session-id sess-rev-1 \\\n       --verdict SHIP \\\n       --report-path \u002Fpath\u002Fto\u002Freport.json \\\n       --report-sha256 \u003Csha256>\n     ```\n\n5. **`execute-transition` (`execute_transition`)**:\n   - Executes guarded side effects (`push`, `publish_pr`, `merge_pr`, `complete_spec_task`) through maintained helpers with provider reconciliation.\n   - Pre-effect guards: Validates claim freshness, live git revision matching qualified candidate, 3 unanimous `SHIP` reviews, mandatory gates, live primary operator approval verification on disk (checking hash match and absence of withdrawal markers), exact-head CI, and approved bot identity (for `merge_pr`).\n   - Provider-authoritative merge CI: Evaluates `provider_checks` (`statusCheckRollup` from `gh pr view`). Requires non-empty, green rollup (`MISSING_EXACT_HEAD_CI`). Caller `ci_checks` cannot override provider CI and must explicitly match `commit_sha`.\n   - Provider actor identity verification: Calls `gh api user` and enforces actor identity matching `ALLOWED_MERGE_IDENTITIES` (`selamy-labs-bot`), refusing unauthorized human\u002Fbot actors with `DISALLOWED_MERGE_IDENTITY`.\n   - Already-merged reconciliation verification: Verifies `headRefOid == commit_sha` and valid provider CI before returning reconciled success, recording `merge_commit_sha`.\n   - Revision-bound transitions: Requires prior transitions matching `required_completion_action` bound to the current candidate commit and tree (`MISSING_TRANSITION_EVIDENCE`).\n   - Updates `coordinator-status.json` with truthful CI\u002Fbranch protection projection and writes durable transition receipts.\n   - CLI:\n     ```sh\n     python3 \u002Fabsolute\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py execute-transition \\\n       --control-dir \u002Fabsolute\u002Fcontrol \\\n       --work-id W-001 \\\n       --action push \\\n       --claim-token \u003Ctoken> \\\n       --branch feat\u002Fmy-branch\n     ```\n\n## Resolve the report\n\n1. **Coverage:** Every primary-authorized project has an owner, next action, current stage, dated progress evidence, or an explicit blocker\u002Fwait. Priority for one foundation does not remove other projects. Unresolved product scope can advance through a bounded discovery artifact; it does not authorize invented implementations or deployments. Legacy entries are projected with RFC 6901 source pointers, canonical SHA-256 digests, and verified fact age.\n2. **Intake:** Read new primary directives, reconcile superseded instructions, record their exact file hashes, and verify actual application. A hash proves which file was read, not compliance. Keep a compact current checkpoint with the next consequential decisions.\n3. **Parallelism:** Admit independent ready slices using available authorized implementation and review capacity. Give each writer a verified worktree and path scope. Stage transition guards enforce strict admission keys, claim fencing (`claim_token`), and distinct reviewer model roles. Keep review\u002Fintegration capacity available. Count advancing artifacts and stage transitions, not session names or idle processes. Preserve valid long waits and advancing work.\n4. **Evidence:** Distinguish implementation, review, push, protected merge, green post-merge CI, artifact publication, and hosted validation. A fresh root timestamp does not refresh old nested facts. Bind review and CI receipts to the exact revision; verify live state before an irreversible action.\n5. **Follow-through:** For each nudge, record the cause, expected next observable result, owner and recheck time. Recheck action\u002Fresult, not just acknowledgement. Stop repeating a nudge already queued or being handled.\n\n6. **Quality coverage:** Reconcile every `required_controls` entry to each project's `controls` record. Read the canonical definition, check applicable repository enforcement and exact-revision evidence, and retain an owned next task for gaps. A checked box, hook configuration or self-reported status is insufficient proof. Preserve both successful execution and meaningful rejection evidence where the baseline requires them. Use narrow justified non-applicability, never blanket exemptions.\n\nTreat unrelated deficits independently. A missing project row should prompt admission\u002Freconciliation, not halt an unrelated productive worker. Missing authorization or failed prerequisites block the specific action they govern. A passing preflight never grants cloud apply, paid execution, permission bypass, model access, merges outside primary approval, or secret\u002Fcustody changes.\n\n## Compose maintained mechanisms\n\nUse the installed versions of these skills rather than reimplementing their mechanisms:\n\n- `low-level-executor-task-spec`: immutable task scope, allowed paths, acceptance criteria and evidence contract.\n- `orchestrate-agy`, `orchestrate-claude`, `orchestrate-codex`: installed-capability checks, safe execution, unique dispatch and verified read.\n- `pr-ci-shepherding` \u002F `github-pr-shepherding`: exact-revision review, required checks and protected landing.\n- `verify-from-system-of-record` \u002F `verify-real-artifact`: verify claims against repository\u002Fprovider evidence.\n- `loop-governance-and-learning`: turn repeated failures into regression cases for this preflight or the owning repository gate.\n\nKeep composition shallow: preflight → bounded decision → maintained action helper → independent verification → checkpoint. No recursive supervisors, self-spawning skills, extra schedules, or general command-string security parser.\n\n## Primary roles and safeguards\n\nRead the current policy rather than assuming roles from a historical status field. The coordinator owns admission and integration, the witness observes the coordinator, and admitted workers implement or remediate. Current primary policy selects the implementation model and independent reviewer roles for each exact revision. A coauthor trailer, audit or model nickname alone does not establish implementation provenance.\n\nUse the existing coordinator input lock and a single-line directive-file pointer. If any relevant input is queued, the lock is busy, or a helper result is ambiguous, inspect the same dispatch and defer new input. Do not re-paste. Preserve the same conversation when recovering.\n\nNo script here dispatches workers, starts timers, changes permissions, merges, deploys or mutates the ledger. Required server-side branch checks, restricted credentials, sandboxing and explicit live-apply approval remain independent boundaries.\n\n## Adoption and limits\n\nVerify four separate steps: tests pass; the installed harness discovers this skill; the current conversation actually invokes the script; observed project outcomes improve. Merely installing or reading it is not adoption.\n\nAntigravity documentation describes hooks, but the installed version is the contract. Before any hook enforcement, test discovery, payload, deny, malformed output, crash and timeout behavior in a harmless isolated probe. Do not install an untested hook on productive sessions or claim this read-only script prevents arbitrary bypasses. If hooks are unsupported, invoke explicitly from the existing wakeup contract and let the independent witness verify freshness.\n\n## Verify changes\n\n```sh\npython3 -m unittest discover -s \u002Fabsolute\u002Fportfolio-delivery-control\u002Ftests -v\n```\n\nKeep incident-based tests for missing collections, stale revisions, omitted projects, valid versus expired waits, conflicting writers, unsafe custody\u002Fpermissions, duplicate input and already-fulfilled actions. Test decisions and outputs, not source spelling or handwritten inventory counts.\n",{"name":5,"description":7},"main","54007b08157feb09e5bb9d7ff5ce4ddd21625dbf","skills\u002Fportfolio-delivery-control",3,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills","https:\u002F\u002Fselamy.dev","https:\u002F\u002Fgithub.com\u002Fselamy-labs","2026-11-15 03:50:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add selamy-labs\u002Fagent-skills --skill portfolio-delivery-control",{"tool":37,"command":38},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill portfolio-delivery-control",{"tool":40,"command":41},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill portfolio-delivery-control","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002FSKILL.md",true,[45,51,55,61,65,69,73,77,81,85,89,93,97,101,105,109],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"references\u002Fcontract.md","REFERENCE","参考文档",19831,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Freferences\u002Fcontract.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fstate-contract.md",11,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Freferences\u002Fstate-contract.md",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Fadmission.py","SCRIPT","脚本",18256,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Fadmission.py",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fpreflight.py",74345,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Fpreflight.py",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fproviders.py",22410,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Fproviders.py",{"path":70,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":71,"sourceHtmlUrl":72},"scripts\u002Freceipts.py",20768,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Freceipts.py",{"path":74,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002Ftransitions.py",20876,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Ftransitions.py",{"path":78,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fworkflow.py",18421,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Fscripts\u002Fworkflow.py",{"path":82,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":83,"sourceHtmlUrl":84},"tests\u002Fconftest.py",233,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Fconftest.py",{"path":86,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":87,"sourceHtmlUrl":88},"tests\u002Ftest_admission.py",30113,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_admission.py",{"path":90,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":91,"sourceHtmlUrl":92},"tests\u002Ftest_guard_inventory.py",66894,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_guard_inventory.py",{"path":94,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":95,"sourceHtmlUrl":96},"tests\u002Ftest_preflight.py",135079,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_preflight.py",{"path":98,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":99,"sourceHtmlUrl":100},"tests\u002Ftest_providers.py",49802,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_providers.py",{"path":102,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":103,"sourceHtmlUrl":104},"tests\u002Ftest_receipts.py",25085,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_receipts.py",{"path":106,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":107,"sourceHtmlUrl":108},"tests\u002Ftest_transitions.py",67472,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_transitions.py",{"path":110,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":111,"sourceHtmlUrl":112},"tests\u002Ftest_workflow.py",8343,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fportfolio-delivery-control\u002Ftests\u002Ftest_workflow.py",[114,121,128,135,141,148],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":18},"01M75MY70JMSNFHQX63G90SKZ7","silence-phrase","A seemingly normal skill.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsilence-phrase\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":18},"01M75MY5PKVKY60M8H2DFTW58C","selamy-bad-skill","This skill has a vendor prefix that should be rejected.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprefixed-name\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":18},"01M75MY1TKXCH6WYN9ET0W4T02","oversized-description","This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foversized-description\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":18},"01M75MY0SZ7EKT99NWJEJ8HKS2","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":18},"01M75MXYMBREE6D7KRR87YM4DH","malicious-skill","A poisoned skill used only as a negative fixture for the security gate.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmalicious-skill\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":18},"01M75MXX2B7AC2QSSRRQQXTA0N","leaking-org-name","A skill about something.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fleaking-org-name\u002FSKILL.md",[],[]]