Repository navigation
Closed
Labels
area:devtoolsDevtools and repo control-plane toolingarea:qaQAphase:architectureArchitecture and design spinetheme:verifiabilitySchema-native proof and evidence architecturetype:refactorCode restructuring
Description
Problem
Topology/source structural checks are useful only when they protect real architectural boundaries. They become harmful when they freeze today's file placement, owner labels, or source package taxonomy without proving behavior.
Current-tree audit evidence:
devtools verify-layering --jsonreports zero violations. This appears to be a real boundary gate: substrate packages must not import CLI/MCP/site/UI adapters.devtools verify-topology --jsonreports no orphans, missing files, conflicts, or kernel-rule violations, but still reports oneTBD:polylogue/storage/blob_gc.py.docs/topology-status.mdrecords that sameblob_gc.pyTBD as requiring explicit routing.- Proof Pack treats topology/manifests as structural obligation inputs, but that should not imply topology placement equals behavior proof.
Scope
Audit and simplify topology/source structural gates so blocking checks protect durable architecture, while implementation-shape checks become advisory or disappear.
Decide for each topology/source gate whether it is:
- blocking architectural boundary;
- advisory placement hygiene;
- generated-doc freshness check;
- behavior/source-provider check better owned by tests;
- obsolete.
Likely files:
devtools/verify_topology.pydevtools/build_topology_projection.pydevtools/render_topology_status.pydevtools/verify_layering.pydocs/plans/topology-target.yamldocs/plans/layering.yamldocs/topology-status.mdtests/unit/devtools/test_topology_projection_witness.pytests/unit/devtools/test_verify_layering.pyif present or newly added
Required decisions
- Resolve
polylogue/storage/blob_gc.py: assign it to an explicit storage/blob integrity owner or remove it from blocking topology expectations if topology placement is advisory there. - Decide whether
verify-topologyshould fail on exact placement drift or only on orphans/missing/root-kernel violations. - Keep
verify-layeringblocking unless evidence shows the import-boundary policy is wrong. - Move source/provider behavior concerns to parser/source tests rather than topology labels where possible.
Non-goals
- Do not delete generated topology docs if they are useful as navigation.
- Do not make topology a behavior-proof substitute.
- Do not use this issue to reorganize the whole package tree.
- Do not weaken the substrate-vs-surface layering rule without an explicit architecture decision.
Acceptance criteria
- Each topology/layering/source structural check is classified as blocking, advisory, freshness-only, behavior-owned-elsewhere, or obsolete.
polylogue/storage/blob_gc.pyno longer appears as unresolvedTBDinverify-topology/docs/topology-status.md.- Blocking topology checks are limited to durable architecture contracts.
- Advisory placement output is not counted as serious verification evidence in Proof Pack.
- Tests cover the chosen blocking/advisory behavior.
Verification
devtools verify-layering --jsondevtools verify-topology --jsondevtools render-topology-statusdevtools render-all --check- targeted pytest for topology/layering devtools behavior
Metadata
Metadata
Assignees
Labels
area:devtoolsDevtools and repo control-plane toolingarea:qaQAphase:architectureArchitecture and design spinetheme:verifiabilitySchema-native proof and evidence architecturetype:refactorCode restructuring
Activity
Sinity commentedon May 6, 2026
Agent trap note
Do not make topology stricter just because the generated manifest can describe more files.
Blocking checks should protect architectural contracts: root kernel boundaries, missing/orphaned files, and substrate/surface separation where those are intentional. Exact package placement and owner labels are navigation/advisory unless they protect a real boundary.
Speed-up for implementers: start by resolving
polylogue/storage/blob_gc.pyand writing down whether each topology finding class is blocking or advisory before changing the generator broadly.Sinity commentedon May 7, 2026
Intended scope
Classify each topology/layering/source structural check as blocking advisory freshness-only or behavior-owned-elsewhere. Keep blocking checks limited to durable architecture contracts: orphans missing conflicts kernel-rule in verify-topology and import-boundary violations in verify-layering.
Non-goals
Files expected to change
devtools/verify_topology.py— docstring classification of finding classesdevtools/verify_layering.py— docstring marking as blockingdevtools/build_topology_projection.py— docstring clarifying navigator roledevtools/render_topology_status.py— docstring classifying as freshness checktests/unit/devtools/test_topology_gates.py— new: tests for blocking/advisory behaviordocs/topology-status.md— regenerated (already clean, 0 TBD)Focused checks
devtools verify-layering --jsondevtools verify-topology --jsondevtools render-topology-statusdevtools render-all --checkpytest tests/unit/devtools/test_topology_gates.py -qResolution notes
blob_gc.pyalready hasowner: storage-rootand a concrete target — no longer TBD. The acceptance criterion is already satisfied by current topology-target.yaml.Issue should close after PR
Yes — all ACs will be satisfied.
refactor(topology): classify structural gates as blocking vs advisory (…
Sinity commentedon May 7, 2026
Closeout: All topology/source gates classified as blocking (orphans, missing, conflicts, kernel_rule, layering) vs advisory (TBD, placement drift). Source/provider behavior relocation to parser tests deferred — docstrings already clarify topology is not a behavior proof. #853 closeout already documents this flattening. Closing.
refactor(topology): classify gates as blocking vs advisory (#875)
refactor(topology): classify gates as blocking vs advisory (#875)