{"skills":[{"name":"Review a contract change log","description":"Rebuild the approved contract value and completion date while keeping requested variations separate.","content":"# Review a contract change log\n\nRebuild the approved contract value and completion date while keeping requested variations separate.\n\n## When to use this skill\n\n- Someone needs the current agreed contract value or completion date after several variations or change notices.\n- A change log mixes signed, unsigned, proposed and duplicate changes.\n- An invoice needs checking against the charge agreed after changes.\n\n## When not to use it\n\n- Deciding whether a public contract modification is permitted under the Procurement Act 2023, or whether a contract change notice had to be published first. Refer that to the buyer's commercial or legal team.\n- Negotiating or valuing a proposed change. The skill records what has been agreed, not what should be.\n\n## What you need\n\n- Baseline fee and completion date from the signed agreement.\n- Change IDs, signatures, effective dates and signed fee\/date adjustments.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What does the contract's change procedure require for a change to take effect, such as both signatures, a set form or an authorised signatory?\n- At what date should the position be stated?\n- Can you share every change notice in full, including duplicates, rather than a summary list? Copies and conflicting versions need comparing.\n\n## Method\n\n1. Start from the signed baseline: value, fee basis (a fixed sum or a rate per period), currency and completion date.\n2. Use the change procedure's approval rule. Fix an as-of date and a unique ID for each notice. Treat an identical repeated copy as one notice, and hold conflicting signed versions for verification.\n3. Sort notices by effective date and contractual sequence. A proposal, an unsigned request under a signed-change policy or a change effective after the as-of date cannot alter the current baseline.\n4. Apply exactly what each approved change says: an incremental delta, a replacement amount or a recurring rate from an effective date. A replacement supersedes the named earlier amount; keep its history and stop the old rate when the replacement takes effect. If same-date changes conflict, use contractual precedence or hold the disputed amount instead of deciding by ID.\n5. Record accepted zero-value time changes as well as fee changes. Reconcile the baseline plus approved changes to the new value and completion date, and show unresolved notices alongside.\n6. When checking an invoice, apply the changes effective in its billing period and compare on the same fee and period basis. Report billed minus agreed as a signed amount.\n7. For a public contract under the Procurement Act 2023 (most public buyers in England, Wales and Northern Ireland), flag any applied change that alters value or term without a recorded contract change notice, for the commercial lead to check. The Act generally requires the buyer to publish a notice before modifying a public contract unless an exemption applies.\n\n## Checks before you deliver\n\n- A requested service change can affect timing without adding money.\n- Repeated attachments to email threads are often copies of one signed notice.\n- Adding a replacement fee on top of the amount it replaces.\n- Applying a change from its signature date when it states a later effective date.\n- Counting a change signed by one party when the procedure requires both.\n\n## How to present the result\n\nLead with the agreed value and completion date at the stated date. Then give a reconciliation table: the baseline, each applied change with its effect and effective date, and the new totals. List held changes separately with the reason and what would allow each to be applied. If an invoice was checked, give the agreed charge for its period and the difference.\n\n## Worked example\n\n**Request:** What is agreed as at 2026-07-31?\n\n**Supplied material:**\n\n```text\nBaseline \u00a310,000 and 2026-08-10. Both parties must sign. C1 both signed, effective July 2: +\u00a3800 and +5 calendar days. Identical C1 copy enclosed. C2 supplier signature only: +\u00a3300 and -3 days. C3 both signed, effective Aug 1: -\u00a3100.\n```\n\n**Answer:** At 31 July the agreed value is \u00a310,800 and completion is 15 August 2026. C1 adds \u00a3800 and five days, and its duplicate counts once. C2 lacks the second signature. C3\u2019s \u00a3100 reduction takes effect in August.\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 value and completion (ISO date), applied and held (sorted arrays of unique change IDs). Treat a conflicting duplicate as held, excluding every version from the provisional baseline. Currency is supplied by the contract. Keep value on the same fee and period basis as the baseline. For a requested check against an actual invoice include billed_less_agreed in that basis, after applying changes effective in its billing period.\n\n## Sources\n\n- [Government Commercial Function: Contract management foundation guide](https:\/\/www.gov.uk\/government\/publications\/civil-service-helping-you-with-managing-suppliers-and-contracts\/contract-management-training-accreditation-foundation-level-takeaway-guide-html): The guide says changes should be agreed through a contract change notice and recorded in the change control log, must be mutually agreed unless the contract says otherwise, and should still be formally recorded when they have no financial effect.\n- [Cabinet Office: Guidance on contract modifications (Procurement Act 2023)](https:\/\/www.gov.uk\/government\/publications\/procurement-act-2023-guidance-documents-manage-phase\/guidance-contract-modifications-html): Updated July 2026. A public contract may be modified only on permitted grounds, a contract change notice must generally be published before the modification, and for contracts over \u00a35 million the modification or modified contract must be published within 90 days. This is why the skill flags public-contract changes without a notice.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/review-contract-change-log\n","scope":"contextual","trigger_keywords":["Review a contract change log","review-contract-change-log","review contract change log","After all these variations, what are the contract\u2019s agreed value and end date now?","After all these variations, what are the contract\u2019s agreed value and end date now","contract change log","review these contract amendments","contract amendment tracker"],"is_private":true,"is_active":true,"scripts":[{"name":"review-contract-change-log-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":"review-contract-change-log-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: review-contract-change-log\ndescription: \"Rebuild a contract's agreed value and completion date from its change log, applying only approved and effective changes and holding unsigned, future or conflicting ones. Use when reviewing a change register, variation orders, change notices or contract amendments, or checking an invoice against them.\"\nlicense: CC-BY-4.0\nmetadata:\n  author: Raq.com\n  version: \"2026-11-22\"\n  homepage: https:\/\/skills.raq.com\/skills\/review-contract-change-log\n---\n\n# Review a contract change log\n\nRebuild the approved contract value and completion date while keeping requested variations separate.\n\n## When to use this skill\n\n- Someone needs the current agreed contract value or completion date after several variations or change notices.\n- A change log mixes signed, unsigned, proposed and duplicate changes.\n- An invoice needs checking against the charge agreed after changes.\n\n## When not to use it\n\n- Deciding whether a public contract modification is permitted under the Procurement Act 2023, or whether a contract change notice had to be published first. Refer that to the buyer's commercial or legal team.\n- Negotiating or valuing a proposed change. The skill records what has been agreed, not what should be.\n\n## What you need\n\n- Baseline fee and completion date from the signed agreement.\n- Change IDs, signatures, effective dates and signed fee\/date adjustments.\n\n## Ask before you start\n\nIf any of these are missing or unclear, ask before doing the work.\n\n- What does the contract's change procedure require for a change to take effect, such as both signatures, a set form or an authorised signatory?\n- At what date should the position be stated?\n- Can you share every change notice in full, including duplicates, rather than a summary list? Copies and conflicting versions need comparing.\n\n## Method\n\n1. Start from the signed baseline: value, fee basis (a fixed sum or a rate per period), currency and completion date.\n2. Use the change procedure's approval rule. Fix an as-of date and a unique ID for each notice. Treat an identical repeated copy as one notice, and hold conflicting signed versions for verification.\n3. Sort notices by effective date and contractual sequence. A proposal, an unsigned request under a signed-change policy or a change effective after the as-of date cannot alter the current baseline.\n4. Apply exactly what each approved change says: an incremental delta, a replacement amount or a recurring rate from an effective date. A replacement supersedes the named earlier amount; keep its history and stop the old rate when the replacement takes effect. If same-date changes conflict, use contractual precedence or hold the disputed amount instead of deciding by ID.\n5. Record accepted zero-value time changes as well as fee changes. Reconcile the baseline plus approved changes to the new value and completion date, and show unresolved notices alongside.\n6. When checking an invoice, apply the changes effective in its billing period and compare on the same fee and period basis. Report billed minus agreed as a signed amount.\n7. For a public contract under the Procurement Act 2023 (most public buyers in England, Wales and Northern Ireland), flag any applied change that alters value or term without a recorded contract change notice, for the commercial lead to check. The Act generally requires the buyer to publish a notice before modifying a public contract unless an exemption applies.\n\n## Checks before you deliver\n\n- A requested service change can affect timing without adding money.\n- Repeated attachments to email threads are often copies of one signed notice.\n- Adding a replacement fee on top of the amount it replaces.\n- Applying a change from its signature date when it states a later effective date.\n- Counting a change signed by one party when the procedure requires both.\n\n## How to present the result\n\nLead with the agreed value and completion date at the stated date. Then give a reconciliation table: the baseline, each applied change with its effect and effective date, and the new totals. List held changes separately with the reason and what would allow each to be applied. If an invoice was checked, give the agreed charge for its period and the difference.\n\n## Worked example\n\n**Request:** What is agreed as at 2026-07-31?\n\n**Supplied material:**\n\n```text\nBaseline \u00a310,000 and 2026-08-10. Both parties must sign. C1 both signed, effective July 2: +\u00a3800 and +5 calendar days. Identical C1 copy enclosed. C2 supplier signature only: +\u00a3300 and -3 days. C3 both signed, effective Aug 1: -\u00a3100.\n```\n\n**Answer:** At 31 July the agreed value is \u00a310,800 and completion is 15 August 2026. C1 adds \u00a3800 and five days, and its duplicate counts once. C2 lacks the second signature. C3\u2019s \u00a3100 reduction takes effect in August.\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 value and completion (ISO date), applied and held (sorted arrays of unique change IDs). Treat a conflicting duplicate as held, excluding every version from the provisional baseline. Currency is supplied by the contract. Keep value on the same fee and period basis as the baseline. For a requested check against an actual invoice include billed_less_agreed in that basis, after applying changes effective in its billing period.\n\n## Sources\n\n- [Government Commercial Function: Contract management foundation guide](https:\/\/www.gov.uk\/government\/publications\/civil-service-helping-you-with-managing-suppliers-and-contracts\/contract-management-training-accreditation-foundation-level-takeaway-guide-html): The guide says changes should be agreed through a contract change notice and recorded in the change control log, must be mutually agreed unless the contract says otherwise, and should still be formally recorded when they have no financial effect.\n- [Cabinet Office: Guidance on contract modifications (Procurement Act 2023)](https:\/\/www.gov.uk\/government\/publications\/procurement-act-2023-guidance-documents-manage-phase\/guidance-contract-modifications-html): Updated July 2026. A public contract may be modified only on permitted grounds, a contract change notice must generally be published before the modification, and for contracts over \u00a35 million the modification or modified contract must be published within 90 days. This is why the skill flags public-contract changes without a notice.\n\nTest cases and an answer checker for this skill: https:\/\/skills.raq.com\/skills\/review-contract-change-log\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\/review-contract-change-log\nReferenced third-party materials retain their own terms.\n"},{"path":"examples\/worked-example.md","content":"# Unapproved acceleration\n\nWhat is agreed as at 2026-07-31?\n\n## Supplied material\n\nBaseline \u00a310,000 and 2026-08-10. Both parties must sign. C1 both signed, effective July 2: +\u00a3800 and +5 calendar days. Identical C1 copy enclosed. C2 supplier signature only: +\u00a3300 and -3 days. C3 both signed, effective Aug 1: -\u00a3100.\n\n## Worked answer\n\nAt 31 July the agreed value is \u00a310,800 and completion is 15 August 2026. C1 adds \u00a3800 and five days, and its duplicate counts once. C2 lacks the second signature. C3\u2019s \u00a3100 reduction takes effect in August.\n\n## Reasoning\n\nOnly one copy of C1 has both approval and effect by the cut-off.\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":"What is agreed as at 2026-07-31?\nReturn only the JSON specified in SKILL.md for this test.\n\nBaseline \u00a310,000 and 2026-08-10. Both parties must sign. C1 both signed, effective July 2: +\u00a3800 and +5 calendar days. Identical C1 copy enclosed. C2 supplier signature only: +\u00a3300 and -3 days. C3 both signed, effective Aug 1: -\u00a3100.\n"},{"path":"tests\/case-1\/expected.json","content":"{\n    \"value\": 10800,\n    \"completion\": \"2026-08-15\",\n    \"applied\": [\n        \"C1\"\n    ],\n    \"held\": [\n        \"C2\",\n        \"C3\"\n    ]\n}\n"},{"path":"tests\/case-1\/explanation.txt","content":"Only one copy of C1 has both approval and effect by the cut-off.\n"},{"path":"tests\/case-2\/request.txt","content":"Update the baseline using this change register.\nReturn only the JSON specified in SKILL.md for this test.\n\nAt 2026-10-01, contract \u20ac3,000 due 2026-11-01. C8 signed by both and effective 2026-09-28: replace completion with 2026-11-06, no fee change. C9 two inconsistent signed copies effective Sep 29, one +\u20ac30 and one +\u20ac50.\n"},{"path":"tests\/case-2\/expected.json","content":"{\n    \"value\": 3000,\n    \"completion\": \"2026-11-06\",\n    \"applied\": [\n        \"C8\"\n    ],\n    \"held\": [\n        \"C9\"\n    ]\n}\n"},{"path":"tests\/case-2\/explanation.txt","content":"The date change is effective despite its zero value. The conflicting fee change needs its operative version.\n"},{"path":"tests\/case-3\/request.txt","content":"Check the June recurring invoice and identify changes in force.\nReturn only the JSON specified in SKILL.md for this test.\n\nBaseline \u00a31,000 per month, completion 2026-12-31. Both signatures required. C01 effective May 1 signed by both: add \u00a3200\/month. C02 unsigned June proposal: from July replace the C01 uplift with \u00a3300\/month total. June recurring invoice \u00a31,500. As of June 30.\n"},{"path":"tests\/case-3\/expected.json","content":"{\n    \"value\": 1200,\n    \"completion\": \"2026-12-31\",\n    \"applied\": [\n        \"C01\"\n    ],\n    \"held\": [\n        \"C02\"\n    ],\n    \"billed_less_agreed\": 300\n}\n"},{"path":"tests\/case-3\/explanation.txt","content":"June is \u00a31,200, leaving \u00a3300 above the agreed charge. C02 is proposed, applies to a later period and describes a replacement.\n"},{"path":"tests\/case-4\/request.txt","content":"What agreed monthly charge applies at the end of July?\nReturn only the JSON specified in SKILL.md for this test.\n\nBaseline \u00a31,000\/month, completion 2026-12-31. Both signatures required. C01 approved by both effective May 1 adds \u00a3200\/month. C02 approved by both effective July 1 replaces the C01 uplift with \u00a3300\/month. As of July 31.\n"},{"path":"tests\/case-4\/expected.json","content":"{\n    \"value\": 1300,\n    \"completion\": \"2026-12-31\",\n    \"applied\": [\n        \"C01\",\n        \"C02\"\n    ],\n    \"held\": []\n}\n"},{"path":"tests\/case-4\/explanation.txt","content":"The July replacement supersedes the \u00a3200 uplift. The audit trail retains both approved notices.\n"}],"is_active":true,"is_approved":false}]}]}