feat: add advisory-only host contract v1 - #55
Merged
Conversation
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
Adds a separate, versioned, advisory-only host contract for external workflow authorities such as AutoGPT, without changing djobs-native task ownership semantics.
Base is pinned to v0.19.0 commit
46eff8a1227dc256592a237c9a0af8ba7706d528.New additive surfaces
djobs contract --schema-major 1 capabilitiesdjobs contract --schema-major 1 observation ...djobs contract --schema-major 1 receipt ...djobs-contractdjobs-contract-mcpThe standalone MCP exposes only
capabilities,observation, and receipt verification. It does not register agents or exposecheckpoint/handoff.Contract guarantees
authority=advisoryside_effects=falsewrites_database=falsemode=roandPRAGMA query_only=ONCompatibility
Existing
djobs.entrypoint, coding MCP,checkpoint,handoff, queue, scheduler, and storage semantics remain unchanged. The public console dispatcher delegates every non-contract command to the established entrypoint.Schema major 1 is additive within the major; consumers ignore unknown fields, and a new major requires explicit opt-in.
Validation
Focused isolated tests before push:
10 passed.Added tests cover:
This is a draft until the repository's complete GitHub CI matrix is green.