Skip to content

docs(changelog): composite-policy written spec + template example rename - #204

Merged
rayyan224 merged 3 commits into
rfc/wrokflowfrom
changelog/cobalt-policy-registry-composite-policy-spec
Aug 18, 2026
Merged

docs(changelog): composite-policy written spec + template example rename#204
rayyan224 merged 3 commits into
rfc/wrokflowfrom
changelog/cobalt-policy-registry-composite-policy-spec

Conversation

@rayyan224

Copy link
Copy Markdown
Collaborator

Summary

  • Stacked on chore: workflow skills + composite-policy spec rewrite #203. Adds the full written specification at changelog/02_Cobalt_PolicyRegistry_composite_policy.md, generated from the point-form draft via the technical-document skill and verified against src/interfaces/IPolicyRegistry.sol.
  • Renames changelog/COMPOSITE_POLICY.md to changelog/TEMPLATE_COMPOSITE_POLICY.md, keeping the filled-in point-form draft as a worked example alongside the generic changelog/TEMPLATE_POINT_FORM.md, now that the feature has its own written entry.

Test plan

Converts the COMPOSITE_POLICY.md point-form draft into a full written
changelog entry at changelog/02_Cobalt_PolicyRegistry_composite_policy.md,
verified against src/interfaces/IPolicyRegistry.sol.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Interface Coverage

✅ All interface functions have test coverage.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown

📊 Forge Coverage (src/lib/)

🟡 ≥95% across all metrics — some metrics below 99%.

File Lines Stmts Branches Funcs
🟡 B20FactoryLib.sol 97.70% 98.00% 100.00% 95.00%
🔴 test/lib/ForceFeeder.sol 0.00% 0.00% 100.00% 0.00%
🔴 test/lib/PrecompileProbe.sol 0.00% 0.00% 0.00% 0.00%
🟢 MockActivationRegistry.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockActivationRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20Asset.sol 100.00% 100.00% 100.00% 100.00%
🟡 MockB20Factory.sol 98.96% 99.10% 100.00% 100.00%
🟢 MockB20Stablecoin.sol 100.00% 100.00% 100.00% 100.00%
🟢 MockB20Storage.sol 100.00% 100.00% 100.00% 100.00%
🟡 MockPolicyRegistry.sol 100.00% 99.54% 97.67% 100.00%
🟢 MockPolicyRegistryStorage.sol 100.00% 100.00% 100.00% 100.00%
Total 97.07% 97.52% 98.16% 97.00%

Full report: download artifact. To browse locally: make coverage (runs forge coverage + genhtml + opens the HTML report).

Keeps changelog/COMPOSITE_POLICY.md in place and adds a copy at
changelog/TEMPLATE_COMPOSITE_POLICY.md, alongside the generic
changelog/TEMPLATE_POINT_FORM.md, so both remain visible for comparison.

Co-Authored-By: Claude <noreply@anthropic.com>
@rayyan224
rayyan224 force-pushed the changelog/cobalt-policy-registry-composite-policy-spec branch from d30d628 to fc58c27 Compare August 18, 2026 15:35
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown

❌ Fork tests did not run

The build or setup step failed before any tests could execute. Check the workflow logs for details.

@@ -0,0 +1,226 @@
# ADR Template (Point Form)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be removed for prod, here to show how it works / generated from


## Summary

- Introduce two new `PolicyRegistry` policy types, `UNION` (OR) and `INTERSECT` (AND) — collectively

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the devloper fills out

@@ -0,0 +1,232 @@
# Composite Policies (UNION/INTERSECT)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long Form Document

@stephancill stephancill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Comment thread changelog/02_Cobalt_PolicyRegistry_composite_policy.md Outdated
Co-authored-by: Stephan Cilliers <stephan.cilliers@coinbase.com>
@rayyan224
rayyan224 marked this pull request as ready for review August 18, 2026 18:57
@rayyan224
rayyan224 merged commit 450a25d into rfc/wrokflow Aug 18, 2026
6 of 7 checks passed
@rayyan224
rayyan224 deleted the changelog/cobalt-policy-registry-composite-policy-spec branch August 18, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants