feat(core): bounded query debug trace (#992)#1115
Merged
Merged
Conversation
Constraint: Debug traces must stay local, bounded, sanitized, and opt-in through oc_query_debug. Rejected: Persist full DOM/debug artifacts or add AgentQL/cloud debugger dependency | too heavy and outside OpenChrome's local MCP direction. Confidence: high Scope-risk: moderate Directive: Keep normal extract_data responses compact; add element debug records in a follow-up only after resolver instrumentation lands. Tested: npx jest tests/query-debug/store.test.ts tests/tools/oc-query-debug.test.ts tests/tools/extract-data.test.ts --runInBand; npm run build; npm run lint:changed Not-tested: Real OpenChrome fixture evidence is documented in the PR for merge-time validation. Co-authored-by: OmX <omx@oh-my-codex.dev>
22 tasks
Owner
Author
Merge rationale (stack consolidation)Intent. Closes #992 — adds a bounded in-memory query debug store, registers Why this is correct.
CI. Targets the AgentQL query DSL feature branch; workflow runs only on |
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.
Progress / Review status
Auto-refreshed 2026-05-13 — owner comments cleaned up to reduce review noise.
feat/992-query-debug→feat/986-agentql-query-dslb565579— Make extraction failures inspectable without bloating responsesOwner comment cleanup: 0 issue + 0 inline review comments deleted. Outstanding feedback from automated/external reviewers above is unchanged.
Summary
oc_query_debugfor latest{ tabId, kind }debug retrievalextract_dataquery/schema paths for found/missing fields, strategies, duration, output size, and parser/schema failuresRepo-fit / duplicate check
extract_dataresponses stay compact.Tests
npx jest tests/query-debug/store.test.ts tests/tools/oc-query-debug.test.ts tests/tools/extract-data.test.ts --runInBandnpm run buildnpm run lint:changedMerge-time real OpenChrome verification
extract_datawith a query containing one existing and one missing field.oc_query_debug({ tabId, kind: "extract" }).notes[0]reports parser failure.Closes #992