Add WorldManifest model and world_manifest_from_spec helper#172
Merged
aidankhogg merged 1 commit intoJun 30, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
world_id/world_nameeven when no stronger world-id is present in the spec (spec.metadata.nameis used as the initial value).Description
WorldManifestPydantic model innetengine.spec.authoritywith fields:world_id,world_name,lifecycle,authority_model,authorities,dns_root_authority,ca_trust_authority,platform_identity_issuer,inworld_identity_issuer,world_registry_authority,domain_registry_authority,numbering_authority,transit_boundary_authority,real_internet_posture,cross_world_posture,exported_authority_metadata,importable_authority_metadata, andtrust_bundles._trust_bundles_from_spechelper to deriveTrustBundleentries fromspec.gateway_portal.cross_world.peersand addworld_manifest_from_spec(spec: NetEngineSpec) -> WorldManifestwhich seeds bothworld_idandworld_namefromspec.metadata.name, wires default authority IDs viadefault_authorities_for_spec, copies gateway posture, and attaches derived trust bundles.WorldManifestandworld_manifest_from_specfromnetengine.specby updatingnetengine/spec/__init__.py.tests/test_authority_spec.pycovering the manifest defaults and cross-world trust bundle derivation.Testing
pytest tests/test_authority_spec.py -qand received all tests passing (24 passed).python -m compileall netengine/spec/authority.py netengine/spec/__init__.py tests/test_authority_spec.pywhich completed successfully.Codex Task