# Install after handoff.notation. This is application behavior, not access control.
concept!: &review
with:
approved: {description: "approved", the: xyz.tonk.examples.review/approved, as: boolean, cardinality: one}
review!:
this: urn:example:work:brief
approved: false
command!: &review-work
with:
subject: {description: "subject", the: xyz.tonk.examples.review-work/subject, as: entity, cardinality: one}
checked: {description: "checked", the: xyz.tonk.examples.review-work/checked, as: boolean, cardinality: one}
rule!:
assert!: review
when:
- assert: review-work
where: {subject: ?this, checked: ?approved}
command!: &edit-artifact
with:
target: {description: "target", the: xyz.tonk.examples.edit-artifact/target, as: entity, cardinality: one}
artifact: {description: "artifact", the: xyz.tonk.examples.edit-artifact/artifact, as: text, cardinality: one}
rule!:
assert!: work
when:
- assert: edit-artifact
where: {target: ?this, artifact: ?artifact}
- assert: work
where: {this: ?this, title: ?title, owner: ?owner, status: ?status, next: ?next}
rule!:
assert!: review
when:
- assert: edit-artifact
where: {target: ?this}
- assert: ==
where: {this: ?approved, is: false}
view!:
this: review
show:
ui: ''
directory: 'Review the brief
'