Skip to content

Commit 0dc4d68

Browse files
Merge pull request #22 from RQM-Technologies-dev/cursor/docs-ia-vercel-c903
Refactor docs IA and align static publishing for Vercel
2 parents ac7ffbd + d19330f commit 0dc4d68

37 files changed

Lines changed: 755 additions & 2021 deletions

README.md

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# rqm-docs
22

3-
**Official documentation hub for the current RQM Technologies stack.**
3+
Official documentation hub for the RQM platform.
44

5-
This site is built with [MkDocs](https://www.mkdocs.org/) and the [Material theme](https://squidfunk.github.io/mkdocs-material/) and is deployed from this repository.
5+
This site is built with [MkDocs](https://www.mkdocs.org/) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/).
66

77
Canonical docs URL: **[https://docs.rqmtechnologies.com/](https://docs.rqmtechnologies.com/)**
88

@@ -13,32 +13,49 @@ Canonical docs URL: **[https://docs.rqmtechnologies.com/](https://docs.rqmtechno
1313
`rqm-docs` documents the current platform layers reflected in this site:
1414

1515
- `rqm-core` — mathematical spine
16-
- `rqm-compiler`internal optimization and rewriting engine
17-
- `rqm-api`canonical service boundary
18-
- `rqm-studio`visual and workflow layer
19-
- `rqm-docs`documentation layer
16+
- `rqm-circuits`canonical external circuit IR boundary
17+
- `rqm-compiler`internal optimization engine
18+
- `rqm-api`service boundary
19+
- `rqm-studio`workflow layer
2020

2121
---
2222

23-
## How to Run Locally
23+
## Local development
2424

2525
```bash
26+
python -m venv .venv
27+
source .venv/bin/activate
2628
pip install -r requirements.txt
2729
mkdocs serve
2830
```
2931

30-
The site will be available at `http://127.0.0.1:8000`.
32+
The site is available at `http://127.0.0.1:8000`.
3133

3234
To build the static site:
3335

3436
```bash
3537
mkdocs build --strict
3638
```
3739

38-
Output is written to the `site/` directory (excluded from version control).
40+
Build output is written to `site/`.
3941

4042
---
4143

42-
## Deployment
44+
## Vercel deployment posture
4345

44-
The site is built and deployed by the GitHub Actions workflow in `.github/workflows/deploy.yml`.
46+
This repository is configured for static publishing on Vercel.
47+
48+
- **Framework preset:** `Other` (explicitly disable framework auto-detection)
49+
- **Install command:** `pip install -r requirements.txt`
50+
- **Build command:** `mkdocs build --strict`
51+
- **Output directory:** `site`
52+
53+
The repository `vercel.json` pins this behavior with `"framework": null`, which maps to Vercel's **Other** framework preset and prevents Python backend entrypoint checks.
54+
55+
If the project was previously configured as Python in the Vercel dashboard, update it to **Framework Preset = Other** and trigger a redeploy.
56+
57+
---
58+
59+
## Legacy GitHub Actions note
60+
61+
If a GitHub Actions workflow exists in this repo, treat it as optional legacy automation. The primary publishing posture for this repo is Vercel static deployment.

docs/api/authentication.md

Lines changed: 5 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Authentication
1+
# Auth
22

3-
`rqm-api` uses a **bearer-session** model for authenticated account surfaces.
3+
Authentication endpoints provide the bearer-session model for account-bound platform workflows.
44

55
**Base URL:** `https://rqm-api.onrender.com`
66

77
---
88

9-
## Current endpoints
9+
## Endpoints
1010

1111
- `GET /v1/auth/diagnostics`
1212
- `POST /v1/auth/register`
@@ -16,48 +16,6 @@
1616

1717
---
1818

19-
## Bearer-session model
19+
## Why auth appears in platform docs
2020

21-
The current docs describe auth as a session-bearing API surface rather than a public anonymous circuit-only interface.
22-
23-
In practice, authentication matters when a workflow needs:
24-
25-
- account identity
26-
- Pro/account state
27-
- billing and wallet visibility
28-
- dashboard access
29-
- managed execution flows tied to user state
30-
31-
That is why auth belongs in the canonical API overview, not as an afterthought.
32-
33-
---
34-
35-
## Endpoint roles
36-
37-
### `GET /v1/auth/diagnostics`
38-
Use this when checking whether the current deployment and auth configuration are behaving as expected.
39-
40-
### `POST /v1/auth/register`
41-
Creates an account or initiates the account-registration flow.
42-
43-
### `POST /v1/auth/login`
44-
Starts or refreshes an authenticated session.
45-
46-
### `GET /v1/auth/me`
47-
Returns the current authenticated identity and is the natural identity check for clients that need to know whether they should expose account-bound surfaces.
48-
49-
### `POST /v1/auth/logout`
50-
Ends the current authenticated session.
51-
52-
---
53-
54-
## Why auth matters beyond login
55-
56-
Authentication is the bridge between basic circuit workflows and managed product surfaces such as:
57-
58-
- Studio account views
59-
- Pro/account readiness
60-
- billing dashboard and wallet actions
61-
- quote / hold / release flows for hardware-oriented operations
62-
63-
Auth does **not** by itself grant hardware access. It simply establishes the account context required for those flows.
21+
Authentication is the entry point for account-bound product surfaces such as billing, dashboards, managed execution flows, and Studio account workflows.

docs/api/billing-and-wallet.md

Lines changed: 10 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
# Billing & Wallet
22

3-
The billing surface in `rqm-api` covers account readiness, wallet visibility, spend policy, quote/hold orchestration, and Stripe-backed payment flows.
3+
Billing endpoints support account readiness, wallet visibility, spend controls, and hardware quote/hold workflows.
44

55
**Base URL:** `https://rqm-api.onrender.com`
66

77
---
88

9-
## Current endpoints
9+
## Endpoint groups
1010

11-
### Account, wallet, and controls
11+
### Account and wallet
1212

1313
- `GET /v1/billing/profile`
1414
- `GET /v1/billing/summary`
1515
- `GET /v1/billing/wallet`
1616
- `GET /v1/billing/jobs`
17+
- `GET /v1/billing/dashboard`
18+
19+
### Spend controls and recovery
20+
1721
- `GET /v1/billing/spend-controls`
1822
- `PATCH /v1/billing/spend-controls`
1923
- `GET /v1/billing/auto-recharge/attempts`
2024
- `GET /v1/billing/recovery-status`
21-
- `GET /v1/billing/dashboard`
2225
- `POST /v1/billing/auto-recharge/test`
2326

24-
### Hardware quote / hold flow
27+
### Hardware quote / hold
2528

2629
- `POST /v1/billing/hardware/quote`
2730
- `POST /v1/billing/hardware/hold`
@@ -39,50 +42,6 @@ The billing surface in `rqm-api` covers account readiness, wallet visibility, sp
3942

4043
---
4144

42-
## What each group is for
43-
44-
### Profile, summary, wallet, jobs, dashboard
45-
These endpoints let clients present the operational account view: billing profile, current wallet state, job history, and summary/dashboard information.
46-
47-
### Spend controls and recovery
48-
These endpoints exist so clients can expose policy and safety controls rather than treating billing as a black box.
49-
50-
### Quote, hold, release
51-
This is the operational bridge between payment readiness and hardware-oriented execution flows. A client can request a quote, place a hold where required, and later release it.
52-
53-
### Stripe flows
54-
These endpoints support customer/payment setup and ongoing billing operations, but they should be documented as payment infrastructure rather than proof of hardware execution entitlement.
55-
56-
---
57-
58-
## The most important billing truth
59-
60-
**Pro or billing readiness is not the same as guaranteed hardware access.**
61-
62-
Hardware execution still depends on:
63-
64-
- backend/provider readiness
65-
- credentials
66-
- deployment policy
67-
- validation and execution checks
68-
- quote / hold state where required
69-
70-
That distinction matters throughout Studio and API docs.
71-
72-
---
73-
74-
## Recommended hardware-oriented flow
75-
76-
1. authenticate
77-
2. inspect account and wallet state
78-
3. check execution capabilities
79-
4. request a hardware quote if needed
80-
5. place a hold if required
81-
6. submit or continue execution
82-
7. release the hold when appropriate
83-
84-
Related pages:
45+
## Operational note
8546

86-
- [Authentication](authentication.md)
87-
- [Execution](execution.md)
88-
- [Execution Capabilities](execution-capabilities.md)
47+
Billing readiness supports execution workflows but does not guarantee provider-side hardware availability.

docs/api/chat-and-tts.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,18 @@
11
# Chat & TTS
22

3-
`rqm-api` also exposes media-oriented endpoints for grounded chat and text-to-speech.
3+
Media-oriented endpoints are available alongside the core circuit and execution APIs.
44

55
**Base URL:** `https://rqm-api.onrender.com`
66

77
---
88

9-
## Current endpoints
9+
## Endpoints
1010

1111
- `POST /v1/chat`
1212
- `POST /v1/tts`
1313

1414
---
1515

16-
## `POST /v1/chat`
16+
## Positioning
1717

18-
The chat surface is best documented as **grounded chat with optional history and context**, not as a replacement for the core circuit APIs.
19-
20-
Use cases may include:
21-
22-
- contextual help inside Studio
23-
- workflow guidance over current account or job context
24-
- product or theory assistance grounded in supplied context
25-
26-
Availability can depend on deployment configuration.
27-
28-
---
29-
30-
## `POST /v1/tts`
31-
32-
The TTS endpoint turns supported text responses into an audio-oriented output surface.
33-
34-
The transport can vary by deployment and client expectation, so document it conservatively:
35-
36-
- some clients may consume binary/audio responses directly
37-
- some may consume JSON wrappers carrying base64-encoded content or metadata
38-
39-
Treat response handling as configuration-sensitive rather than assuming a single universal shape.
40-
41-
---
42-
43-
## Relationship to the rest of the platform
44-
45-
These endpoints sit beside the main service surface. They are useful product features, but the canonical RQM service boundary still centers on circuits, analysis, execution, auth, and billing.
18+
These endpoints extend product workflows but do not replace the core API boundaries for circuits, execution, auth, and billing.

docs/api/circuits.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Circuits
2+
3+
Circuit endpoints handle public payload intake, analysis, and optimization.
4+
5+
**Base URL:** `https://rqm-api.onrender.com`
6+
7+
---
8+
9+
## Endpoints
10+
11+
- `GET /v1/circuits/example`
12+
- `POST /v1/circuits/validate`
13+
- `POST /v1/circuits/analyze`
14+
- `POST /v1/circuits/optimize`
15+
16+
---
17+
18+
## Public circuit boundary
19+
20+
- canonical external circuit IR: `rqm-circuits`
21+
- current schema target: `0.2`
22+
23+
This boundary is distinct from the internal optimization engine.
24+
25+
---
26+
27+
## Typical request flow
28+
29+
1. fetch or build a public circuit payload
30+
2. validate and analyze
31+
3. optimize
32+
4. route to execution workflows

docs/api/compiler-actions.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Compiler Actions
2+
3+
Compiler actions are exposed through circuit-facing API endpoints and executed inside the internal optimization engine.
4+
5+
---
6+
7+
## Exposed actions
8+
9+
- validate payloads before optimization
10+
- analyze circuit structure and metrics
11+
- optimize using the canonical internal pass sequence
12+
13+
Public entrypoint:
14+
15+
- `POST /v1/circuits/optimize`
16+
17+
---
18+
19+
## Canonical internal flow
20+
21+
Current pass sequence:
22+
23+
1. `normalize`
24+
2. `canonicalize`
25+
3. `flatten`
26+
4. `to_u1q`
27+
5. `merge_u1q`
28+
6. `sign_canon`
29+
7. `cancel_2q`
30+
31+
Canonical internal 1Q IR: `u1q`.
32+
33+
---
34+
35+
## Trust semantics
36+
37+
- candidate rewrites are verified before commit
38+
- only verified candidates are committed
39+
- original circuits are returned unchanged when verification is not established

0 commit comments

Comments
 (0)