8000 hub: add lokdocsqr corpus (local-first file automation) by badretd · Pull Request #2908 · xerj-org/xerj · GitHub
[go: up one dir, main page]

Skip to content

hub: add lokdocsqr corpus (local-first file automation) - #2908

Merged
xerj-org merged 1 commit into
xerj-org:corpus-hubfrom
badretd:lokdocsqr-corpus
Nov 5, 2026
Merged

xerj-org merged 1 commit into
xerj-org:corpus-hubfrom
badretd:lokdocsqr-corpus

Conversation

@badretd
@badretd badretd commented Nov 3, 2026
Copy link
Copy Markdown
Contributor

What this changes, and why

Adds the lokdocsqr reference corpus: tools/xerj-code/hub/lokdocsqr.json plus its live row in tools/xerj-code/hub/backlog/backlog-100.json. The corpus is the LokDocSQR repository pinned at the latest commit on main.

What the corpus is FOR: an agent building or maintaining a local-first file-automation engine queries this for workflow-graph execution, scope-enforced filesystem mutations, dry-run and approval policy, append-only audit and rollback, the .ldsq DSL grammar and compiler, and the CLI contracts.

Pin

  • Source: https://github.com/badretd/lokdocsqr
  • SHA: e17f591b71d02f51b0fe4f454e77fbfed0fbf4e6 — the latest commit on main (2026-11-03), not the 0.1.0 pre-release tag (3cd4dd7).
  • 278 files, 3,282,769 bytes.

Licence review (G4)

Opened LICENSE at the pin: verbatim Apache License 2.0. pyproject.toml declares Apache-2.0 and NOTICE carries the copyright. licenses/gpl-3.0.txt and licenses/lgpl-3.0.txt are the licence texts for the optional PySide6 GUI extra, not bundled CLI source; NOTICE states the CLI does not include PySide6. THIRD-PARTY-NOTICES is a dependency inventory, not this project's licence. No vendored third-party source in the tree. Review block: spdx: Apache-2.0, use: adapt-with-attribution.

Why this is not memorised (G3)

LokDocSQR is a pre-1.0, domain-specific project. The corpus is the implementation and design record for its scope-enforced filesystem layer, executor, audit/rollback and DSL — not a famous public snippet.

Checks

  • python3 tools/xerj-code/hub/validate_hub.py → corpus-hub validation OK: 561 manifests, 3 recipes, backlog 597 rows (559 live)
  • xerj corpus add --from tools/xerj-code/hub/lokdocsqr.json --as lokdocsqr-hubtest → rebuilt at e17f591b71d0, licence=Apache-2.0, review block preserved.
  • xerj corpus index lokdocsqr → corpus 'lokdocsqr' searchable: 4266 records (217 code files; 2 junk skips: an empty __init__.py and a 0-page sample PDF).
  • Local retrieval spot-check, five queries, each returned relevant top passages:
    1. "How does the executor enforce workspace scope before a filesystem mutation?" → src/lokdocsqr/core/scope.py
    2. "How does dry-run approval policy decide whether a write needs verification?" → README.md / policy docs
    3. "How does the audit log record a run and how do you roll it back?" → README.md audit/rollback
    4. "What is the .ldsq syntax for a move node with a date template?" → docs/DSL.md
    5. "How does the CLI compile a .ldsq document to canonical automation JSON?" → src/lokdocsqr/cli/main.py

Checklist from CONTRIBUTING §5: filename equals the corpus field; full 40-hex SHA; the source has a human review block; backlog row is live / lane A; no binaries.

Provenance

  • Written by: AI agent (DeepSeek V4.1 Flash via OpenCode), run by @badretd (accountable for the change).
  • Verified (commands run, output observed): the validator, the --from rebuild, the index run, and the five xerj code queries above.
  • Assumed (not tested, and what would falsify it): the hub CI's cargo test -p xerj-common xccode::manifest gate was not run locally; validate_hub.py and the --from rebuild cover the same manifest shape. The corpus is first-party; if the repository's licence changes at a future pin, this review must be redone.

@cla-bot
cla-bot Bot commented Nov 3, 2026
Copy link
Copy Markdown

Thanks for this contribution — we'd like to merge it.

Before we can, we need a signed Contributor License Agreement from: @badretd

It is a one-time thing per contributor, not per pull request. Read CLA.md, then open a small pull request adding your GitHub username to .contributors — that pull request is your signature, since it is made from your own account.

Once it is merged, comment @cla-bot check here and this check will go green. If you believe you are already covered, comment @cla-bot check and it will re-verify.

@badretd
badretd commented Nov 3, 2026
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot
cla-bot Bot commented Nov 3, 2026
Copy link
Copy Markdown
8000

Thanks for this contribution — we'd like to merge it.

Before we can, we need a signed Contributor License Agreement from: @badretd

It is a one-time thing per contributor, not per pull request. Read CLA.md, then open a small pull request adding your GitHub username to .contributors — that pull request is your signature, since it is made from your own account.

Once it is merged, comment @cla-bot check here and this check will go green. If you believe you are already covered, comment @cla-bot check and it will re-verify.

@cla-bot
cla-bot Bot commented Nov 3, 2026
Copy link
Copy Markdown

Re-checking the CLA status for every commit author on this pull request…

@badretd
badretd commented Nov 3, 2026
Copy link
Copy Markdown
Contributor Author

@cla-bot check

@cla-bot
cla-bot Bot commented Nov 3, 2026
Copy link
Copy Markdown

Thanks for this contribution — we'd like to merge it.

Before we can, we need a signed Contributor License Agreement from: @badretd

It is a one-time thing per contributor, not per pull request. Read CLA.md, then open a small pull request adding your GitHub username to .contributors — that pull request is your signature, since it is made from your own account.

Once it is merged, comment @cla-bot check here and this check will go green. If you believe you are already covered, comment @cla-bot check and it will re-verify.

@cla-bot
cla-bot Bot commented Nov 3, 2026
Copy link
Copy Markdown

Re-checking the CLA status for every commit author on this pull request…

@xerj-org
xerj-org commented Nov 4, 2026
Copy link
Copy Markdown
Owner

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Nov 4, 2026
@cla-bot
cla-bot Bot commented Nov 4, 2026
Copy link
Copy Markdown

Re-checking the CLA status for every commit author on this pull request…

@xerj-org
xerj-org merged commit 7381b43 into xerj-org:corpus-hub Nov 5, 2026
2 checks passed
@xerj-org
xerj-org commented Nov 5, 2026
Copy link
Copy Markdown
Owner

Xerj Merger made the fix: added the lokdocsqr reference corpus (badretd/lokdocsqr pinned at e17f591b, 278 files) and its live backlog row. Checked that the repo is first-party and the LICENSE at the pin is Apache-2.0, and corpus-hub validate passed. Thanks @badretd!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0