# Deeper Access Execution Plan: FoxyLink Primary Track (UT Blocked)

## Goal

Close the only failed hard gate segment:

- `posting -> subconto[1..3] -> counterparty/contract/item` (missing reproducible slot `3` proof)

without replacing the working OData read-only contour.

## Architecture Direction

1. Keep OData as the base read-only contour for broad extraction and low-cost discovery.
2. Treat Universal Tools quick-probe branch as blocked for current `БП 2.0` lab contour (compatibility mismatch).
3. Run FoxyLink PoC as the main deeper-access candidate for stable retrieval of missing semantic links/aggregates.
4. Keep canonical layer as the only external contract (API/MCP sees one model, regardless of source mix).
5. UT may be revisited only as a separate adaptation project.

## Phase Plan

### Phase 1: Compatibility Gate (UT) - Closed as Blocked

1. `UI.cfe` installation attempt in lab copy failed.
2. Missing required BSP/configuration objects confirmed.
3. Branch status fixed as `blocked`.

Artifact:

- `docs/ut_compatibility_blocker_2026-03-22.md`

### Phase 2: FoxyLink PoC (Primary)

1. Deploy FoxyLink in isolated test contour.
2. Implement minimal extraction job for failed segment only (slot `3` closure).
3. Map result into existing canonical schema (no schema fork).
4. Run side-by-side with OData flow on the same sample period.

Exit criteria:

- Hard check #2 passes from reproducible FoxyLink-backed evidence.
- No regressions in checks #1 and #3.

### Phase 3: Integration Decision

1. If PoC passes, promote FoxyLink as primary deeper-access contour.
2. Keep OData as wide read-only baseline.
3. Keep Universal Tools out of critical path unless separate adaptation is approved.

Exit criteria:

- `scripts/deep_probe_accounting_mvp_gate.py` => all checks `pass`
- Final verdict in `logs/deep_accounting_mvp_gate.json` => `OData sufficient for MVP accounting ontology`

## Required Controls

1. Test-only installation for diagnostic/deeper-access tools.
2. Read-only policy remains mandatory for OData contour.
3. Role-level permission audit before production promotion.
4. License/legal review before rollout (FoxyLink AGPL, Universal Tools GPL-3.0).
5. Explicit record of UT incompatibility in the decision package.

## Deliverables

1. Updated gate artifact: `logs/deep_accounting_mvp_gate.json`
2. Updated decision report: `docs/decision_report_odata_vs_deeper_access.md`
3. Added evidence package for slot `3` closure (query + sample + mapping)
4. Readiness snapshot: `logs/deeper_access_readiness.json`
5. Test contour checklist: `docs/test_contour_runbook_foxylink_ut_2026-03-22.md`
6. UT blocker note: `docs/ut_compatibility_blocker_2026-03-22.md`
