Skip to content

Commit d7d2eae

Browse files
V48 (impl-only): Drop protocol-demo host
Remove specifying createAppContext and Next API mirrors so Vercel NFT no longer packs monorepo walks, tests, and oversized .next past 250 MB. Keep product deposit/read surfaces; BTD uses @bitcode/api/btd.
1 parent 739adc5 commit d7d2eae

42 files changed

Lines changed: 284 additions & 1381 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.docs/BITCODE_API.md

Lines changed: 29 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,40 @@ API surfaces must:
1515
- stream execution state to product and admitted interfaces,
1616
- support MCP and ChatGPT-style connected interfaces without letting those interfaces own Exchange state.
1717

18-
## Active Interface Families
19-
20-
Current Bitcode API families:
21-
- `/api/state`
22-
- `/api/activity`
23-
- `/api/deposits`
24-
- `/api/read-review`
25-
- `/api/make-bitcode-branch`
18+
## Active commercial interface families (`apps/uapi`)
19+
20+
Current product Next API families (not exhaustive):
21+
- `/api/deposit/*` — deposit synthesis and demand estimate (product Deposits)
22+
- `/api/read-review` — Read-Need synthesis / accept / reject (product Reads)
23+
- `/api/read/*` — read settlement and option synthesis
24+
- `/api/packs/*` — pack activity
25+
- `/api/btd/*` — BTD journal, registry, settlement-adjacent handlers (`@bitcode/api/btd`)
2626
- `/api/conversations/*`
2727
- `/api/executions/*`
2828
- `/api/vcs/*`
2929
- `/api/auxillaries/*`
30-
- `/api/*` in-place protocol realization corridors; versioned route prefixes are not canonical
30+
- `/api/wallet/*`
3131
- package API route owners under `packages/api/src/routes/*`
3232

33+
## Removed protocol-demo host residue
34+
35+
The following commercial Next shims that once mirrored the specifying standalone
36+
host are **deleted** and must not be reintroduced on `apps/uapi`:
37+
38+
- `/api/state`
39+
- `/api/reset`
40+
- `/api/deposits` (plural host create — product uses `/api/deposit/*`)
41+
- `/api/make-bitcode-branch`
42+
- `/api/external-realization`
43+
- `/api/executors/*`
44+
- `lib/bitcode-app-context*` (createAppContext bridge)
45+
46+
Those surfaces, if needed at all, belong only under `scripts/specifying` (repo
47+
metadevelopment), never in the Vercel product graph.
48+
3349
## Execution and AssetPack Routes
3450

35-
The current execution route corridor uses `agentic-execution:asset-pack` for V26 AssetPack execution.
51+
The current execution route corridor uses `agentic-execution:asset-pack` for AssetPack execution.
3652

3753
Route behavior must preserve:
3854
- typed input normalization,
@@ -45,28 +61,6 @@ Route behavior must preserve:
4561

4662
## Read Review Boundary
4763

48-
`/api/read-review` is the pre-fit admission boundary:
49-
- `GET` presents the measured Read and source-to-shares context.
50-
- `POST` records accept, reject, or remeasure-with-feedback.
51-
- downstream fit or branch materialization must fail closed unless the Read is accepted.
52-
53-
## Connected Interfaces
54-
55-
MCP, ChatGPT App, VCS, Jira, and other connected interfaces are ingress or delivery mechanisms. They do not replace Exchange state.
56-
57-
Rules:
58-
- writes must emit admission receipts,
59-
- unconfirmed writes fail closed,
60-
- output payloads normalize toward AssetPacks, AssetPack partials, or connected-interface written assets,
61-
- proof/state must remain rereadable from Packs and Exchange routes.
62-
63-
## Environment Keys
64-
65-
Current Bitcode keys include:
66-
- `BITCODE_LLM_PROVIDER`
67-
- `BITCODE_LLM_MODEL`
68-
- `BITCODE_LOG_TO_FILE`
69-
- `BITCODE_ENABLE_NOTIFICATIONS`
70-
- `BITCODE_ENABLE_COMPUTER_USE_READ_MEASUREMENT`
71-
72-
Removed compute and orchestration toggle keys are not admitted API contract.
64+
`/api/read-review` is the commercial pre-fit Read-Need admission boundary:
65+
- `POST` with `action=synthesize_read_need` | `resynthesize_read_need` | `accept_read_need` | `reject_read_need`.
66+
- Legacy protocol-demo GET/scenario review and specifying `reviewRead` fallbacks are removed.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdAncestryReview } from '@bitcode/api';
1+
import { postBtdAncestryReview } from '@bitcode/api/btd';
22

33
export const POST = postBtdAncestryReview;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdAssetPackExchange } from '@bitcode/api';
1+
import { postBtdAssetPackExchange } from '@bitcode/api/btd';
22

33
export const POST = postBtdAssetPackExchange;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdAssetPackLedgerAnchor } from '@bitcode/api';
1+
import { postBtdAssetPackLedgerAnchor } from '@bitcode/api/btd';
22

33
export const POST = postBtdAssetPackLedgerAnchor;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdBridgeReadinessResearch } from '@bitcode/api';
1+
import { postBtdBridgeReadinessResearch } from '@bitcode/api/btd';
22

33
export const POST = postBtdBridgeReadinessResearch;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdBtcFeeTransaction } from '@bitcode/api';
1+
import { postBtdBtcFeeTransaction } from '@bitcode/api/btd';
22

33
export const POST = postBtdBtcFeeTransaction;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdDeploymentReadiness } from '@bitcode/api';
1+
import { postBtdDeploymentReadiness } from '@bitcode/api/btd';
22

33
export const POST = postBtdDeploymentReadiness;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdInterfaceIntegrationRegression } from '@bitcode/api';
1+
import { postBtdInterfaceIntegrationRegression } from '@bitcode/api/btd';
22

33
export const POST = postBtdInterfaceIntegrationRegression;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdJournal } from '@bitcode/api';
1+
import { postBtdJournal } from '@bitcode/api/btd';
22

33
export const POST = postBtdJournal;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { postBtdLedgerDatabaseReconciliation } from '@bitcode/api';
1+
import { postBtdLedgerDatabaseReconciliation } from '@bitcode/api/btd';
22

33
export const POST = postBtdLedgerDatabaseReconciliation;

0 commit comments

Comments
 (0)