2.5 KiB
2.5 KiB
PR-09.4 - Specs Refresh: ModuleId-Only + EntrypointRef Normative Alignment
Briefing
Com a remocao estrutural de moduleKey, as specs normativas precisam refletir:
- identidade de modulo densa (
ModuleId), - entrypoint qualificado (
EntrypointRef), - ausencia de fallback textual.
Motivation
Dor atual que esta PR resolve
- Specs ainda descrevem partes name-only/text-based em pontos criticos.
- Matriz pode afirmar
passsem refletir contratos mais estritos. - Risco de regressao por lacuna documento->implementacao.
Target
Atualizar o baseline normativo para o modelo final:
IRBackendestrutural semmoduleKey,EntrypointRef(moduleId, callableName)obrigatorio em handoff executavel,- ordenacao/lowering sem dependencias textuais.
Dependencies
Prerequisitos diretos:
PR-09.1PR-09.2PR-09.3
Scope
- Revisar e atualizar specs:
- PBS 13 (Lowering IRBackend),
- General 20 (IRBackend -> IRVM),
- General 15 (Bytecode mapping entrypoint linkage),
- General 22 (matriz de conformidade).
- Registrar decisao de corte definitivo (
moduleKeyremovido).
Non-Goals
- Nao alterar implementação de runtime nesta PR.
- Nao introduzir novo formato de arquivo para
program.pbx.
Method
O que deve ser feito explicitamente
- Em PBS13 e G20:
- trocar obrigacoes name-only por
EntrypointRefqualificado, - declarar
ModuleIdcomo identidade estrutural unica.
- trocar obrigacoes name-only por
- Em G15:
- manter
func_id=0como entrypoint selecionado porEntrypointRef.
- manter
- Em G22:
- adicionar/ajustar requirement rows para:
- no-moduleKey structural identity,
- strict qualified entrypoint,
- moduleid-only ordering.
- adicionar/ajustar requirement rows para:
Acceptance Criteria
- Nenhuma spec normativa relevante menciona
moduleKeycomo identidade estrutural. - Matriz de conformidade cobre explicitamente obrigações novas.
BackendConformanceMatrixSpecTeste gate hard-policy permanecem verdes.
Tests
:prometeu-compiler:prometeu-build-pipeline:test --tests *BackendConformanceMatrixSpecTest*:prometeu-compiler:prometeu-build-pipeline:test --tests *BackendClaimScopeSpecTest*
Affected Documents
docs/pbs/specs/13. Lowering IRBackend Specification.mddocs/general/specs/20. IRBackend to IRVM Lowering Specification.mddocs/general/specs/15. Bytecode and PBX Mapping Specification.mddocs/general/specs/22. Backend Spec-to-Test Conformance Matrix.md
Open Questions
- Nenhuma. Esta PR e de alinhamento normativo.