Repository navigation
Add traceable writing workflows and local corpus tools - #18
Merged
Merged
Conversation
Signed-off-by: David Hamilton <daveh@squareup.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
daveh-beep
marked this pull request as ready for review
September 22, 2026 14:00
delkc
self-requested a review
September 22, 2026 14:56
delkc
approved these changes
Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add traceable writing workflows and local corpus tools
What observed experience does this improve?
Chalkline describes a small writing system, but growing corpora lack local discovery checks and drafting/review responses do not consistently expose their sources and gaps. This proposal adds optional corpus tools and makes task-level traceability and evidence-backed confidence a default, while retaining a no-install setup path.
Scope and relationship to #17
This is a consolidated draft against
main, not a feature branch with hidden prerequisite commits. It includes the previously developed snapshot, calibration, and scoped-approval hardening as well as the new tools and receipt contract.It overlaps #17's external-language-source safety work. Reviewers should decide whether this proposal supersedes #17 or whether that PR lands first and this diff is reconciled afterward. Do not merge both overlapping versions without reconciliation. This proposal does not close or change #17.
Suggested review order:
PINNING.md,AGENTS.md, calibration, setup, and learning contracts.tools/corpus.py, its tests, fictional Harbor example, and architecture/growth/integration guides.docs/traceability.md, operating/setup instructions,tools/receipt.py, its format and tests.Changes
Explicitly out of scope
No documentation website or site dependencies; no hosted service, private corpus, accounts, telemetry, automatic policy learning, model runner, snapshot projector, or publishing integration. Cross-tool retrieval remains an extension point requiring a tested adapter.
Verification
Executed on the final tree committed as
4e7c49f2c10ea32d212815934406346c7af0311f, using Python 3.9.6:python3 -B -m unittest discover -s tests -q: 34 tests passed.bash checks/adversarial-contract.sh: passed contract-text assertions.git diff --cached --check: passed, covering added files as well as modified files.Public-portability review found no publication-blocking internal-content leak in its inspected scope. Two issues were corrected: inherited governance settings during template adoption, and implied generic MCP compatibility. This is not a guarantee of publication rights or absence of all confidential material.
Learning check and merge gate
Keep this PR in draft. New behavioral fixtures and confidence-receipt scenarios have not been executed in isolated model sessions. Unit tests verify implementations, not model adherence or improved writing. Historical red-team evidence applies only to its recorded versions and conditions.
Before merging the behavior changes, supply the held-out reproduction and unchanged control required by CONTRIBUTING.md, or record a maintainer-approved evidence exception. Neither is currently recorded. Hosted GitHub Actions checks passed on Python 3.9 and 3.13 for both push and pull-request runs. The DCO check also passed. Python 3.13 was verified in CI, not on the local machine.
Safety and review
4e7c49f2c10ea32d212815934406346c7af0311fincludes the contributor-authorized DCO sign-off. The local commit-timesadscancheck passed.Traceability receipt
Scope: consolidated proposed tree against main
2a8a2c224b8c9393efce9d03de5e8e050c7868d9; excludes publication and behavioral-effectiveness claims.Sources: committed files named above at
4e7c49f2c10ea32d212815934406346c7af0311f. Git tree identity:0331fa5285cd66253c95d1a4a26c43653ded792f(byte identity, not approval).Basis: implementation claims are supported by source inspection and executed local checks; behavior requirements are proposals pending their own evidence.
Missing evidence: held-out model runs, unchanged behavioral controls, hosted CI, and maintainer acceptance.
Unresolved: #17 overlap and final merge strategy.
Confidence: guidance 2, factual support 2, verification 1; overall 1 for release readiness.
Required review: content/design and technical maintainers; merge authorization. Publication of this draft PR was explicitly authorized; merge was not.
Reviewer approval: not recorded.