Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update grouping of fixtures to clarify tasks #17

Open
bgins opened this issue Oct 2, 2023 · 0 comments
Open

Update grouping of fixtures to clarify tasks #17

bgins opened this issue Oct 2, 2023 · 0 comments

Comments

@bgins
Copy link
Contributor

bgins commented Oct 2, 2023

Summary

Problem

The current fixtures mix validation and capability checks into verify and refute tasks.

Impact

The task intention for the fixtures is confounded and would be clearer if broken into more task categories.

Solution

Break the fixtures into groups like

  1. validate (the UCAN is valid)
  2. prove (the UCAN grants some capability with respect to some issuer)
  3. refute (the UCAN is invalid)
  4. disprove (the UCAN does not grant some capability with respect to some issuer)

Names not final! But the idea is that we would separate out tests that require a check for capabilities, and provide extra context like which capabilities should be available and a timestamp when they should be available.

Additionally, we may be able to add build fixtures where an implementation creates proofs and UCAN, puts the proofs in a store, then checks that their UCAN satisfies some capability check. This would replace the flawed build fixtures referenced in #14.

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

No branches or pull requests

1 participant