{"skills":[{"name":"Verify a workflow delivered its expected file","description":"Compare a workflow run\u2019s promised outputs with the downloadable archive manifest to catch successful jobs that produced an incomplete handover.","content":"# Verify a workflow delivered its expected file\n\nCompare a workflow run\u2019s promised outputs with the downloadable archive manifest to catch successful jobs that produced an incomplete handover.\n\n## When to use this skill\n\n- A workflow run succeeded and someone wants to confirm its artifact contains every required file before handing it over.\n- A recipient says a download is missing files or contains an empty report.\n- A release checklist needs proof that a specific run produced a specific file, such as a signed PDF or a build archive.\n\n## When not to use it\n\n- Debugging why a build step failed. Read the job logs for that.\n- Judging whether a file's contents are right beyond the stated checks, such as whether a report's figures are correct. That needs the file's owner or a subject review.\n- Other CI systems without adapting the evidence. The method holds, but artifact naming, retention and access rules differ by system.\n\n## What you need\n\n- The exact run ID, expected artifact name and the required paths, including which must be non-empty.\n- Run outcome and archive listing with path and uncompressed byte size, captured for that same run.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What is the exact run ID and artifact name? Evidence from another run or another artifact does not count.\n- Which paths must be in the archive, and which must be non-empty? Some files, such as markers, may be empty by design.\n- Are there checks beyond paths and sizes, such as page count, a signature or that a named reviewer can download it? Each needs its own evidence.\n- When did the run finish? GitHub keeps artifacts for 90 days by default, or for the repository's retention setting, after which they expire.\n\n## Method\n\n1. Bind the evidence to the requested run and artifact name. In GitHub's REST API each artifact record carries its workflow run ID and an expired flag. An upload step that reported success is not proof that the archive exists.\n2. If no archive for that run can be identified, or it has expired, report unavailable and stop. An artifact with the same name from an earlier or later run does not stand in.\n3. List the archive's members with their uncompressed sizes and compare each required path exactly: case-sensitive and relative to the archive root. upload-artifact roots the archive at the least common ancestor of the uploaded paths, so compare against the member paths, not the paths on the runner.\n4. Record missing paths and, separately, required non-empty files that are zero bytes. A similarly named file (notes-old.txt for notes.txt) leaves the requirement missing. Ignore extra files for coverage.\n5. Remember upload-artifact's defaults when explaining a gap: if no files match it only warns (if-no-files-found: warn), and hidden files are excluded unless include-hidden-files is set, so a green job can produce an empty or partial artifact.\n6. For content checks such as page count, signature or format, inspect the final file itself. For access checks, use evidence from the intended recipient: downloading needs a signed-in account with read access to the repository, so an administrator's download says nothing about a reviewer. Mark each such check passed, failed or unverified.\n7. Report complete only when the right archive is available, nothing required is missing or empty, and every extra check passed. Otherwise report incomplete, listing failed and unverified checks in the order given.\n\n## Checks before you deliver\n\n- Some artifact upload configurations only warn when there are no matching paths.\n- A green workflow, a non-empty ZIP container or an artifact from a neighbouring run cannot prove this particular handover.\n- An expired artifact cannot be downloaded even though the run page still exists. Check the expiry before promising a handover.\n- The size the API reports is for the whole archive. It does not show that each required file inside has content.\n- Artifacts created with upload-artifact v4 or later are immutable. A fix means a new upload or a new run, then a fresh check of the replacement archive.\n\n## How to present the result\n\nStart with the status for the named run and artifact: complete, incomplete or unavailable. Then list missing paths, empty files and any failed or unverified checks, each with the evidence used. Finish with what to regenerate or re-run and the checks to repeat on the replacement archive before handover, written so it can be pasted into the release ticket.\n\n## Worked example\n\n**Request:** Verify run 41, artifact pack. report.csv and notes.txt must contain data. ready.flag may be empty.\n\n**Supplied material:**\n\n```text\nrun 41 succeeded; artifact pack retrieved\nreport.csv | 0 bytes\nready.flag | 0 bytes\nnotes-old.txt | 18 bytes\n```\n\n**Answer:** Run 41\u2019s pack is incomplete. Regenerate report.csv with data and include notes.txt under its required name. The empty ready.flag is valid. Retrieve the replacement archive and check both files before handing it over.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn status as complete, incomplete or unavailable, plus missing and empty as paths in requirement order. When the requested archive cannot be identified, return unavailable with both lists empty. If the request includes content or access requirements, also return failed_checks and unverified_checks as supplied requirement IDs in order. Mark the handover incomplete when the correct archive is available but any such requirement fails or remains unverified.\n\n## Sources\n\n- [GitHub Actions upload-artifact](https:\/\/github.com\/actions\/upload-artifact): The action's documentation: if-no-files-found defaults to warn, hidden files are excluded unless include-hidden-files is set, the archive is rooted at the least common ancestor of the uploaded paths, artifacts from v4 onward are immutable, and retention-days can be set from 1 to 90.\n- [GitHub Docs on downloading workflow artifacts](https:\/\/docs.github.com\/en\/actions\/how-tos\/manage-workflow-runs\/download-workflow-artifacts): Says only people signed in to GitHub with read access to the repository can download workflow artifacts, that artifacts are kept for 90 days by default, and that gh run download takes a run ID and artifact name. This is why the skill binds evidence to one run and checks the recipient's access separately.\n- [GitHub REST API for Actions artifacts](https:\/\/docs.github.com\/en\/rest\/actions\/artifacts): Lists the artifacts for a workflow run. Each artifact record includes its workflow run ID, the archive's size in bytes, an expired flag and the expiry time, which the skill uses to confirm the archive belongs to the requested run and is still available.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/verify-a-workflow-deliverable\n","scope":"contextual","trigger_keywords":["Verify a workflow delivered its expected file","verify-a-workflow-deliverable","verify a workflow deliverable","The workflow says it succeeded. Does its output contain every file it should?","The workflow says it succeeded. Does its output contain every file it should","verify this workflow deliverable","check the workflow output","verify the promised deliverable"],"is_private":true,"is_active":true,"scripts":[{"name":"verify-a-workflow-deliverable-check","description":"Compare a saved JSON answer with a published test. Pass tests\/case-1\/expected.json (or another case) and the path to your answer.","language":"python","filename":"verify-a-workflow-deliverable-check.py","content":"from pathlib import Path\nimport runpy\n\nrunpy.run_path(str(Path(__file__).parent \/ 'tests' \/ 'check.py'), run_name='__main__')\n","supporting_files":[{"path":"SKILL.md","content":"---\nname: verify-a-workflow-deliverable\ndescription: \"Check that a CI run produced the files it promised by comparing required paths and sizes with the artifact archive from that exact run, and flag content or access checks still unverified. Use when a GitHub Actions job is green but someone needs to confirm the artifact or handover file is complete.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/verify-a-workflow-deliverable\n---\n\n# Verify a workflow delivered its expected file\n\nCompare a workflow run\u2019s promised outputs with the downloadable archive manifest to catch successful jobs that produced an incomplete handover.\n\n## When to use this skill\n\n- A workflow run succeeded and someone wants to confirm its artifact contains every required file before handing it over.\n- A recipient says a download is missing files or contains an empty report.\n- A release checklist needs proof that a specific run produced a specific file, such as a signed PDF or a build archive.\n\n## When not to use it\n\n- Debugging why a build step failed. Read the job logs for that.\n- Judging whether a file's contents are right beyond the stated checks, such as whether a report's figures are correct. That needs the file's owner or a subject review.\n- Other CI systems without adapting the evidence. The method holds, but artifact naming, retention and access rules differ by system.\n\n## What you need\n\n- The exact run ID, expected artifact name and the required paths, including which must be non-empty.\n- Run outcome and archive listing with path and uncompressed byte size, captured for that same run.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What is the exact run ID and artifact name? Evidence from another run or another artifact does not count.\n- Which paths must be in the archive, and which must be non-empty? Some files, such as markers, may be empty by design.\n- Are there checks beyond paths and sizes, such as page count, a signature or that a named reviewer can download it? Each needs its own evidence.\n- When did the run finish? GitHub keeps artifacts for 90 days by default, or for the repository's retention setting, after which they expire.\n\n## Method\n\n1. Bind the evidence to the requested run and artifact name. In GitHub's REST API each artifact record carries its workflow run ID and an expired flag. An upload step that reported success is not proof that the archive exists.\n2. If no archive for that run can be identified, or it has expired, report unavailable and stop. An artifact with the same name from an earlier or later run does not stand in.\n3. List the archive's members with their uncompressed sizes and compare each required path exactly: case-sensitive and relative to the archive root. upload-artifact roots the archive at the least common ancestor of the uploaded paths, so compare against the member paths, not the paths on the runner.\n4. Record missing paths and, separately, required non-empty files that are zero bytes. A similarly named file (notes-old.txt for notes.txt) leaves the requirement missing. Ignore extra files for coverage.\n5. Remember upload-artifact's defaults when explaining a gap: if no files match it only warns (if-no-files-found: warn), and hidden files are excluded unless include-hidden-files is set, so a green job can produce an empty or partial artifact.\n6. For content checks such as page count, signature or format, inspect the final file itself. For access checks, use evidence from the intended recipient: downloading needs a signed-in account with read access to the repository, so an administrator's download says nothing about a reviewer. Mark each such check passed, failed or unverified.\n7. Report complete only when the right archive is available, nothing required is missing or empty, and every extra check passed. Otherwise report incomplete, listing failed and unverified checks in the order given.\n\n## Checks before you deliver\n\n- Some artifact upload configurations only warn when there are no matching paths.\n- A green workflow, a non-empty ZIP container or an artifact from a neighbouring run cannot prove this particular handover.\n- An expired artifact cannot be downloaded even though the run page still exists. Check the expiry before promising a handover.\n- The size the API reports is for the whole archive. It does not show that each required file inside has content.\n- Artifacts created with upload-artifact v4 or later are immutable. A fix means a new upload or a new run, then a fresh check of the replacement archive.\n\n## How to present the result\n\nStart with the status for the named run and artifact: complete, incomplete or unavailable. Then list missing paths, empty files and any failed or unverified checks, each with the evidence used. Finish with what to regenerate or re-run and the checks to repeat on the replacement archive before handover, written so it can be pasted into the release ticket.\n\n## Worked example\n\n**Request:** Verify run 41, artifact pack. report.csv and notes.txt must contain data. ready.flag may be empty.\n\n**Supplied material:**\n\n```text\nrun 41 succeeded; artifact pack retrieved\nreport.csv | 0 bytes\nready.flag | 0 bytes\nnotes-old.txt | 18 bytes\n```\n\n**Answer:** Run 41\u2019s pack is incomplete. Regenerate report.csv with data and include notes.txt under its required name. The empty ready.flag is valid. Retrieve the replacement archive and check both files before handing it over.\n\n## Structured output for tests\n\nFor an ordinary job, answer in the format above and point back to the supplied evidence. Use this structure only for the test cases published with this skill, or when someone asks for structured JSON.\n\nReturn status as complete, incomplete or unavailable, plus missing and empty as paths in requirement order. When the requested archive cannot be identified, return unavailable with both lists empty. If the request includes content or access requirements, also return failed_checks and unverified_checks as supplied requirement IDs in order. Mark the handover incomplete when the correct archive is available but any such requirement fails or remains unverified.\n\n## Sources\n\n- [GitHub Actions upload-artifact](https:\/\/github.com\/actions\/upload-artifact): The action's documentation: if-no-files-found defaults to warn, hidden files are excluded unless include-hidden-files is set, the archive is rooted at the least common ancestor of the uploaded paths, artifacts from v4 onward are immutable, and retention-days can be set from 1 to 90.\n- [GitHub Docs on downloading workflow artifacts](https:\/\/docs.github.com\/en\/actions\/how-tos\/manage-workflow-runs\/download-workflow-artifacts): Says only people signed in to GitHub with read access to the repository can download workflow artifacts, that artifacts are kept for 90 days by default, and that gh run download takes a run ID and artifact name. This is why the skill binds evidence to one run and checks the recipient's access separately.\n- [GitHub REST API for Actions artifacts](https:\/\/docs.github.com\/en\/rest\/actions\/artifacts): Lists the artifacts for a workflow run. Each artifact record includes its workflow run ID, the archive's size in bytes, an expired flag and the expiry time, which the skill uses to confirm the archive belongs to the requested run and is still available.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/verify-a-workflow-deliverable\n"},{"path":"LICENSE.txt","content":"Original Raq.com instructions and synthetic examples: CC BY 4.0.\nhttps:\/\/creativecommons.org\/licenses\/by\/4.0\/\nAttribution: Raq.com, https:\/\/skills.raq.com\/skills\/verify-a-workflow-deliverable\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Successful job, incomplete handover\n\nVerify run 41, artifact pack. report.csv and notes.txt must contain data. ready.flag may be empty.\n\n## Supplied material\n\nrun 41 succeeded; artifact pack retrieved\nreport.csv | 0 bytes\nready.flag | 0 bytes\nnotes-old.txt | 18 bytes\n\n## Worked answer\n\nRun 41\u2019s pack is incomplete. Regenerate report.csv with data and include notes.txt under its required name. The empty ready.flag is valid. Retrieve the replacement archive and check both files before handing it over.\n\n## Reasoning\n\nThe empty marker is allowed. notes-old.txt cannot stand in for notes.txt.\n"},{"path":"tests\/check.py","content":"\"\"\"Check a saved agent answer locally with Python 3 (standard library only).\"\"\"\nimport json\nimport math\nimport sys\nfrom pathlib import Path\n\n\ndef compare(expected, actual, path=\"$\", accepted=None):\n    if isinstance(expected, bool) or isinstance(actual, bool):\n        if expected is not actual:\n            yield path\n    elif isinstance(expected, (int, float)) and isinstance(actual, (int, float)):\n        if not math.isclose(expected, actual, rel_tol=0, abs_tol=1e-8):\n            yield path\n    elif isinstance(expected, dict) and isinstance(actual, dict):\n        for key in sorted(set(expected) | set(actual)):\n            if key not in expected or key not in actual:\n                yield f\"{path}.{key}\"\n            elif not any(\n                not list(compare(option, actual[key]))\n                for option in (accepted or {}).get(key, [])\n            ):\n                yield from compare(expected[key], actual[key], f\"{path}.{key}\")\n    elif isinstance(expected, list) and isinstance(actual, list):\n        if len(expected) != len(actual):\n            yield f\"{path} (length)\"\n        for i, (left, right) in enumerate(zip(expected, actual)):\n            yield from compare(left, right, f\"{path}[{i}]\")\n    elif type(expected) != type(actual) or expected != actual:\n        yield path\n\n\ndef main():\n    if len(sys.argv) != 3:\n        raise SystemExit(\"Usage: python3 check.py expected.json answer.json\")\n    try:\n        expected, actual = [json.loads(Path(p).read_text(encoding=\"utf-8\")) for p in sys.argv[1:]]\n        alternatives = Path(sys.argv[1]).with_name(\"accepted.json\")\n        accepted = json.loads(alternatives.read_text(encoding=\"utf-8\")) if alternatives.is_file() else {}\n    except (ValueError, OSError) as error:\n        raise SystemExit(str(error))\n    differences = list(compare(expected, actual, accepted=accepted))\n    if differences:\n        raise SystemExit(\"Different fields: \" + \", \".join(differences))\n    print(\"Pass\")\n\n\nif __name__ == \"__main__\":\n    main()\n"},{"path":"tests\/README.md","content":"Give your agent SKILL.md and one request.txt in a fresh session. Keep the expected answer aside. Save the reply as answer.json, then run this from the tests folder:\n\n    python3 check.py case-1\/expected.json answer.json\n\nEach case also has an explanation. Where accepted.json exists, the checker accepts the alternatives listed there.\n"},{"path":"tests\/case-1\/request.txt","content":"Verify run 41, artifact pack. report.csv and notes.txt must contain data. ready.flag may be empty.\nReturn only the JSON specified in SKILL.md for this test.\n\nrun 41 succeeded; artifact pack retrieved\nreport.csv | 0 bytes\nready.flag | 0 bytes\nnotes-old.txt | 18 bytes\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"status\": \"incomplete\",\n    \"missing\": [\n        \"notes.txt\"\n    ],\n    \"empty\": [\n        \"report.csv\"\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"The empty marker is allowed. notes-old.txt cannot stand in for notes.txt.\n"},{"path":"tests\/case-2\/request.txt","content":"Verify run 208, artifact handbook. Require guide.pdf non-empty.\nReturn only the JSON specified in SKILL.md for this test.\n\nrun 208 succeeded, no artifact listing available\narchive handbook for run 207: guide.pdf | 4200 bytes\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"status\": \"unavailable\",\n    \"missing\": [],\n    \"empty\": []\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The earlier archive cannot establish which files exist in the requested run.\n"},{"path":"tests\/case-3\/request.txt","content":"Verify run 80, artifact contract. Require non-empty final\/agreement.pdf and checks P (exactly one page), S (signed), R (reviewer can download).\nReturn only the JSON specified in SKILL.md for this test.\n\nCorrect archive retrieved by administrator. final\/agreement.pdf | 3400 bytes. Inspection of that final PDF confirms one page and no required signature. No reviewer access record supplied.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"status\": \"incomplete\",\n    \"missing\": [],\n    \"empty\": [],\n    \"failed_checks\": [\n        \"S\"\n    ],\n    \"unverified_checks\": [\n        \"R\"\n    ]\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"The final file meets the path, size and page-count requirements. Its missing signature is confirmed. An administrator download leaves the reviewer\u2019s access unverified.\n"}],"is_active":true,"is_approved":false}]}]}