Skip to content

feat(aris): sync self-evolution Workflow M into Auto Research Hub - #229

Open
davidliuk wants to merge 1 commit into
mainfrom
codex/issue-153-aris-self-evolution
Open

davidliuk wants to merge 1 commit into
mainfrom
codex/issue-153-aris-self-evolution

Conversation

@davidliuk

Copy link
Copy Markdown
Collaborator

Summary

Closes #153.

Focused sync of ARIS Workflow M from upstream wanshuiyin/Auto-claude-code-research-in-sleep at f1bd907b58f653131ebe6807c482e2554e07f9b9 (not a wholesale upgrade of all bundled skills).

  • Expose /aris-meta-optimize in the shared Auto Research Hub / Chat workflow catalog.
  • Separate the corpus-read-only proposal producer from manual /aris-meta-apply, with fresh cross-family review, backups, provenance and rollback instructions.
  • Bundle the required logging, capture, trace, provenance and trigger-evaluation helpers, scoped shared references, licenses and upstream source-hash inventory.
  • Provide opt-in project logging configuration: preview by default, explicit --apply, atomic backed-up merge preserving unrelated settings/hooks. Global logging is a separate opt-in; standard setup does not enable it.
  • Use the bundled Codex-exec reviewer bridge in the actual Hub Configure endpoint as well as setup and copied commands. Preserve existing registrations. Reject missing bridge assets rather than registering a dead command.
  • Harden bridge continuation: validate thread IDs, fail closed on absent/corrupt saved settings, default to read-only and preserve the stored sandbox over config overrides. MCP disconnect cancels active reviewers with bounded TERM/KILL cleanup.
  • Require full traces for landing even when ARIS_TRACE_MODE=off; require artifact readback before mutation.

Validation

  • HOME=/tmp/dr-claw-tests-home npm test: 245 tests passed on this ARIS-only branch.
  • Adds 27 deterministic tests: 23 Workflow M/catalog/helper/bridge tests and 4 mocked actual configure-route tests. Includes a synthetic Python subprocess that ignores TERM to test bounded cleanup (no model/CLI). Temporary HOME/projects only; registration and filesystem writes in route tests are mocked.
  • npm run typecheck: passed.
  • npm run build: passed.
  • Python AST parsing, Bash syntax checks and git diff --check: passed.
  • Independent review identified the missing actual configure-route update and inherited trace-off behavior; these and a subsequent MCP-disconnect lifecycle finding were fixed and regression-tested.

Safety and limits

  • No live workflow, model/reviewer invocation, paid inference, global CLI installation, MCP registration or real user settings change was performed during validation.
  • Logging remains opt-in and may contain sensitive paths/prompt snippets; documentation covers disabling and retention.
  • Human-only frontmatter / prompts and the optional regex write guard are not an OS sandbox. Dr. Claw Markdown expansion may not enforce every frontmatter permission; documentation states these limitations.
  • Reviewer model/effort names are requested capabilities with documented error-gated fallback, not a guarantee of account availability.
  • Shared skill symlinks can affect multiple projects; landing requires explicit acknowledgement of the resolved target scope.

ap = argparse.ArgumentParser(description="ARIS anti-self-poisoning capture filter.")
ap.add_argument("path", help="file to screen, or - for stdin")
a = ap.parse_args()
text = sys.stdin.read() if a.path == "-" else open(a.path, encoding="utf-8").read()
finally:
try:
temp.unlink()
except FileNotFoundError:
try:
with open(DEBUG_LOG, "a", encoding="utf-8") as fh:
fh.write(message + "\n")
except OSError:
with tmp.open("w", encoding="utf-8") as fh:
json.dump(opts, fh)
tmp.replace(thread_file(thread_id))
except OSError:
assert proc.stdin is not None
try:
proc.stdin.write(prompt.encode("utf-8"))
except (BrokenPipeError, OSError):
finally:
try:
proc.stdin.close()
except OSError:
proc.kill()
else:
proc.terminate()
except ProcessLookupError:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Sync latest ARIS auto-evolution workflow into Auto Research Hub

1 participant