chore: add community files, CI workflows, and host test tooling

Add the repository-facing scaffolding:

- Community/legal: README.md, LICENSE (GPL-3.0-or-later), NOTICE,
  CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, .gitleaks.toml
- CI: .github/ workflows (ci.yml aggregate gate, nightly.yml, codeql.yml),
  issue/PR templates, dependabot config (pinned Actions per README)
- Host tooling: tools/frame_tools (ruff/pyright/pytest gates, partition,
  evidence-schema, doc-links, SBOM checks), tests/, pyproject.toml, uv.lock
- poc/ host side: poc/host contract-test suite (ASan/TSan-capable),
  poc/README.md, poc/poc-a.code-workspace

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <[email protected]>
This commit is contained in:
2026-08-31 08:00:51 +08:00
co-authored by Sisyphus
parent dbb7c13729
commit a6d6168fd5
40 changed files with 3792 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
from pathlib import Path
from frame_tools.doc_links import validate_doc_links
def test_existing_file_and_anchor_pass(tmp_path: Path) -> None:
(tmp_path / "target.md").write_text("# Target Heading\n", encoding="utf-8")
(tmp_path / "source.md").write_text("[target](target.md#target-heading)\n", encoding="utf-8")
assert validate_doc_links(tmp_path) == []
def test_missing_target_is_reported(tmp_path: Path) -> None:
(tmp_path / "source.md").write_text("[missing](missing.md)\n", encoding="utf-8")
errors = validate_doc_links(tmp_path)
assert errors
assert "does not exist" in errors[0]
def test_ignored_virtual_environment_is_not_scanned(tmp_path: Path) -> None:
ignored = tmp_path / ".venv-idf"
ignored.mkdir()
(ignored / "README.md").write_text("[missing](missing.md)\n", encoding="utf-8")
assert validate_doc_links(tmp_path) == []
def test_ignored_opencode_state_is_not_scanned(tmp_path: Path) -> None:
ignored = tmp_path / ".opencode" / "node_modules" / "example"
ignored.mkdir(parents=True)
(ignored / "README.md").write_text("[missing](missing.md)\n", encoding="utf-8")
assert validate_doc_links(tmp_path) == []