Conversation
…on and review generation DeepSchemas enrich the DeepReview system with file-level schemas that provide automatic validation (JSON Schema + bash commands) on writes and synthetic review rule generation at /review and finished_step time. - Core module: src/deepwork/deepschema/ (config, discovery, matcher, resolver, review_bridge) - Write hook: PostToolUse on Write/Edit validates and injects conformance notes - Multi-source named schema discovery: project-local, standard_schemas/, DEEPWORK_ADDITIONAL_SCHEMAS_FOLDERS env var - Parent schema inheritance with circular reference detection - 67 new tests across 6 test files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…t fixture - Add self-describing DeepSchema in standard_schemas/deepschema/ with JSON Schema validation and 8 RFC 2119 requirements for deepschema.yml files - Move deferred imports to top-level in review/mcp.py and quality_gate.py (review finding: DRY violation) - Remove fragile string splitting for schema error paths (review finding) - Add without_standard_schemas pytest fixture in conftest.py for clean test environments - Fix tests to account for standard schemas being auto-discovered Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update project structure trees, review pipeline descriptions, quality gate docs, MCP tool descriptions, and hooks README to include the new deepschema/ package, standard_schemas/, and write hook. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…GENTS.md - Replace remote json_schema_path reference with local symlink - Update AGENTS.md project structure tree for DeepSchema subsystem Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Exposes named DeepSchema info (name, summary, matchers) via an MCP tool so agents can discover what file schemas are defined in the project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…temMessage systemMessage is displayed to the user but not the agent, so DeepSchema conformance notes and validation errors were invisible to the model. Switch all platforms to use hookSpecificOutput.additionalContext which is injected into the agent's conversation context. Also adds YAML file parsing support for JSON Schema validation in the write hook (from another agent's fix). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Ensures hooks use additionalContext (agent-visible) instead of systemMessage (user-only) when the agent needs to act on the output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a user-facing skill explaining how to create and manage DeepSchemas (named and anonymous), plus a README section covering the feature. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Create formal requirements spec for the DeepSchema subsystem - Add DW-REQ-006.6 reference to hook_output_routing .deepreview rule - Update suggest_new_reviews to suggest both DeepSchemas and .deepreview rules - Replace deepschema_schema.json copy with symlink (matches job_yml pattern) - Apply ruff format fix to server.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add deepschema skill to directory trees in architecture.md and CLAUDE.md - Add get_named_schemas tool (#9) to architecture.md MCP tools section - Update hooks README event mapping (add before_model, after_model, SubagentStop) - Update hooks README tool mapping (add web_fetch, web_search, task) - Add .deepreview to hooks README files table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Captures how reviewers should treat MUST/SHOULD/MAY violations in DeepSchema compliance reviews, matching the original design intent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ncrmro
added a commit
that referenced
this pull request
Mar 31, 2026
* inital spec file * feat: implement DeepSchema system for rich file schemas with validation and review generation DeepSchemas enrich the DeepReview system with file-level schemas that provide automatic validation (JSON Schema + bash commands) on writes and synthetic review rule generation at /review and finished_step time. - Core module: src/deepwork/deepschema/ (config, discovery, matcher, resolver, review_bridge) - Write hook: PostToolUse on Write/Edit validates and injects conformance notes - Multi-source named schema discovery: project-local, standard_schemas/, DEEPWORK_ADDITIONAL_SCHEMAS_FOLDERS env var - Parent schema inheritance with circular reference detection - 67 new tests across 6 test files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add standard deepschema for deepschema files, review fixes, test fixture - Add self-describing DeepSchema in standard_schemas/deepschema/ with JSON Schema validation and 8 RFC 2119 requirements for deepschema.yml files - Move deferred imports to top-level in review/mcp.py and quality_gate.py (review finding: DRY violation) - Remove fragile string splitting for schema error paths (review finding) - Add without_standard_schemas pytest fixture in conftest.py for clean test environments - Fix tests to account for standard schemas being auto-discovered Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: update documentation to reflect DeepSchema subsystem Update project structure trees, review pipeline descriptions, quality gate docs, MCP tool descriptions, and hooks README to include the new deepschema/ package, standard_schemas/, and write hook. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: symlink job.schema.json into job_yml standard schema, update AGENTS.md - Replace remote json_schema_path reference with local symlink - Update AGENTS.md project structure tree for DeepSchema subsystem Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: resolve ruff lint errors (import ordering, unused import) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: gitignore .claude/worktrees/ Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add get_named_schemas MCP tool for schema discovery Exposes named DeepSchema info (name, summary, matchers) via an MCP tool so agents can discover what file schemas are defined in the project. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix: route hook context to agent via additionalContext instead of systemMessage systemMessage is displayed to the user but not the agent, so DeepSchema conformance notes and validation errors were invisible to the model. Switch all platforms to use hookSpecificOutput.additionalContext which is injected into the agent's conversation context. Also adds YAML file parsing support for JSON Schema validation in the write hook (from another agent's fix). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: add .deepreview rule for hook output routing to agent Ensures hooks use additionalContext (agent-visible) instead of systemMessage (user-only) when the agent needs to act on the output. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add /deepschema skill and DeepSchemas section to README Adds a user-facing skill explaining how to create and manage DeepSchemas (named and anonymous), plus a README section covering the feature. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * feat: add DW-REQ-011 DeepSchema requirements spec, review improvements - Create formal requirements spec for the DeepSchema subsystem - Add DW-REQ-006.6 reference to hook_output_routing .deepreview rule - Update suggest_new_reviews to suggest both DeepSchemas and .deepreview rules - Replace deepschema_schema.json copy with symlink (matches job_yml pattern) - Apply ruff format fix to server.py Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: fix stale documentation found during review - Add deepschema skill to directory trees in architecture.md and CLAUDE.md - Add get_named_schemas tool (#9) to architecture.md MCP tools section - Update hooks README event mapping (add before_model, after_model, SubagentStop) - Update hooks README tool mapping (add web_fetch, web_search, task) - Add .deepreview to hooks README files table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add deepschema skill to AGENTS.md project structure Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * docs: add RFC 2119 review severity logic to DW-REQ-011.8 Captures how reviewers should treat MUST/SHOULD/MAY violations in DeepSchema compliance reviews, matching the original design intent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
.deepwork/schemas/,standard_schemas/,DEEPWORK_ADDITIONAL_SCHEMAS_FOLDERSenv var) and anonymous schemas (.deepschema.<filename>.yml)json_schema_pathandverification_bash_commandon every Write/Edit, injects conformance notes/reviewandfinished_stepquality gateTest plan
/reviewto see synthetic review tasksverification_bash_command, write a violating file, verify error message🤖 Generated with Claude Code