ai-cfia / ai-cfia/fertiscan

Scoped general exemptions

未关闭
#670 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
backend
主要语言
HTML
星标
5
派生
2
平均合并
1 天 7 小时
30 天内合并 PR
1

描述

# Context

`Provision.is_general_exemption` is a boolean flag. When set, a provision is treated as exempting every requirement in the legislation. In practice, general exemptions are scoped — they apply to specific sections under specific conditions, not to the entire act. The boolean cannot express that scope, so curators either over-apply the exemption (producing incorrect verdicts) or work around it by promoting it to per-requirement modifiers (which loses the "general" character).

# Outcome

A provision marked as a general exemption can declare which sections of the legislation it applies to, and under what conditions, while remaining identifiable as a general exemption rather than a per-requirement modifier.

# Acceptance criteria

- The scope of a general exemption (which provisions / sections it applies to) is recorded explicitly.
- A general exemption's scope can be queried without manual review of legal text.
- Compliance evaluation only considers a general exemption when the requirement under evaluation falls within its declared scope.
- Existing `is_general_exemption` data migrates to the new model without behavioural regression.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。