Add an off-by-default `security_guard` setting (system.json, with
DEEPTUTOR_GUARD_* deployment overrides) that mounts fastapi-guard's
pure-ASGI middleware in front of the routers: per-address rate limit,
IP allow/deny lists, ban list and an attack-pattern scan of path, query
and headers. Request bodies, WebSocket handshakes, Redis, CORS and
security headers are left alone.
The guard is added before the access-log and CORS middlewares so CORS
stays outermost and 429/403 responses carry CORS headers. When disabled
the package is never imported. When enabled without the package the
backend fails at startup with an install hint. fastapi-guard ships as
the optional `guard` extra (requirements/guard.txt, DEEPTUTOR_EXTRAS).
CONTRIBUTING.md has said 'do not submit PRs directly to main' since it
was written, and says 'when in doubt, target dev'. Twenty-one open PRs
were still sitting on main, some of them a year old, because GitHub
preselects the default branch in the PR form and nobody reads a
CONTRIBUTING link while filling one in.
The default branch stays main, so the reminder has to be at the moment
of creation instead: the composer comment, which is on screen right
below the base selector, and a checklist item so a reviewer can see it
was skipped. All twenty-one have been retargeted.
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.
Release notes: assets/releases/ver1-6-4.md
The web job ran the node tests but never linted, so #921 merged with two real
React violations in it — a predicate named like a hook, which tripped
rules-of-hooks, and a synchronous setState inside an effect. Both were invisible
to every gate the repo had.
Errors only: `npx eslint .` exits 0 on the 79 warnings the tree still carries
(i18n literals, next/image suggestions), so this starts catching the class of
bug that just slipped through without demanding an unrelated cleanup first.
Book is the bulk of this one. Compilation outlives the request that
started it, so a bus owned by that request dropped every background event
and "watch your book being written" degraded into a frozen page; the
stream is now owned per book by the process and survives a refresh or a
reconnect. Reading progress is finally recorded — `visited_page_ids` and
`bookmarked_page_ids` had been declared but never written for the life of
the feature — and rolls up into a completion score and weak chapters. A
book can also leave the app now, as one self-contained Markdown document,
with non-ASCII titles surviving the download.
Two scheduling defects that were invisible in production are fixed: the
same page compiled twice concurrently (billed twice, one result
discarded), and a book grinding on through a provider outage until every
chapter was half-generated. The source sweep is bounded and allocated
round-robin rather than spent on the first few knowledge bases, and
retrieval now tells indexed bases from connected pointers, so an Obsidian
vault or a remote IMA library no longer contributes zero while looking
like a source with nothing relevant. Confirming a spine shows a live
per-chapter estimate derived from the Section Architect's own templates.
Also here: three home starter suggestions built from memory recall,
mastery-path handoff moved into one module that changes lease, session
preference, and live turn together, and account-level Tencent IMA
credentials with the per-KB pair still winning.
Notes: assets/releases/ver1-5-13.md
This commit also carries the README prose sync, the eleven translated
READMEs, the release-notes archive sweep, and the version bump. Two gate
fixes ride along: the `Stamped` protocol is declared read-only so the
frozen `EntityStamp` satisfies it, and six GraphRAG adapter tests that
reached a deep `graphrag` import without guarding it now skip like their
four neighbours instead of failing where the extra is not installed.
BuildKit now attaches a provenance record and an SBOM to the multi-platform
manifest pushed to GHCR, so a pulled image can be traced back to this
workflow and its contents inspected without running the container:
docker buildx imagetools inspect ghcr.io/hkuds/deeptutor:<tag> --format '{{ json .SBOM }}'
No permissions change is needed — these ride the existing GHCR login;
id-token is only required for keyless signing. The Dockerfile declares no
build args, so provenance mode=max records nothing sensitive.
CI installed ruff unpinned; 0.16.0 promoted markdown code-block formatting out
of preview, so `ruff format --check .` began flagging the Python snippets in the
docx/pdf/pptx/xlsx skill docs — code that had not changed since v1.5.3 (its green
CI predated the ruff bump).
Pin the CI ruff to 0.16.0 (matching local dev) so the gate can't drift on an
unpinned upstream release, and reformat the four SKILL.md code blocks — pure
layout only (split compound statements, normalize inline-comment spacing, blank
line after imports) — so the gate is green again.
VitePress GitHub Pages deploy is not in use; remove the workflow added
alongside the pypi-release fix.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The .github entry in .gitignore silently excluded pypi-release.yml and
docs.yml from version control, so the PyPI publish workflow never reached
the default branch and didn't fire for release events.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The smoke test job fails because router modules load main.yaml at
import time, but CI has no data/user/settings directory. Add a setup
step that writes a minimal config so pytest collection succeeds.
Made-with: Cursor