Skip to content

Commit 46747c6

Browse files
Move internal planning and handoff docs out of the public repo; one contributor guide
Sixteen directories and eight top-level pages under docs/ were implementation history: handoffs, archives, audits, research, plans, brainstorms, issue notes, explorations, the ownership map, CI and release process notes, and two personal learning documents. They were never published on the docs site, but they were tracked, so they were readable on GitHub, and several quoted the maintainer's own work sessions and personal paths. They now live in a private repository. docs/contributing.md becomes the single contributor reference, in the shape of the Terraform AWS provider guide: environment, repository layout, making changes, testing, CI, documentation standards, changelog, pull requests, issues, prioritisation, AI usage and models through a LiteLLM gateway, and security. It folds in what contributors needed from the removed process notes (repo standards, OpenSpec workflow, CI matrix, release gate). The root CONTRIBUTING.md is now a short pointer with the essentials. docs/adr and docs/architecture stay public: they carry the reasoning. Also: source and test docstrings that cited the removed paths now say private-docs/<file>; the gen-quality script writes its report under the gitignored reviews/ tree; the shipped topic vocabulary drops an internal-tool term; the setup guide gains a two-line Bedrock note for readers who already hold an AWS profile. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent f6d9b9b commit 46747c6

47 files changed

Lines changed: 366 additions & 176 deletions

Some content is hidden

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

‎.gitignore‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,3 +620,33 @@ scripts/local/
620620
# working material but reads as a defect list to anyone who finds it in a public
621621
# repo. Public-facing conclusions belong in docs/ or an ADR instead.
622622
/reviews/
623+
624+
# Internal planning, handoffs, audits, research and evidence live in the private
625+
# repo (~/code/personal/tools/studyloop-private), never here. Public docs are the
626+
# mkdocs.yml allowlist plus docs/adr and docs/architecture.
627+
docs/handoffs/
628+
docs/archive/
629+
docs/audit/
630+
docs/research/
631+
docs/superpowers/
632+
docs/plans/
633+
docs/planning/
634+
docs/brainstorms/
635+
docs/explorations/
636+
docs/issues/
637+
docs/designs/
638+
docs/course-explorer/
639+
docs/desktop-mcp/
640+
docs/migrations/
641+
docs/standards/
642+
docs/troubleshooting/
643+
644+
# Process docs folded into docs/contributing.md and kept privately
645+
docs/openspec.md
646+
docs/ownership.md
647+
docs/ci.md
648+
docs/e2e-test-harness.md
649+
docs/release-process.md
650+
docs/mcp.md
651+
docs/audhd-deep-technical-learning-roadmap.md
652+
docs/audhd-learning-loop-implementation.md

‎CONTRIBUTING.md‎

Lines changed: 15 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,27 @@
11
# Contributing to StudyLoop
22

3-
Thank you for helping improve an AuDHD-aware learning tool. Contributions can
4-
be code, documentation, accessibility feedback, screenshots, reproducible bug
5-
reports, or honest accounts of where the workflow created too much friction.
3+
Thank you for helping improve an AuDHD-aware learning tool. The full contributor guide lives in the
4+
documentation: **[docs/contributing.md](docs/contributing.md)** (published at
5+
<https://netdevautomate.github.io/StudyLoop/contributing/>). It covers the development environment,
6+
repository layout, how changes are made and tested, CI, documentation standards, the changelog, pull
7+
requests, issues, prioritisation, AI usage and models through a LiteLLM gateway, and security.
68

7-
## Supported release scope
8-
9-
The pre-release has five first-party mentor harnesses:
10-
11-
- Kiro CLI, Codex, and Claude Code are core.
12-
- OpenCode and pi are preview integrations.
13-
14-
Do not add another harness to a drive-by pull request. Start with an issue that
15-
defines its persona mechanism, launch and resume commands, session store,
16-
exporter, health check, failure behavior, and live acceptance path.
17-
18-
## Development setup
9+
The short version:
1910

2011
```bash
2112
git clone https://github.com/NetDevAutomate/StudyLoop.git studyloop
2213
cd studyloop
2314
uv sync --all-packages --all-extras
2415
uv run playwright install chromium
16+
uv run pre-commit install
17+
just preflight
2518
```
2619

27-
The workspace contains two Python packages:
28-
29-
- `packages/studyloop` owns the learner-facing CLI, Web UI, mentor adapters,
30-
planning, review, and content workflows.
31-
- `packages/agent-session-tools` owns session import, SQLite search, sync, and
32-
optional Obsidian mirroring.
33-
34-
Mentor assets live under `agents/`. Shared methodology belongs under
35-
`agents/shared/`; harness-specific launch or export behavior belongs in that
36-
harness's own directory.
37-
38-
## Test and evidence rules
39-
40-
Tests may use isolated deterministic fixtures. Those fixtures must remain in
41-
the test tree and must not be selectable or packaged as product backends.
42-
Product data, screenshots, demos, release notes, and manual acceptance evidence
43-
must come from real behavior; never present placeholder data as a live result.
44-
45-
Before opening a pull request, run:
46-
47-
```bash
48-
just release-check
49-
just docs
50-
```
51-
52-
For a narrow change, run the nearest focused tests while iterating, then the
53-
release gate before handoff. If global checks have a known unrelated failure,
54-
report it separately and include the narrower evidence for your change.
55-
56-
Do not copy a test total into a document or release note. The executing gate is
57-
the authority and its current output belongs in machine-readable release
58-
evidence. Automated green also does not replace a manual learner-journey check.
59-
60-
## Public documentation boundary
61-
62-
`mkdocs.yml` is an explicit allowlist. A new file under `docs/` is internal by
63-
default and will not be published until it is deliberately rewritten for users
64-
and added to the allowlist and navigation.
65-
66-
Keep these internal unless there is a specific reason to publish them:
67-
68-
- audits and release evidence;
69-
- implementation plans and handoffs;
70-
- architecture investigations and ADRs;
71-
- agent instructions and model-review transcripts;
72-
- historical debugging notes.
73-
74-
## Pull requests
75-
76-
Keep each pull request focused and answer:
77-
78-
1. What learner or contributor problem does this solve?
79-
2. What changed?
80-
3. Which automated checks passed?
81-
4. Which live or manual journey was checked?
82-
5. What remains unverified?
20+
- Branch from `main` with a `feat/`, `fix/`, `docs/` or `test/` prefix; never `lane/`.
21+
- Tests first; docs and changelog in the same change; `just preflight` green before you push.
22+
- Never include credentials, session transcripts, personal hostnames or unredacted local configuration in
23+
issues, fixtures, screenshots or logs.
24+
- Security concerns go through [GitHub's private advisory form](https://github.com/NetDevAutomate/StudyLoop/security/advisories/new), never a public issue.
8325

84-
Never include credentials, private session transcripts, personal hostnames, or
85-
unredacted local configuration in issues, fixtures, screenshots, or logs.
26+
StudyLoop is a 0.1.x pre-release with five first-party mentor harnesses (Kiro CLI, Codex and Claude Code are
27+
core; OpenCode and pi are preview). Proposals for another harness start with an issue, not a pull request.

‎Justfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ spec-check:
121121
if command -v openspec >/dev/null 2>&1; then \
122122
openspec validate --specs --all; \
123123
else \
124-
echo "openspec CLI not found — skipping spec validation (see docs/openspec.md)"; \
124+
echo "openspec CLI not found — skipping spec validation (see the OpenSpec section of docs/contributing.md)"; \
125125
fi
126126

127127
audit:

‎docs/architecture/current.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ flowchart TB
743743
- **The browser never talks to the TTS server directly.** Everything goes through `/api/tts/speak`, which carries StudyLoop's own authentication. A LAN tablet therefore needs no route to the Kokoro port, which is why binding that port to loopback costs nothing.
744744
- **Any OpenAI-compatible Kokoro server works.** Three were verified with a byte-identical request and the same voice ids: OpenVox (:8000, 2.4–2.5 s warm per sentence), VoiceMode (:8880, 0.37–1.8 s), and the bundled container. `/v1/models` is the only portable health path — the voice-listing URL differs between implementations.
745745
- **The voice list is filtered to English on purpose.** One server offered 67 voices and 41 were kept. The same model speaks Mandarin, Japanese, Spanish, French, Hindi, Italian and Portuguese, and a stray voice id is a *valid request that speaks that language* rather than an error, so an unfiltered list is a silent foot-gun.
746-
- **No model weights, no vendored runtime, no COOP/COEP question.** The in-browser tier (Kokoro-82M via transformers.js on WebGPU/WASM, the vendored ONNX Runtime, the phonemiser, ~27 MB of LFS-tracked runtime) was removed. It measured 6.6x real time on a warmed WebGPU tier, self-downgraded to silence, once spoke Mandarin unprompted, and — decisively — could not run at all over `studyloop web --lan`, because plain HTTP is not a secure context so the browser hides both `navigator.gpu` and Cache Storage. Design notes are kept at `docs/archive/browser-neural-tts-design.md`.
746+
- **No model weights, no vendored runtime, no COOP/COEP question.** The in-browser tier (Kokoro-82M via transformers.js on WebGPU/WASM, the vendored ONNX Runtime, the phonemiser, ~27 MB of LFS-tracked runtime) was removed. It measured 6.6x real time on a warmed WebGPU tier, self-downgraded to silence, once spoke Mandarin unprompted, and — decisively — could not run at all over `studyloop web --lan`, because plain HTTP is not a secure context so the browser hides both `navigator.gpu` and Cache Storage. Design notes are kept at `private-docs/browser-neural-tts-design.md`.
747747
- **`stop()` is unified across tiers.** It halts server-audio playback and settles the in-flight playback promise; the web-speech tier delegates to `speechSynthesis.cancel()`.
748748
- **Voice adds no browser-to-internet egress.** Synthesis is a call from the Python server to a host you configured, normally on loopback. Optional content providers remain the only outbound surface for generation.
749749

0 commit comments

Comments
 (0)