<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xml:base="https://docs.spec-kitty.ai/plans/refactor/slice-f-mission-debrief/">
  <id>https://docs.spec-kitty.ai/plans/refactor/slice-f-mission-debrief/</id>
  <title>Slice F Mission Debrief</title>
  <updated>2026-08-12T00:00:00.000Z</updated>
  <author><name>Spec Kitty</name></author>
  <link rel="alternate" type="text/html" href="https://docs.spec-kitty.ai/plans/refactor/slice-f-mission-debrief/"/>
  <summary>Debrief for the slice-f-multi-context-extensibility mission (121) on the org-doctrine-layer branch: what shipped and the lessons carried forward.</summary>
  <content type="html">&lt;blockquote&gt;
&lt;p&gt;⚠ &lt;strong&gt;Retired 2026-08-12 (&lt;code dir=&quot;auto&quot;&gt;doc_status: deprecated&lt;/code&gt;).&lt;/strong&gt; Slice-F working note; the Slice-F mission &lt;code dir=&quot;auto&quot;&gt;slice-f-multi-context-extensibility-01KRX5C8&lt;/code&gt; merged (commit &lt;code dir=&quot;auto&quot;&gt;2623a22db&lt;/code&gt;, Epic #1111). Content preserved as an audit-trail record.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;span id=&quot;slice-f-mission-debrief&quot;&gt;&lt;/span&gt;
&lt;p&gt;&lt;strong&gt;Mission:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;slice-f-multi-context-extensibility-01KRX5C8&lt;/code&gt; (mission_number=121)
&lt;strong&gt;Branch:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;feat/org-doctrine-layer&lt;/code&gt;
&lt;strong&gt;Squash merge:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;9067ab3b&lt;/code&gt; (2026-05-18)
&lt;strong&gt;Duration:&lt;/strong&gt; 1 day (specify → merge)
&lt;strong&gt;Scope:&lt;/strong&gt; 12 WPs across 1 collapsed lane (planned as 4 lanes; the dependency graph collapsed all 12 into lane-a per the finalize-tasks algorithm)
&lt;strong&gt;Stats:&lt;/strong&gt; 245 files changed, +12 912 / −3 076&lt;/p&gt;
&lt;h2 id=&quot;goal&quot;&gt;Goal&lt;/h2&gt;
&lt;p&gt;Land Issue #1111 Slice F (3 architectural axes: three-layer DRG resolution per #832, monorepo CharterScope per #522/ADR-8, composable workflow sequencing per #682) plus 5 absorbed remediations from the Mission B post-merge architectural review.&lt;/p&gt;
&lt;h2 id=&quot;what-shipped&quot;&gt;What shipped&lt;/h2&gt;
&lt;h3 id=&quot;axis-1--three-layer-drg-resolution-shipped--org--project&quot;&gt;Axis 1 — Three-layer DRG resolution (&lt;code dir=&quot;auto&quot;&gt;shipped&lt;/code&gt; ← &lt;code dir=&quot;auto&quot;&gt;org&lt;/code&gt; ← &lt;code dir=&quot;auto&quot;&gt;project&lt;/code&gt;)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;OrgDRGFragment&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;OrgDRGConflict&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;OrgDRGConflictError&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;OrgPackMissingError&lt;/code&gt; in &lt;code dir=&quot;auto&quot;&gt;src/charter/drg.py&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;load_org_drg(repo_root)&lt;/code&gt; reads &lt;code dir=&quot;auto&quot;&gt;.kittify/config.yaml::organisation_packs&lt;/code&gt; in declaration order&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;merge_three_layers(shipped, org_fragments, project)&lt;/code&gt; mints URNs at merge time, threads provenance via &lt;code dir=&quot;auto&quot;&gt;_tag_source()&lt;/code&gt; Pydantic-v2 frozen-bypass&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;charter lint&lt;/code&gt; extension lints all three layers together&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;doctrine org init&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;doctrine org validate&lt;/code&gt; operator UX&lt;/li&gt;
&lt;li&gt;Hard-fail on conflict with named-source error (mirrors Mission B FR-015 missing-pack policy)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;axis-2--monorepo-charterscope-adr-8&quot;&gt;Axis 2 — Monorepo CharterScope (ADR-8)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;CharterScope&lt;/code&gt; dataclass with &lt;code dir=&quot;auto&quot;&gt;default(repo_root)&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;resolve(repo_root, feature_dir)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;CharterScopeConfig&lt;/code&gt; Pydantic model (FR-140 round-trip target, flipped SKIPPED → PASSED at WP09)&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;_CharterScopeEntry&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;CharterScopeConflict&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;CharterScopeNotFound&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;build_with_scope(repo_root, feature_dir, **kwargs)&lt;/code&gt; wrapper that resolves scope then calls &lt;code dir=&quot;auto&quot;&gt;build_charter_context&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;ADR-8 (&lt;code dir=&quot;auto&quot;&gt;docs/adr/3.x/2026-05-18-1-monorepo-charter-scope.md&lt;/code&gt;, 232 lines): Status / Context / Decision / Rationale / Alternatives / Out-of-scope&lt;/li&gt;
&lt;li&gt;Single-project byte-stability preserved&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;axis-3--composable-workflow-sequencing&quot;&gt;Axis 3 — Composable workflow sequencing&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;WorkflowSchema&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;WorkflowSequence&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;ActionStep&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;UnknownWorkflowError&lt;/code&gt; in &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/next/_internal_runtime/workflow_schema.py&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;workflow_registry.py&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;software-dev-default.workflow.yaml&lt;/code&gt; (byte-stable canonical form, parity with today’s hardcoded action→next-step mapping)&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;our-team-design-first.workflow.yaml&lt;/code&gt; fixture for tests&lt;/li&gt;
&lt;li&gt;Wired through &lt;code dir=&quot;auto&quot;&gt;planner.py&lt;/code&gt; (&lt;code dir=&quot;auto&quot;&gt;resolve_next_workflow_action&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;_resolve_workflow_for_mission&lt;/code&gt;) + &lt;code dir=&quot;auto&quot;&gt;prompt_builder.py&lt;/code&gt; (&lt;code dir=&quot;auto&quot;&gt;_cached_workflow_for&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;meta.json::workflow_id&lt;/code&gt; lookup; default &lt;code dir=&quot;auto&quot;&gt;software-dev-default&lt;/code&gt; if absent&lt;/li&gt;
&lt;li&gt;Unknown &lt;code dir=&quot;auto&quot;&gt;workflow_id&lt;/code&gt; raises &lt;code dir=&quot;auto&quot;&gt;UnknownWorkflowError&lt;/code&gt; (no silent fallback per FR-015)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;5-absorbed-remediations&quot;&gt;5 absorbed remediations&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;DRIFT-1 alias clean deletion&lt;/strong&gt; (HiC §5a.1, C-003): &lt;code dir=&quot;auto&quot;&gt;resolve_governance&lt;/code&gt; removed from charter with no &lt;code dir=&quot;auto&quot;&gt;DeprecationWarning&lt;/code&gt;, no sunset. Regression test (&lt;code dir=&quot;auto&quot;&gt;tests/charter/test_alias_deleted_regression.py&lt;/code&gt;) prevents reintroduction.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ratchet burn-down model&lt;/strong&gt; (HiC §5a.2, C-004 binding): &lt;code dir=&quot;auto&quot;&gt;tests/architectural/_baselines.yaml&lt;/code&gt; with per-category baselines + &lt;code dir=&quot;auto&quot;&gt;test_ratchet_baselines.py&lt;/code&gt; meta-test. &lt;code dir=&quot;auto&quot;&gt;test_no_dead_modules._ALLOWLIST&lt;/code&gt; refactored into per-category frozensets. Cat-7 shrunk 10 → 7 in WP01 by deleting &lt;code dir=&quot;auto&quot;&gt;doctrine.templates.repository&lt;/code&gt; (&lt;code dir=&quot;auto&quot;&gt;CentralTemplateRepository&lt;/code&gt; — Mission 057 artifact, 3+ years orphaned), &lt;code dir=&quot;auto&quot;&gt;glossary.prompts&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;glossary.rendering&lt;/code&gt;, and their tests.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Symbol-level dead-code gate&lt;/strong&gt;: &lt;code dir=&quot;auto&quot;&gt;test_no_dead_symbols.py&lt;/code&gt; walks &lt;code dir=&quot;auto&quot;&gt;__all__&lt;/code&gt; declarations. &lt;code dir=&quot;auto&quot;&gt;__all__&lt;/code&gt; convention required on &lt;code dir=&quot;auto&quot;&gt;src/charter/&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;src/kernel/&lt;/code&gt; modules per C-007.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Catalog-miss CLI visibility&lt;/strong&gt; (originally framed as RISK-3 partial-closure follow-through — reframed at HiC adjudication as cosmetic UX, not RISK-3 fix; the original Mission B HIGH-1 was a misdiagnosis): &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/cli/logging_bootstrap.py&lt;/code&gt; adds &lt;code dir=&quot;auto&quot;&gt;logging.captureWarnings(True)&lt;/code&gt; + Rich-aware handler routing WARN+ records through Rich &lt;code dir=&quot;auto&quot;&gt;Console.print&lt;/code&gt; to stderr. Tightened ATDD assertion to &lt;code dir=&quot;auto&quot;&gt;WARNING\s{2,}&lt;/code&gt; (RichHandler’s double-space prefix) so the test genuinely red→greens.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Contract round-trip CI gate&lt;/strong&gt; (FR-140, C-008): &lt;code dir=&quot;auto&quot;&gt;tests/contract/test_example_round_trip.py&lt;/code&gt; walks &lt;code dir=&quot;auto&quot;&gt;kitty-specs/*/contracts/*.md&lt;/code&gt;, lifts YAML codeblocks tagged with &lt;code dir=&quot;auto&quot;&gt;pydantic_model:&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;expect:&lt;/code&gt; frontmatter. Three new contracts flipped SKIPPED → PASSED at their respective WPs (&lt;code dir=&quot;auto&quot;&gt;charter-scope-resolution.md::CharterScopeConfig&lt;/code&gt; at WP09, &lt;code dir=&quot;auto&quot;&gt;workflow-sequence-schema.md&lt;/code&gt; blocks 1/2/3 at WP10).&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;explicitly-descoped-hic-5a3-c-005-binding&quot;&gt;Explicitly descoped (HiC §5a.3, C-005 binding)&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;HIGH-3 auth-transport unwired security module&lt;/strong&gt; — descoped from mission. NO source change to &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/auth/transport.py&lt;/code&gt; (binding). Delivered as: ADR-2 (&lt;code dir=&quot;auto&quot;&gt;docs/adr/3.x/2026-05-18-2-delete-specify-cli-auth-transport.md&lt;/code&gt;, 101 lines: dead-code finding, audit evidence with &lt;code dir=&quot;auto&quot;&gt;rg&lt;/code&gt; command, DELETE recommendation, HiC §5a.3 verbatim deferral, reserved “deleted in commit X” field for Robert) + GitHub issue &lt;a href=&quot;https://github.com/Priivacy-ai/spec-kitty/issues/1118&quot;&gt;Priivacy-ai/spec-kitty#1118&lt;/a&gt; labeled for Robert’s queue.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;closing-artifacts&quot;&gt;Closing artifacts&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;tests/integration/test_slice_f_cross_axis.py&lt;/code&gt; — 3 cross-cutting integration tests exercising all 3 axes together with a shared &lt;code dir=&quot;auto&quot;&gt;tmp_complex_setup&lt;/code&gt; fixture&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;docs/context/charter.md&lt;/code&gt; — 10 Slice F terms promoted from &lt;code dir=&quot;auto&quot;&gt;candidate&lt;/code&gt; → &lt;code dir=&quot;auto&quot;&gt;canonical&lt;/code&gt; (C-010)&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;.kittify/charter/charter.md&lt;/code&gt; amendments:
&lt;ul&gt;
&lt;li&gt;Burn-down policy: per-category allowlist sizes may shrink between releases but never grow except via documented exception; Cat-7 MUST shrink ≥2 entries per major release with target 0 by 4.0; pure-shim files target 0 by 4.0&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;__all__&lt;/code&gt; convention: required on modules under &lt;code dir=&quot;auto&quot;&gt;src/charter/&lt;/code&gt; + &lt;code dir=&quot;auto&quot;&gt;src/kernel/&lt;/code&gt; (enforced by &lt;code dir=&quot;auto&quot;&gt;test_no_dead_symbols.py&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;ATDD-first discipline: RED commit required before implementation; reviewer verifies red→green&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;authority_paths&lt;/code&gt; extended to include &lt;code dir=&quot;auto&quot;&gt;docs/adr/3.x/&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;process-retrospective&quot;&gt;Process retrospective&lt;/h2&gt;
&lt;h3 id=&quot;what-worked&quot;&gt;What worked&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;ATDD-first discipline (C-011)&lt;/strong&gt; caught two implementation defects that would otherwise have shipped:
&lt;ul&gt;
&lt;li&gt;WP05 cycle-1 false-positive RED: the assertion was satisfied by Python’s default &lt;code dir=&quot;auto&quot;&gt;logging.lastResort&lt;/code&gt;, not by the bootstrap. Tightening the assertion to &lt;code dir=&quot;auto&quot;&gt;WARNING\s{2,}&lt;/code&gt; (RichHandler-specific) made the test genuinely load-bearing.&lt;/li&gt;
&lt;li&gt;WP08 cycle-1 dead-code anti-pattern: 14 ATDD tests passed but ZERO live callers existed. Renaming + wiring into &lt;code dir=&quot;auto&quot;&gt;prompt_builder.py&lt;/code&gt; made it real.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HiC adjudication at the start of the mission&lt;/strong&gt; prevented two costly drifts:
&lt;ul&gt;
&lt;li&gt;Q5 (Cat-7 module deletion) escalated to user → DELETE rather than archive → cleaner end-state&lt;/li&gt;
&lt;li&gt;C-005 (auth-transport) descoped → preserved Robert’s prerogative over the SaaS auth path&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Cross-axis integration test (WP12)&lt;/strong&gt; as the closing acceptance gate caught zero defects but proved cross-cutting compatibility — high-confidence merge signal.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WP09 Opus dispatch for the architecture WP&lt;/strong&gt; delivered ADR-8 + CharterScope cleanly in one cycle. Model tiering by WP shape (saved as memory) confirmed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Per-WP “WP-in-flight Category C” allowlists with explicit removal triggers&lt;/strong&gt; (WP09 + WP10 → cleared by WP11) kept the dead-code gates honest across the mission without permanent debt.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;what-failed-and-was-corrected-mid-mission&quot;&gt;What failed and was corrected mid-mission&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;WP03 cycle-1 scope creep&lt;/strong&gt;: the implementer created stub Pydantic models for WP06/WP09/WP10 future-WP territory to satisfy FR-140 imports. Orchestrator remediation per HiC directive: deleted stubs, converted &lt;code dir=&quot;auto&quot;&gt;ImportError&lt;/code&gt; to &lt;code dir=&quot;auto&quot;&gt;pytest.skip(...)&lt;/code&gt; with future-WP attribution, added binding skipif-removal acceptance criteria to WP06/WP09/WP10 task files. Pattern: “stubs that are anything more than an empty class get rejected; the future WP owns its own scaffolding”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;WP05 reframe&lt;/strong&gt;: the original HIGH-1 RISK-3 finding from Mission B was a misdiagnosis. &lt;code dir=&quot;auto&quot;&gt;_catalog_miss&lt;/code&gt; already emitted to stderr via &lt;code dir=&quot;auto&quot;&gt;warnings.warn&lt;/code&gt;. WP05’s actual deliverable is cosmetic UX (Rich-formatted output), not a missing-visibility fix. Carrying this misdiagnosis forward would have over-stated WP05’s importance and under-stated the bootstrap’s narrower contribution.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lane-purity guard cycles&lt;/strong&gt;: 3 attempts to fix &lt;code dir=&quot;auto&quot;&gt;kitty-specs/.../contracts/ratchet-baseline-format.md::block-1&lt;/code&gt; from the lane were each reverted by the next WP’s move-task cleanup. Eventually accepted as a documented known regression — mission-merge auto-resolved at squash time. Pattern saved to memory: lane-side &lt;code dir=&quot;auto&quot;&gt;kitty-specs/&lt;/code&gt; edits are load-bearing-reverted by the guard; never fight the guard.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parallelization attempt failed&lt;/strong&gt;: &lt;code dir=&quot;auto&quot;&gt;lanes.json&lt;/code&gt; post-finalize edits do NOT propagate to runtime lane routing. &lt;code dir=&quot;auto&quot;&gt;spec-kitty agent action implement WP09&lt;/code&gt; ignored an attempted lane-d split and routed to lane-a. Abandoned mid-mission parallelism; ran the rest sequentially. Pattern saved to memory: lane decomposition is frozen at &lt;code dir=&quot;auto&quot;&gt;finalize-tasks&lt;/code&gt; time.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;246 pre-existing failure rows&lt;/strong&gt; caught at WP08 boundary: earlier sweeps without &lt;code dir=&quot;auto&quot;&gt;--continue-on-collection-errors&lt;/code&gt; masked ~30 failures behind 19 collection errors. Three-commit remediation wave (A1 + A2 + A3) reduced 246 → 34 (86% fix rate). Top fix: deleted lines 9–13 of &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/next/_internal_runtime/schema.py&lt;/code&gt; (a &lt;code dir=&quot;auto&quot;&gt;from . import workflow_schema&lt;/code&gt; side-effect import to a non-existent module) — root-cause for 44 problem rows.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;cycle-counts&quot;&gt;Cycle counts&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;9 of 12 WPs approved on cycle 1&lt;/li&gt;
&lt;li&gt;3 WPs needed cycle 2: WP03 (orchestrator remediation), WP05 (reframe + tightened assertion), WP08 (dead-code wiring)&lt;/li&gt;
&lt;li&gt;0 WPs reached cycle 3 / arbiter mode&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;test-outcome-at-merge-time&quot;&gt;Test outcome at merge time&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;NFR-001 23/23 governance-contract fixtures passing (preserved throughout)&lt;/li&gt;
&lt;li&gt;ATDD coverage: every in-scope AC has a red→green-verified test (&lt;code dir=&quot;auto&quot;&gt;atdd-coverage.md&lt;/code&gt; is authoritative)&lt;/li&gt;
&lt;li&gt;Full sweep: 34 pre-existing failures at merge; 0 new failures introduced by Slice F WPs (every WP review verified failure-count ≤ 34)&lt;/li&gt;
&lt;li&gt;Ruff clean on all WP-diff-scoped files&lt;/li&gt;
&lt;li&gt;Layer rule clean: zero &lt;code dir=&quot;auto&quot;&gt;from specify_cli&lt;/code&gt; imports added to &lt;code dir=&quot;auto&quot;&gt;src/charter/&lt;/code&gt;; zero &lt;code dir=&quot;auto&quot;&gt;from charter | from doctrine | from kernel&lt;/code&gt; imports added to &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/next/_internal_runtime/&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;hic-adjudications-recorded-for-reference&quot;&gt;HiC adjudications recorded for reference&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;C-003 DRIFT-1 alias deletion&lt;/strong&gt;: do it now in 3.2.x, clean removal, no deprecation warning, no sunset. Rationale: “user impact is limited as most of the internal system is a black-box for them; our overuse of ‘eventual deprecation’ and shimming has bit us before, let’s avoid that and do the move cleanly.”&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;C-004 burn-down policy&lt;/strong&gt;: binding, charter-pinned (not advisory). Encoded in &lt;code dir=&quot;auto&quot;&gt;.kittify/charter/charter.md&lt;/code&gt; with quantitative targets.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;C-005 auth-transport descope&lt;/strong&gt;: ADR + GitHub ticket only, NO source change. Rationale: “be extremely careful with auth-path cleanup as Robert (lead maintainer) has indicated the SaaS platform has had recent auth-related challenges. Best to highlight, add research/evidence and recommendations, but leave decision and cleanup action to Robert.”&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;open-follow-ups&quot;&gt;Open follow-ups&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/Priivacy-ai/spec-kitty/issues/1118&quot;&gt;Priivacy-ai/spec-kitty#1118&lt;/a&gt; — Robert’s queue: DELETE &lt;code dir=&quot;auto&quot;&gt;src/specify_cli/auth/transport.py&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;HIGH-4 &lt;code dir=&quot;auto&quot;&gt;policy.audit&lt;/code&gt; unwired compliance module — separate mission, post-Slice F&lt;/li&gt;
&lt;li&gt;MED-1 deployed-skill drift — separate mission&lt;/li&gt;
&lt;li&gt;Post-Mission-B: agent profile enforcement audit (deferred memory; see &lt;code dir=&quot;auto&quot;&gt;~/.claude/projects/.../memory/project_post_b_agent_profile_enforcement.md&lt;/code&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;memory-captured-during-mission&quot;&gt;Memory captured during mission&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;feedback_model_tiering_by_wp_shape.md&lt;/code&gt; — Sonnet default; Opus only for architecture (WP06, WP09)&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;feedback_lane_purity_vs_in_mission_reconciliation.md&lt;/code&gt; — don’t fight the lane-purity guard; accept the 1 known regression on contract files; mission-merge resolves&lt;/li&gt;
&lt;li&gt;Companion to the above: lanes.json post-finalize edits don’t propagate; lane decomposition is effectively frozen after &lt;code dir=&quot;auto&quot;&gt;finalize-tasks&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;next-steps&quot;&gt;Next steps&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Mission-level review&lt;/strong&gt; (&lt;code dir=&quot;auto&quot;&gt;/spec-kitty-mission-review&lt;/code&gt; with architect-alphonso): spec → code fidelity, FR coverage audit, cross-WP drift, security review of the descoped auth-transport ADR&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Post-review remediations&lt;/strong&gt; if HIGH findings emerge&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Branch PR upstream&lt;/strong&gt; (&lt;code dir=&quot;auto&quot;&gt;feat/org-doctrine-layer&lt;/code&gt; → &lt;code dir=&quot;auto&quot;&gt;main&lt;/code&gt; on Priivacy-ai/spec-kitty) — bundles Mission B + Slice F + the 5 absorbed remediations as a single charter/doctrine baseline slice&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2 id=&quot;post-merge-remediation-cycle-1-2026-05-19&quot;&gt;Post-merge remediation cycle 1 (2026-05-19)&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Reviewer:&lt;/strong&gt; architect-alphonso (via claude:opus-4-7[1m]) at commit &lt;code dir=&quot;auto&quot;&gt;a130a85d&lt;/code&gt;
&lt;strong&gt;Agent:&lt;/strong&gt; python-pedro:implementer (via claude:sonnet-4-6)
&lt;strong&gt;Findings addressed:&lt;/strong&gt; HIGH-1, MEDIUM-2, MEDIUM-3, MEDIUM-4, LOW-6 (LOW-5 resolves as side-effect of HIGH-1)
&lt;strong&gt;Unaddressed:&lt;/strong&gt; LOW-7 (acceptable baseline noise — &lt;code dir=&quot;auto&quot;&gt;[checklist]&lt;/code&gt; parametrization delta ≤ 2)&lt;/p&gt;
&lt;h3 id=&quot;high-1--axis-2-charterscope-production-wiring&quot;&gt;HIGH-1 — Axis 2 (CharterScope) production wiring&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Finding:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;build_with_scope&lt;/code&gt; had zero &lt;code dir=&quot;auto&quot;&gt;src/&lt;/code&gt; callers; the WP09→WP11 in-flight Category C allowlist was never cleared.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;src/specify_cli/next/prompt_builder.py&lt;/code&gt;: added &lt;code dir=&quot;auto&quot;&gt;from charter.scope_router import build_with_scope&lt;/code&gt; import; extended &lt;code dir=&quot;auto&quot;&gt;_governance_context()&lt;/code&gt; with &lt;code dir=&quot;auto&quot;&gt;feature_dir: Path | None = None&lt;/code&gt; kwarg; when &lt;code dir=&quot;auto&quot;&gt;feature_dir&lt;/code&gt; is provided, delegates to &lt;code dir=&quot;auto&quot;&gt;build_with_scope(repo_root, feature_dir, ...)&lt;/code&gt; instead of &lt;code dir=&quot;auto&quot;&gt;build_charter_context(repo_root, ...)&lt;/code&gt; directly. Single-project path (feature_dir=None) is byte-identical to pre-fix.&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;_build_wp_prompt&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;_build_template_prompt&lt;/code&gt; both forward their &lt;code dir=&quot;auto&quot;&gt;feature_dir&lt;/code&gt; argument.&lt;/li&gt;
&lt;li&gt;&lt;code dir=&quot;auto&quot;&gt;scope_router.py&lt;/code&gt;: added explicit &lt;code dir=&quot;auto&quot;&gt;# noqa: F401&lt;/code&gt; imports of &lt;code dir=&quot;auto&quot;&gt;CharterScopeConfig&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;CharterScopeConflict&lt;/code&gt;, &lt;code dir=&quot;auto&quot;&gt;CharterScopeNotFound&lt;/code&gt; to give those &lt;code dir=&quot;auto&quot;&gt;__all__&lt;/code&gt; exports a live &lt;code dir=&quot;auto&quot;&gt;src/&lt;/code&gt; caller.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Verification:&lt;/strong&gt; NFR-001 25/25 passing (23 original + 2 new HIGH-1 contract tests). Cat-C allowlist emptied (4→0). Cat-5 scope_router entry removed (4→3). &lt;code dir=&quot;auto&quot;&gt;_baselines.yaml&lt;/code&gt; updated accordingly.&lt;/p&gt;
&lt;h3 id=&quot;low-5-side-effect-of-high-1--cat-c-and-cat-5-allowlists-cleared&quot;&gt;LOW-5 (side-effect of HIGH-1) — Cat-C and Cat-5 allowlists cleared&lt;/h3&gt;
&lt;p&gt;Both &lt;code dir=&quot;auto&quot;&gt;category_c_wp_in_flight_charter_scope&lt;/code&gt; (was 4) and &lt;code dir=&quot;auto&quot;&gt;category_5_wp_in_flight_adapters&lt;/code&gt; (was 4) reduced to their correct post-wiring values (0 and 3 respectively).&lt;/p&gt;
&lt;h3 id=&quot;medium-2--fr-010-specimpl-deviation&quot;&gt;MEDIUM-2 — FR-010 spec/impl deviation&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Finding:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;build_charter_context&lt;/code&gt; did not accept an optional &lt;code dir=&quot;auto&quot;&gt;scope&lt;/code&gt; parameter as specified in FR-010.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Added &lt;code dir=&quot;auto&quot;&gt;scope: CharterScope | None = None&lt;/code&gt; keyword-only parameter to &lt;code dir=&quot;auto&quot;&gt;build_charter_context&lt;/code&gt; in &lt;code dir=&quot;auto&quot;&gt;src/charter/context.py&lt;/code&gt;. When provided, &lt;code dir=&quot;auto&quot;&gt;repo_root&lt;/code&gt; is overridden with &lt;code dir=&quot;auto&quot;&gt;scope.root&lt;/code&gt;. Uses &lt;code dir=&quot;auto&quot;&gt;TYPE_CHECKING&lt;/code&gt; import to avoid circular dependency. All existing callers are unaffected (scope defaults to None).&lt;/p&gt;
&lt;h3 id=&quot;medium-3--charterscope-glossary-definition-drift&quot;&gt;MEDIUM-3 — CharterScope glossary definition drift&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Finding:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;docs/context/charter.md&lt;/code&gt; lines 374-380 described the Mission B selection-layer concept, not the Slice F monorepo path-resolution dataclass.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Rewrote the CharterScope entry to describe &lt;code dir=&quot;auto&quot;&gt;CharterScope.default()&lt;/code&gt; and &lt;code dir=&quot;auto&quot;&gt;CharterScope.resolve()&lt;/code&gt;, reference ADR-8, and link to the correct related terms. &lt;code dir=&quot;auto&quot;&gt;test_canonical_promotion.py&lt;/code&gt; still passes (Status: canonical unchanged).&lt;/p&gt;
&lt;h3 id=&quot;medium-4--workflow_id-sanitization&quot;&gt;MEDIUM-4 — workflow_id sanitization&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Finding:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;get_workflow(workflow_id)&lt;/code&gt; interpolated &lt;code dir=&quot;auto&quot;&gt;workflow_id&lt;/code&gt; into a filesystem path without validating the slug. A path-traversal value would attempt to open &lt;code dir=&quot;auto&quot;&gt;../../evil.workflow.yaml&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Added &lt;code dir=&quot;auto&quot;&gt;_WORKFLOW_ID_PATTERN = re.compile(r&quot;[a-z0-9][a-z0-9-]*&quot;)&lt;/code&gt; and a &lt;code dir=&quot;auto&quot;&gt;fullmatch&lt;/code&gt; check at the top of &lt;code dir=&quot;auto&quot;&gt;get_workflow()&lt;/code&gt;. Invalid slugs raise &lt;code dir=&quot;auto&quot;&gt;UnknownWorkflowError(&quot;Invalid workflow_id …&quot;)&lt;/code&gt; before any filesystem interaction. The error message prefix “Invalid” distinguishes validator rejection from normal lookup failure (“Unknown”).&lt;/p&gt;
&lt;h3 id=&quot;low-6--cross-axis-integration-test-via-production-path&quot;&gt;LOW-6 — Cross-axis integration test via production path&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Finding:&lt;/strong&gt; &lt;code dir=&quot;auto&quot;&gt;test_slice_f_cross_axis.py&lt;/code&gt; called &lt;code dir=&quot;auto&quot;&gt;CharterScope.resolve&lt;/code&gt; directly, not through the prompt-build pipeline.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Added &lt;code dir=&quot;auto&quot;&gt;test_governance_context_production_path_uses_monorepo_charter&lt;/code&gt; which drives &lt;code dir=&quot;auto&quot;&gt;_governance_context(repo_root, feature_dir=deep_auth_path, action=&quot;implement&quot;)&lt;/code&gt; with a monorepo fixture, patches &lt;code dir=&quot;auto&quot;&gt;charter.scope_router.build_charter_context&lt;/code&gt; to capture the &lt;code dir=&quot;auto&quot;&gt;resolved_root&lt;/code&gt; argument, and asserts the resolved root equals the auth package root (not &lt;code dir=&quot;auto&quot;&gt;repo_root&lt;/code&gt;).&lt;/p&gt;
&lt;h3 id=&quot;debrief-accuracy-correction&quot;&gt;Debrief accuracy correction&lt;/h3&gt;
&lt;p&gt;The original debrief claimed: “Per-WP ‘WP-in-flight Category C’ allowlists with explicit removal triggers (WP09 + WP10 → cleared by WP11) kept the dead-code gates honest across the mission without permanent debt.” This was only half-true: WP11 cleared &lt;code dir=&quot;auto&quot;&gt;category_c_wp_in_flight_workflow_registry&lt;/code&gt; (now 0) but did NOT clear &lt;code dir=&quot;auto&quot;&gt;category_c_wp_in_flight_charter_scope&lt;/code&gt; (was still 4 at merge). Remediation cycle 1 completes the clearance.&lt;/p&gt;
&lt;h3 id=&quot;gate-summary&quot;&gt;Gate summary&lt;/h3&gt;

































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Gate&lt;/th&gt;&lt;th&gt;Result&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;NFR-001 governance contract&lt;/td&gt;&lt;td&gt;25/25 pass&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Slice F architectural sweep&lt;/td&gt;&lt;td&gt;73/73 pass&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;C-005 auth/transport.py diff&lt;/td&gt;&lt;td&gt;empty (zero-diff honored)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Layer rule (no specify_cli in charter modules)&lt;/td&gt;&lt;td&gt;zero matches&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Full sweep&lt;/td&gt;&lt;td&gt;34 failed (at pre-merge baseline)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Ruff&lt;/td&gt;&lt;td&gt;clean&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</content>
</entry>
