Skip to content

Commit 72dc60a

Browse files
Merge pull request #27 from RQM-Technologies-dev/codex/upgrade-rqm-platform-documentation-for-agents
Agent-first portal: tighten Agent Portal, prompt pack, and agent ingestion guides
2 parents f1dd83c + 2275fe8 commit 72dc60a

6 files changed

Lines changed: 229 additions & 231 deletions

File tree

docs/agents/index.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
11
# Agent Portal
22

3-
RQM is an agent-ready quantum software and API platform for circuit validation, optimization, execution routing, quaternionic/SU(2) math utilities, geometry-native analysis, and RQM Studio workflows.
3+
**Agents: start here before writing code.**
44

5-
Use this portal to ground coding agents in documented schemas, routes, prompts, and workflow boundaries before implementation.
5+
RQM Platform is built for circuit validation, optimization, execution routing, quaternionic/SU(2) math utilities, geometry-native analysis, and RQM Studio workflows. Use this portal to ground work in documented routes, schemas, and boundary rules before implementation.
66

77
## Agent, read this first
88

99
```text
1010
You are implementing against RQM.
1111
1212
1) Read /llms.txt first.
13-
2) Use documented API surfaces from API Overview and Swagger UI.
14-
3) Start from public circuit payloads (rqm-circuits schema 0.2).
15-
4) Validate payloads before optimize/analyze flows.
16-
5) Do not infer internal optimizer IRs (e.g., u1q) as public contracts.
17-
6) Do not invent endpoints, fields, or guarantees that are not documented.
18-
7) Label research concepts as research; keep production claims bounded to documented behavior.
19-
8) Treat RQM Studio as a workflow layer above rqm-api.
20-
9) Generate reproducible artifacts (request payloads, reports, diffs, metrics) whenever possible.
13+
2) Read /agents/ to choose a task path and constraints.
14+
3) Check /agent-contract.json before proposing payloads, routes, or claims.
15+
4) Use documented API surfaces from API Overview and Swagger UI.
16+
5) Start from public circuit payloads (rqm-circuits schema 0.2).
17+
6) Validate payloads before optimize/analyze/execution flows.
18+
7) Do not infer internal optimizer IRs (e.g., u1q) as public contracts.
19+
8) Do not invent endpoints, fields, or guarantees that are not documented.
20+
9) Label research concepts as research; keep production claims bounded to documented behavior.
21+
10) Generate reproducible artifacts (request payloads, reports, diffs, metrics) whenever possible.
2122
```
2223

24+
## Choose Your Task
25+
26+
| Task | Start page | Why this page |
27+
|---|---|---|
28+
| Validate a circuit | [Validate → Optimize](recipes/validate-optimize.md) | Validation-first flow with artifact expectations. |
29+
| Optimize a circuit | [Validate → Optimize](recipes/validate-optimize.md) | Keeps optimization on documented, validated inputs. |
30+
| Generate an API client | [API Client Generation](recipes/client-generation.md) | Typed-client guidance from documented API surfaces. |
31+
| Build an RQM Studio workflow | [RQM Studio Workflow](recipes/studio-workflow.md) | Studio-specific workflow sequencing and boundaries. |
32+
| Compare execution bridges | [Execution Bridges](../platform/execution-bridges.md) | Provider bridge model and routing expectations. |
33+
| Explore research concepts safely | [Production vs Research Boundary](recipes/research-boundary.md) | Clear boundary language for production vs research. |
34+
2335
## Start links
2436

2537
- [llms.txt](../llms.txt)
2638
- [llms-full.txt](../llms-full.txt)
2739
- [Prompt Pack](prompts.md)
2840
- [Cursor / Codex Setup](cursor.md)
2941
- [MCP Server Plan](mcp.md)
42+
- [Recipe Index for Agents](recipes/README-for-agents.md)
3043
- [API Overview](../api/overview.md)
3144
- [Swagger UI](https://rqm-api.onrender.com/docs)
3245
- [Quickstart](../getting-started/quickstart.md)
@@ -36,22 +49,12 @@ You are implementing against RQM.
3649
- Validate circuit payloads before optimization.
3750
- Use the public circuit boundary before making internal optimizer assumptions.
3851
- Do not invent undocumented endpoints.
52+
- Do not treat internal optimizer IR (including `u1q`) as a public API contract.
3953
- Separate production-supported API behavior from research concepts.
54+
- Label research claims as research and keep production claims conservative.
4055
- Treat RQM Studio as the workflow layer, not the canonical computation layer.
4156
- Generate reproducible artifacts where possible.
4257

43-
## Who this portal is for
44-
45-
| Entry path | Use this when you need to |
46-
|---|---|
47-
| Coding agent | Implement or refactor code using only documented RQM contracts |
48-
| Developer | Build clients, integrations, and app features on top of rqm-api |
49-
| RQM Studio builder | Extend workflow UX while preserving API and boundary semantics |
50-
| Quantum circuit evaluator | Compare validation/optimization outputs and trust artifacts |
51-
| Research assistant | Explore concepts while clearly labeling research vs production behavior |
52-
| Partner/evaluator | Review architecture, trust posture, and integration readiness |
53-
54-
5558
## Next: use recipes
5659

5760
- [Agent Recipes](recipes/index.md)
@@ -61,7 +64,6 @@ You are implementing against RQM.
6164
- [Production vs Research Boundary](recipes/research-boundary.md)
6265
- Machine-readable task manifest: [`/agent-tasks.json`](../agent-tasks.json)
6366

64-
6567
## Compliance layer
6668

6769
- [Agent Contract](contract.md)

docs/agents/prompts.md

Lines changed: 103 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,137 @@
11
# Agent Prompt Pack
22

3-
Use these prompts as copy/paste starters for coding agents and research assistants.
3+
Copy/paste these prompts to keep agent output aligned with documented RQM contracts.
44

5-
## General RQM coding agent
5+
## Use RQM API safely
66

77
```text
8-
You are a coding agent for RQM integrations.
8+
You are an implementation agent for RQM Platform.
99
1010
Before coding:
11-
- Read /llms.txt first.
12-
- Read API Overview and use Swagger UI for endpoint and schema confirmation.
13-
- Prefer documented payload examples.
14-
15-
Execution rules:
16-
- Validate circuit payloads before optimize calls.
17-
- Keep public payloads at the rqm-circuits boundary; do not treat internal IR as public API.
18-
- Label research language as research.
19-
- Avoid overclaiming physical advantage unless supported by benchmark evidence or a reproducible output artifact.
20-
- If behavior is undocumented, call it out explicitly instead of guessing.
11+
- Read /llms.txt.
12+
- Read /agents/ for task framing and boundary rules.
13+
- Check /agent-contract.json for required constraints.
14+
- Confirm routes and schemas in /api/overview/ and Swagger UI.
15+
16+
Execution requirements:
17+
- Use documented API routes only.
18+
- Avoid undocumented fields and inferred response keys.
19+
- Keep public circuit payloads at the documented boundary.
20+
- Do not treat internal IR (including u1q) as public contract.
21+
- Label research-only content as research.
22+
- Produce reproducible artifacts (payload JSON, responses, diffs, reports).
2123
```
2224

23-
## Cursor / Codex repository agent
25+
## Validate then optimize a circuit
2426

2527
```text
26-
You are editing repository code/docs for RQM.
27-
28-
Workflow:
29-
1) Read /llms.txt first.
30-
2) Read API Overview and verify routes in Swagger UI.
31-
3) Reuse documented payload examples before creating new examples.
32-
4) Validate-first flow: validate -> analyze/optimize -> execution routing.
33-
34-
Constraints:
35-
- Do not add undocumented endpoints.
36-
- Preserve production vs research separation.
37-
- Do not present research hypotheses as production guarantees.
38-
- Include reproducible artifacts (sample requests/responses, reports, tests) when changing behavior.
28+
Implement a validate-then-optimize workflow for RQM.
29+
30+
Required prep:
31+
1) Read /llms.txt.
32+
2) Read /agents/recipes/validate-optimize/.
33+
3) Check /agent-contract.json.
34+
4) Verify exact validate/optimize routes in API docs or Swagger.
35+
36+
Rules:
37+
- Never run optimize before a successful validation step.
38+
- Use only documented request/response fields.
39+
- Preserve response metadata.
40+
- If route/schema details are missing, stop and report the gap.
41+
42+
Deliverables:
43+
- Reproducible request payload(s).
44+
- Captured validation and optimization outputs.
45+
- Short diff/report showing what changed.
3946
```
4047

41-
## RQM Studio integration agent
48+
## Generate a typed client from documented API surfaces
4249

4350
```text
44-
You are integrating with RQM Studio workflows.
45-
46-
Required context:
47-
- Read /llms.txt first.
48-
- Use API Overview and Swagger UI to anchor service calls.
49-
- Prefer documented payload examples.
50-
51-
Guidance:
52-
- Treat Studio as a workflow layer on top of rqm-api.
53-
- Validate circuit payloads before optimization paths.
54-
- Separate production API behavior from research concepts in UX copy and logs.
55-
- Avoid claims of physical advantage unless benchmarked and attached to reproducible artifacts.
51+
Generate a typed RQM API client from documented API surfaces only.
52+
53+
Required prep:
54+
- Read /llms.txt.
55+
- Read /agents/recipes/client-generation/.
56+
- Check /agent-contract.json.
57+
- Confirm routes/schemas in /api/overview/ and Swagger.
58+
59+
Rules:
60+
- Include methods only for documented endpoints.
61+
- Do not include undocumented fields in models.
62+
- Include validate-before-optimize helper flow.
63+
- Mark uncertain/undocumented behavior explicitly instead of inferring.
64+
65+
Deliverables:
66+
- Typed models and client methods.
67+
- Fixture payloads based on documented schemas.
68+
- Reproducible tests or request examples.
5669
```
5770

58-
## Quantum circuit optimization agent
71+
## Build an RQM Studio workflow
5972

6073
```text
61-
You are implementing quantum circuit optimization flows with RQM.
74+
Design and implement an RQM Studio workflow that orchestrates documented API calls.
6275
63-
Read first:
64-
- /llms.txt
65-
- API Overview
66-
- Swagger UI
76+
Required prep:
77+
- Read /llms.txt.
78+
- Read /agents/recipes/studio-workflow/.
79+
- Check /agent-contract.json.
80+
- Confirm route/schema details in API docs or Swagger.
6781
6882
Rules:
69-
- Ingest/emit only documented public circuit payload contracts.
70-
- Run validation before optimization.
71-
- Use documented optimize/analyze behavior; do not infer undocumented pass semantics.
72-
- Label research ideas as research.
73-
- Never overclaim hardware or physical advantage without benchmark data or generated artifacts.
83+
- Treat Studio as a workflow layer above rqm-api.
84+
- Keep workflow state transitions explicit and auditable.
85+
- Use documented fields only.
86+
- Separate production behavior from research notes in UI/content.
87+
88+
Deliverables:
89+
- Workflow step map.
90+
- Reproducible payloads and outputs per step.
91+
- Artifact bundle (logs, JSON payloads, diffs, or report).
7492
```
7593

76-
## API client generation agent
94+
## Explain RQM research concepts without overclaiming
7795

7896
```text
79-
You are generating an RQM API client.
97+
Explain RQM research concepts conservatively.
8098
81-
Checklist:
82-
- Read /llms.txt first.
83-
- Source endpoints and schemas from API Overview + Swagger UI.
84-
- Prefer documented payload examples for fixtures.
99+
Required prep:
100+
- Read /llms.txt.
101+
- Read /agents/recipes/research-boundary/.
102+
- Check /agent-contract.json.
103+
- Ground production references in documented API routes/schemas.
85104
86105
Rules:
87-
- Include validate-before-optimize helper flows.
88-
- Do not generate methods for undocumented endpoints.
89-
- Keep production and research scopes separate in docs/comments.
90-
- Avoid performance/advantage claims unless supported by benchmark or output artifact references.
106+
- Label speculative or research-only statements as research.
107+
- Do not present research concepts as production guarantees.
108+
- Avoid performance/physical advantage claims without benchmark evidence.
109+
- Separate shipped behavior from exploratory ideas.
110+
111+
Deliverables:
112+
- Structured explanation with explicit production vs research labels.
113+
- Citations to relevant docs/pages used.
91114
```
92115

93-
## Research assistant agent
116+
## Audit a PR for RQM contract compliance
94117

95118
```text
96-
You are assisting RQM research-aligned analysis.
97-
98-
Read first:
99-
- /llms.txt
100-
- API Overview
101-
- Swagger UI (for production boundary context)
102-
103-
Operating rules:
104-
- Use documented payload examples when referencing production flows.
105-
- Explicitly label speculative or research-only statements.
106-
- Validate before optimize in any demonstrated workflow.
107-
- Do not overclaim physical advantage without benchmark evidence or reproducible artifacts.
108-
- Distinguish clearly between production API capabilities and research concepts.
119+
Audit this PR for RQM agent contract compliance.
120+
121+
Required prep:
122+
- Read /llms.txt.
123+
- Read /agents/contract/, /agents/contract-checklist/, and /agents/contract-tests/.
124+
- Check /agent-contract.json.
125+
- Verify API routes/schemas in API docs or Swagger where touched.
126+
127+
Audit checks:
128+
- Any invented endpoints or undocumented fields?
129+
- Any use of internal IR presented as public contract?
130+
- Validation-before-optimization flow preserved?
131+
- Production vs research boundary language preserved?
132+
- Reproducible artifacts included for behavior claims?
133+
134+
Deliverables:
135+
- Pass/fail checklist with evidence.
136+
- Precise remediation notes and file-level diffs needed.
109137
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Recipe Index for Agents
2+
3+
Use this page to pick the right recipe quickly. Read `/llms.txt` and `/agent-contract.json` first, then select a task path below.
4+
5+
## Task → recipe map
6+
7+
| If your task is... | Use this recipe first | Then check |
8+
|---|---|---|
9+
| Validate and optimize a circuit safely | [Validate → Optimize](validate-optimize.md) | [Circuits API](../../api/circuits.md) |
10+
| Build an RQM Studio orchestration flow | [RQM Studio Workflow](studio-workflow.md) | [RQM Studio](../../products/rqm-studio.md) |
11+
| Generate SDK/client code from public APIs | [API Client Generation](client-generation.md) | [API Overview](../../api/overview.md) |
12+
| Explain boundaries for research-facing work | [Production vs Research Boundary](research-boundary.md) | [Verification / Trust](../../products/verification-trust.md) |
13+
| Browse all workflow patterns | [Recipe Overview](index.md) | [Agent Portal](../index.md) |
14+
15+
## Usage rules
16+
17+
- Use documented API routes/schemas only.
18+
- Validate before optimize.
19+
- Do not use internal IR (`u1q`) as public contract.
20+
- Label research claims as research.
21+
- Produce reproducible artifacts (payloads, outputs, diffs, reports).

0 commit comments

Comments
 (0)