Skip to content

docs: user-facing documentation under docs/ - #18

Merged
colinjlacy merged 2 commits into
runtimeconditions:mainfrom
lasomethingsomething:docs/user-facing-documentation
Nov 27, 2026
Merged

colinjlacy merged 2 commits into
runtimeconditions:mainfrom
lasomethingsomething:docs/user-facing-documentation

Conversation

@lasomethingsomething

Copy link
Copy Markdown
Contributor

Adds end-user documentation in docs/ and links it from the README:

  • overview.md — mental model (profile vs deployment vs condition vs fulfillment vs extension)
  • installation.md — frontend/backend install, prerequisites
  • usage.md — critical-path workflows (profile CR, correlation, adapter fulfillment API)
  • architecture.md — data flow, internals, API reference
  • reference-architectures.md — runtimeconditions org repos

Docs-only change; per the repo's release rules this does not trigger an npm release.

- README follows the rc-cli pattern: intro, mental model, quickstart,
  doc links, ecosystem, contributing, license
- docs/usage.md: critical-path workflows (profile CR, correlation, adapter API)
- docs/architecture.md: data flow, per-file internals, API reference, exports
- docs/fulfillment-api.md: adapter contract, validation rules, storage caveat
- docs/releases.md: semver and trusted publishing
@lasomethingsomething
lasomethingsomething force-pushed the docs/user-facing-documentation branch from aab6a7d to b56d4be Compare November 26, 2026 21:55
Comment thread docs/architecture.md Resolved
Comment thread docs/architecture.md
### Fulfillment store

- File: `backend/src/router.ts`
- A plain in-memory array. `POST /fulfillments` validates and appends (returns `201`). `GET /fulfillments` filters by optional `profileName` and `condition` query params.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A plain in-memory array -> This makes me a sad panda. We'll have to address this in the future.

Comment thread docs/architecture.md

- File: `backend/src/router.ts`
- A plain in-memory array. `POST /fulfillments` validates and appends (returns `201`). `GET /fulfillments` filters by optional `profileName` and `condition` query params.
- Ephemeral: a backend restart loses all fulfillments. Adapters should treat POST as "report current state" and re-post after a restart.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is why. We need a durable fulfillment store so that these can survive restarts. Otherwise this is just demoware. I'm glad your documentation effort flagged this.

Comment thread docs/fulfillment-api.md Resolved

@colinjlacy colinjlacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one change requested - please clarify the diagram at the top. Other than that, great docs. Clears up a lot about what's here and what needs to be cleaned up.

Reviewer feedback: the store read like a separate actor doing the GET.
Now shows adapter as the only writer, browser as the only reader, and
the in-memory store as the backend's own memory.
@lasomethingsomething

Copy link
Copy Markdown
Contributor Author

Fixed in 4262ab7: the diagram now shows the adapter as the only writer and the browser as the only reader, with the in-memory store drawn as the backend plugin's own memory rather than a separate actor. There's also a one-line prose note above the diagram saying exactly that.

@colinjlacy
colinjlacy merged commit 502f567 into runtimeconditions:main Nov 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants