Repository navigation
feat(abom): harden the QLaaS authoring loop - #70
Draft
data-douser wants to merge 6 commits into
Draft
data-douser wants to merge 6 commits into
data-douser wants to merge 6 commits into
Conversation
An authoring session can carry a zizmor-sized query request to 7 of 7 without the operator stepping in. Fifteen requests from the zizmor gap analysis ran through it on has-ghas. - ql-mcp runs behind `codeql-abom serialize-mcp`, a relay that hands it one tools/call at a time. ql-mcp's CLI server exits on its first `query run` (an empty per-session pack cache); the call in flight is retried as a fresh process, but one queued behind it was never answered. A call the client gives up on is cancelled, and the next waiting call is sent. - ql-mcp's test, query, metadata and language-server tools are offered, with paths confined to the pack. A form whose meaning is plain but which ql-mcp would refuse is corrected and the correction handed back to the model. `codeql_query_run` must name a database, and the rules offer it for PrintAST only; `codeql_test_run` is how a query meets its test database. - A GPT model's `rg` and `apply_patch` are offered and confined like Claude's `grep`, `create` and `edit`; a patch is judged by every file it names. - Session state is kept under --work-dir or, where that is inside the pack, in ABOM's own directory keyed by the pack. The operator is never asked where it lives. - The prompt names the library sources each locked pack resolves to, codeql/actions-all first. - Pack install pins codeql/actions-all in a pack ABOM's older scaffold left at "*", and drops the lock ABOM wrote for it. - A saved tool path that no longer exists is forgotten, and the server says so; with no Copilot CLI named, the one VS Code installed is used. - A run records the marked fixtures it ran over, with digests. Failed first holds while every marked fixture a failing run covered is unchanged. Plans: qlaas-loop.md gains data extensions (6) and fixtures checked against SchemaStore's Actions schemas (7), and records that a run is never handed a database it did not name. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Nov 23, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ile operations The Go self-audit reported nine go/path-injection results, every one a path that began in a directory the environment names or in a file in the pack, and reached a path-based create, remove or stat. - Session state, where --work-dir is inside the pack, now goes to a private os.MkdirTemp directory made once for the server's run, as the default scratch is, rather than a fixed name under os.UserCacheDir. A link planted ahead of that name would have carried every session's writes, and the cleanup's RemoveAll, somewhere else. - The libraries the rules name are looked up through an os.Root at each package cache, so a lock entry that climbs out of the cache names nothing. - The Copilot CLI VS Code installed is checked through the root it is found in (ownedIn), with the refusals ownedHere makes for a path the operator names; a link that leads out of the configuration directory is refused rather than followed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
Purpose
Make the QLaaS authoring loop reliable enough that a session carries a query request from scaffold to passing tests without the operator stepping in, while everything it touches stays confined to the pack.
Important changes
ql-mcp
codeql-abom serialize-mcprelays tool calls to ql-mcp one at a time. ql-mcp's CLI server exits on its firstquery run, and a call queued behind it was never answered. A call the client cancels frees the next.codeql_query_runmust name a database and is offered for PrintAST only.codeql_test_runruns a query against its test database.Models and files
rgandapply_patchare offered and confined like Claude'sgrep,createandedit. A patch is judged by every file it names.--work-dir. Where that is inside the pack, it lives in a private temporary directory made once per server run. The operator is never asked where.os.Root, so a link cannot lead elsewhere. That covers library lookup and the VS Code Copilot CLI check.Packs and toolchain
codeql/actions-allfirst.codeql/actions-allin packs an older ABOM scaffold left at"*".Test evidence
marked_fixtures). Failed first holds while every marked fixture a failing run covered is unchanged.Plans: qlaas-loop.md adds data extensions (item 6) and checking fixtures against the Actions schemas (item 7). It also records that a run is never handed a database it didn't name.
Notes
CI on this base. While this PR targets
abom/app-credentials/1, Go lint and dependency review don't run; they run once it targetsmain.After feat(abom): App-only production credentials and role-checked ownership claims #69 squash-merges, rebase onto
mainand retarget.2167174is feat(abom): App-only production credentials and role-checked ownership claims #69's head today; use its final head: