-
Notifications
You must be signed in to change notification settings - Fork 2
Add NEXUS consolidation audit and MANUS dispatch schema (Fable 5 routing) #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jwk2588
wants to merge
1
commit into
main
Choose a base branch
from
codex/research-fable-5-deployment-for-consolidation-audit
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,180 @@ | ||
| { | ||
| "version": "0.1.0", | ||
| "sourceOfTruth": { | ||
| "provider": "github", | ||
| "canonicalRepo": "jwk2588/nexus-platform", | ||
| "protectedIdPrefixes": [ | ||
| "EV-", | ||
| "SB-" | ||
| ] | ||
| }, | ||
| "routingTargets": { | ||
| "codex": { | ||
| "provider": "openai", | ||
| "model": "codex", | ||
| "allowedScopes": [ | ||
| "repo_maintenance", | ||
| "react", | ||
| "fastapi", | ||
| "schema_validation", | ||
| "tests", | ||
| "migration_scripts" | ||
| ], | ||
| "blockedScopes": [ | ||
| "legal_theory_generation", | ||
| "privileged_merits_analysis" | ||
| ], | ||
| "costTier": "medium", | ||
| "notes": "Default implementation agent for deterministic code, tests, schemas, and PRs." | ||
| }, | ||
| "claude_sonnet": { | ||
| "provider": "anthropic", | ||
| "model": "claude-sonnet-4-6", | ||
| "allowedScopes": [ | ||
| "planning", | ||
| "summarization", | ||
| "light_repo_analysis", | ||
| "drafting_nonlegal_docs" | ||
| ], | ||
| "costTier": "medium", | ||
| "notes": "Fast planning and synthesis target when long-horizon autonomy is unnecessary." | ||
| }, | ||
| "claude_opus": { | ||
| "provider": "anthropic", | ||
| "model": "claude-opus-4-8", | ||
| "allowedScopes": [ | ||
| "hard_reasoning", | ||
| "review", | ||
| "fallback_from_fable_safety_reroute" | ||
| ], | ||
| "costTier": "high", | ||
| "notes": "Use for high-stakes review and as Fable fallback where Anthropic safety routing applies." | ||
| }, | ||
| "claude_fable": { | ||
| "provider": "anthropic", | ||
| "model": "claude-fable-5", | ||
| "agentHarness": "claude_code_or_managed_agents", | ||
| "allowedScopes": [ | ||
| "multi_day_repo_migration", | ||
| "large_codebase_consolidation", | ||
| "vision_ui_reverse_engineering", | ||
| "chart_table_extraction", | ||
| "autonomous_test_repair" | ||
| ], | ||
| "blockedScopes": [ | ||
| "privileged_merits_analysis", | ||
| "cybersecurity_dual_use", | ||
| "biology_or_chemistry" | ||
| ], | ||
| "costTier": "very_high", | ||
| "notes": "Escalation target only when elapsed-time autonomy, visual reasoning, or million-token context materially reduces risk." | ||
| }, | ||
| "kimi_swarm": { | ||
| "provider": "moonshot_or_local_skill_agents", | ||
| "model": "kimi_skill_agent_swarm", | ||
| "allowedScopes": [ | ||
| "requirement_extraction", | ||
| "policy_checklists", | ||
| "nonlegal_corpus_tagging" | ||
| ], | ||
| "blockedScopes": [ | ||
| "source_of_truth_writes_without_codex_pr" | ||
| ], | ||
| "costTier": "low", | ||
| "notes": "Parallel specialist extraction/checklist workers; all repository writes go through GitHub PRs." | ||
| }, | ||
| "python_scripts": { | ||
| "provider": "local", | ||
| "model": "deterministic_python", | ||
| "allowedScopes": [ | ||
| "monte_carlo", | ||
| "schema_validation", | ||
| "csv_json_transform", | ||
| "regression_tests" | ||
| ], | ||
| "costTier": "low", | ||
| "notes": "Preferred for reproducible quantitative work." | ||
| } | ||
| }, | ||
| "routingRules": [ | ||
| { | ||
| "match": { | ||
| "taskTypes": [ | ||
| "schema_validation", | ||
| "fastapi_endpoint", | ||
| "react_component" | ||
| ], | ||
| "maxBudgetTier": "medium" | ||
| }, | ||
| "target": "codex", | ||
| "reviewGate": "automated_tests" | ||
| }, | ||
| { | ||
| "match": { | ||
| "taskTypes": [ | ||
| "multi_day_repo_migration", | ||
| "history_preserving_consolidation" | ||
| ], | ||
| "signals": [ | ||
| "large_diff", | ||
| "many_repos", | ||
| "requires_persistent_memory" | ||
| ] | ||
| }, | ||
| "target": "claude_fable", | ||
| "fallbackTarget": "codex", | ||
| "reviewGate": "human_review" | ||
| }, | ||
| { | ||
| "match": { | ||
| "taskTypes": [ | ||
| "vision_ui_audit", | ||
| "diagram_chart_table_extraction" | ||
| ], | ||
| "signals": [ | ||
| "screenshot", | ||
| "pdf", | ||
| "table_heavy" | ||
| ] | ||
| }, | ||
| "target": "claude_fable", | ||
| "fallbackTarget": "claude_opus", | ||
| "reviewGate": "human_review" | ||
| }, | ||
| { | ||
| "match": { | ||
| "taskTypes": [ | ||
| "monte_carlo", | ||
| "financial_model_regression", | ||
| "data_transform" | ||
| ] | ||
| }, | ||
| "target": "python_scripts", | ||
| "reviewGate": "automated_tests" | ||
| }, | ||
| { | ||
| "match": { | ||
| "taskTypes": [ | ||
| "legal_requirement_extraction" | ||
| ], | ||
| "signals": [ | ||
| "functional_requirements_only" | ||
| ] | ||
| }, | ||
| "target": "kimi_swarm", | ||
| "fallbackTarget": "claude_sonnet", | ||
| "reviewGate": "privilege_review" | ||
| } | ||
| ], | ||
| "writeBack": { | ||
| "mode": "pull_request_only", | ||
| "branchPrefix": "manus/", | ||
| "commitPolicy": "small_atomic_commits", | ||
| "idPolicy": { | ||
| "additiveOnly": true, | ||
| "noRenumbering": true, | ||
| "noReuse": true, | ||
| "appendLedgerPath": "data/id-ledger/append_only_ids.jsonl" | ||
| } | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,203 @@ | ||
| { | ||
| "$schema": "https://json-schema.org/draft/2020-12/schema", | ||
| "$id": "https://example.local/nexus/manus-dispatch.schema.json", | ||
| "title": "MANUS Dispatch Configuration", | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "version", | ||
| "sourceOfTruth", | ||
| "routingTargets", | ||
| "routingRules", | ||
| "writeBack" | ||
| ], | ||
| "properties": { | ||
| "version": { | ||
| "type": "string", | ||
| "description": "Semantic version for the conductor configuration." | ||
| }, | ||
| "sourceOfTruth": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "provider", | ||
| "canonicalRepo", | ||
| "protectedIdPrefixes" | ||
| ], | ||
| "properties": { | ||
| "provider": { | ||
| "const": "github" | ||
| }, | ||
| "canonicalRepo": { | ||
| "type": "string", | ||
| "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$" | ||
| }, | ||
| "protectedIdPrefixes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string", | ||
| "pattern": "^[A-Z]{2,4}-$" | ||
| }, | ||
| "uniqueItems": true, | ||
| "default": [ | ||
| "EV-", | ||
| "SB-" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "routingTargets": { | ||
| "type": "object", | ||
| "additionalProperties": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "provider", | ||
| "model", | ||
| "allowedScopes" | ||
| ], | ||
| "properties": { | ||
| "provider": { | ||
| "type": "string" | ||
| }, | ||
| "model": { | ||
| "type": "string" | ||
| }, | ||
| "agentHarness": { | ||
| "type": "string" | ||
| }, | ||
| "allowedScopes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "uniqueItems": true | ||
| }, | ||
| "blockedScopes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| }, | ||
| "uniqueItems": true | ||
| }, | ||
| "costTier": { | ||
| "enum": [ | ||
| "low", | ||
| "medium", | ||
| "high", | ||
| "very_high" | ||
| ] | ||
| }, | ||
| "notes": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "routingRules": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "match", | ||
| "target", | ||
| "reviewGate" | ||
| ], | ||
| "properties": { | ||
| "match": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "properties": { | ||
| "taskTypes": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
|
Comment on lines
+112
to
+117
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "signals": { | ||
| "type": "array", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
|
Comment on lines
+118
to
+123
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| "maxBudgetTier": { | ||
| "enum": [ | ||
| "low", | ||
| "medium", | ||
| "high", | ||
| "very_high" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "target": { | ||
| "type": "string" | ||
| }, | ||
| "fallbackTarget": { | ||
| "type": "string" | ||
| }, | ||
| "reviewGate": { | ||
| "enum": [ | ||
| "none", | ||
| "automated_tests", | ||
| "human_review", | ||
| "privilege_review" | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "writeBack": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "mode", | ||
| "branchPrefix", | ||
| "commitPolicy", | ||
| "idPolicy" | ||
| ], | ||
| "properties": { | ||
| "mode": { | ||
| "enum": [ | ||
| "pull_request_only", | ||
| "direct_push_disabled" | ||
| ] | ||
| }, | ||
| "branchPrefix": { | ||
| "type": "string" | ||
| }, | ||
| "commitPolicy": { | ||
| "enum": [ | ||
| "small_atomic_commits", | ||
| "squash_by_task" | ||
| ] | ||
| }, | ||
| "idPolicy": { | ||
| "type": "object", | ||
| "additionalProperties": false, | ||
| "required": [ | ||
| "additiveOnly", | ||
| "noRenumbering", | ||
| "noReuse", | ||
| "appendLedgerPath" | ||
| ], | ||
| "properties": { | ||
| "additiveOnly": { | ||
| "const": true | ||
| }, | ||
| "noRenumbering": { | ||
| "const": true | ||
| }, | ||
| "noReuse": { | ||
| "const": true | ||
| }, | ||
| "appendLedgerPath": { | ||
| "type": "string" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure that configuration versions strictly adhere to semantic versioning (SemVer), it is recommended to add a
patternconstraint to theversionproperty.