Follow up on unmanaged US runtime certification and edge cases

Aberta
#762 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
42/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
backend, testing

Direção de pesquisa

Start by reviewing the second full review of #761 at commit 5f51b00 and the follow-up commit 21bf0a3, then inspect the managed US entrypoints and country constructor paths discussed in F3 and F6. Check the existing runtime tests and CI on #761, and review the native_input_period handling and changelog for F7. Done when the follow-ups are addressed while preserving the stated certification, provenance, and schema-v1 constraints.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

The second full review of #761 at 5f51b00 left these follow-ups after resolving the two P1 findings. Commit 21bf0a3 addresses the receipt and development-runbook wording findings and clarifies that the empty-file error applies to an empty HDF5 root.

  • F3 (P2): managed US entrypoints can request the remote data-release manifest repeatedly during one call chain when an offline request fails. The fetch cache retains successful responses, not exceptions. A network recovery can also change the recorded compatibility basis between calls. The review demonstrated latency and basis-consistency concerns, with no wrong result or certificate. Any improvement must preserve fresh installed/loaded-version and data-build checks; consider reuse within a call chain rather than weakening certification.
  • F6 (P3): with allow_unmanaged=True, a local directory reaches the country constructor before the later certification check. Consider refusing non-file local paths earlier. The existing path still requires certification before emitting certified provenance.
  • F7 (P3): clarify the accepted string representation of native_input_period, the meaning of managed_by alongside data_selection="explicit_local_unmanaged", and the changelog classification of the new native-period feature. The integer 2017 currently differs from the declared string "2017".

Preserve explicit local US provenance with certified_by=None, UK certification behavior, and the schema-v1 restriction to UK execution receipts. Keep verification of #761's current installed-runtime tests and CI on the PR; this issue does not establish their completion.

Linguagem predominante
Python
Estrelas
8
Forks
10
Merge médio
1d 22h
PRs com merge (30d)
17

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de PolicyEngine/policyengine.py

Todas as issues de PolicyEngine/policyengine.py

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.