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
* feat: add comprehensive pre-commit CI hooks
- Add safety for dependency vulnerability scanning
- Add bandit for Python security linting with appropriate skips
- Add interrogate for docstring coverage checking (60% threshold)
- Add mypy for type checking with permissive CI configuration
- Update requirements.txt with safety and bandit dependencies
- Configure all tools for CI compatibility (non-blocking for initial setup)
* security: add hardening measures based on upstream issues
- Add .gitattributes rules to force LF line endings for critical files (fixes CRLF security issues)
- Enhance document validator with MIME type validation and stricter PDF size limits
- Fix subprocess security issues by adding shell=False to prevent command injection
- Add resource exhaustion protection with separate PDF size limits (50MB vs 100MB general limit)
Addresses upstream issues:
- #97: Cross-platform deployment failures due to CRLF line endings
- #31: Large PDF processing failures and resource exhaustion
- Security hardening for subprocess calls to prevent injection attacks
* docs: streamline contribution process and pre-commit checks
- Update and format CONTRIBUTING.md for clarity
- Simplify pull request template
- Adjust pre-commit config to be more lenient locally
* chore: update .gitignore, .secrets.baseline, pyproject.toml, and requirements.txt for improved configuration and dependency management