Skip to content

feat(assistant): trigger discovery from durable source changes - #6510

Open
xxhZs wants to merge 9 commits into
mainfrom
feat/assistant-event-intake-20261031
Open

xxhZs wants to merge 9 commits into
mainfrom
feat/assistant-event-intake-20261031

Conversation

@xxhZs

@xxhZs xxhZs commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Source changes can wake the existing proactive-discovery Agent without waiting for its periodic check. A short, tool-free screening call reads new information and returns one JSON string: a concise direction worth exploring, or an empty string when no wake is needed. The Agent independently retrieves context, investigates and reports useful findings through Bot.

  • Persist permission-checked source receipts and cursors, deduplicate replay, rotate noisy groups fairly, and isolate source failures. Optional read-only Codex session, generated-memory and Computer History adapters expose source changes.
  • Size screening batches using the selected model's resolved context/input limits and output reserve. Use a conservative UTF-8 estimate, explicitly report unknown capacity, split oversized records durably, and recheck capacity before model submission.
  • Atomically persist screening progress and wake hints. Coalesce pending hints, retain arrivals during execution for a later wake, and preserve failed activations for retry. Periodic exploration remains independent.
  • Wake the ordinary discovery Agent with the current time and brief directions described as potentially inaccurate or incomplete. Remove selected-event worklists, per-event acknowledgements and the event-specific finish hook; successful execution consumes wake hints, not claims that every underlying matter was investigated.
  • Preserve source originals, positions and existing reports on upgrade. Unfinished legacy event work returns to screening. No private records, evaluation databases or generated demo files are included.

Verification

Rerun for this update:

  • Runtime and runtime-host builds and typechecks.
  • Assistant regression suites: 313 tests passed (93 memory, 132 initiative, 88 persistent tasks).
  • Compiled runtime plugin-LLM/source and runtime-host auxiliary-model-budget suites: 12 tests passed.
  • Codex source plugin npm run verify: build, 16 tests, typecheck and extension packaging.
  • Biome checks for changed TypeScript files and git diff --check.

An isolated historical-source replay exercised this direction-based implementation with a real model. It demonstrated screening, autonomous investigation and Bot delivery, but also exposed incomplete evidence retrieval and stale-state suggestions. It is not a claim of complete discovery recall or live external execution. No paid model evaluation, desktop deployment or full-repository suite was started for this submission update.

Rollout and limitations

Intake remains opt-in through QuickDiscoveryControl.eventIntake; intakeModelKey selects a configured screening model. First observation establishes a baseline; intake positions do not advance memory-index coverage. Change feeds are polled, and sources without them retain periodic observation. Codex sources require explicit local scope configuration; this does not enable recording.

Receipt, screening and wake counts are not counts of independent matters or evidence of complete investigation. Stored journals currently have no configurable retention. Search-result excerpts and extractor-interface improvements discussed after the replay are not included in this PR update.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

OpenAI Codex assisted with implementation, tests, documentation and submission. Commits include a Generated-by: OpenAI Codex trailer.

Checklist

  • Focused regression coverage accompanies the behavior changes
  • Affected builds, typechecks, tests and changed-file checks pass locally
  • Behavior change is described above

Persist source changes, screen conversation groups fairly, and wake the existing
quick worker with permission-checked, paginated evidence instead of large prompts.
Include optional read-only Codex history, memory and activity source adapters.

Generated-by: OpenAI Codex
@github-actions github-actions Bot added the effort/XXL Over 2500 readable lines label Oct 31, 2026

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

NO-GO for merging this feature into main as submitted. The accepted repository decision says that main takes fixes and new features go to rust-preview. At 28135ab9124e00fccd7c9025fa3a421482ab9b91, this PR introduces a new capability: an opt-in source-event intake and model-screening path, a new evidence-reading tool and optional Codex/history adapters. packages/runtime-host/src/assistant/index-initiative/quick.ts adds the control and wake path, intake.ts implements the new subsystem, and packages/runtime/src/plugin-source-service.ts extends the source API. Being opt-in does not change its placement under that decision. Please develop it on the Rust line, accounting for that runtime's interfaces.

My reviewed scope is this integration decision. I read the actual PR diff for the new controls/wake routing, assistant registration, auxiliary model selection, source-feed interface and the rollout documentation; I have not completed a functional review of all 31 files. In particular, this is not acceptance of authorization rechecks, durable replay, acknowledgement/report atomicity, retention or upgrade behavior, and I did not run the author's assistant/plugin suites or a live-model evaluation. The successful head CI and a clean merge calculation against main 85a1031c10d104456127f35aac1523b9ffb1a384 do not resolve the branch-policy issue. No functional P0–P2 finding is asserted by this placement review.


Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

xxhZs added 2 commits November 1, 2026 19:13
…wakes

Replace per-event investigation checklists with concise durable wake hints and size screening batches against the selected model capacity.

Generated-by: OpenAI Codex

@Astro-Han Astro-Han left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.

Branch-placement conclusion at 5f46d051026eebdb08ba0a0fa3b071eca7468ce8: this feature still should not be merged into main. I freshly checked the accepted direction in Discussion #6366: main takes fixes, while feature work goes to rust-preview. There is no newer reply in that Discussion superseding that decision. The PR still targets main at 85a1031c10d104456127f35aac1523b9ffb1a384.

The update changes the proposed screening design from per-event investigation selection to persistent wake hints, adds model-capacity budgeting, and changes original-evidence retrieval. I checked the changed file lists and the current README, intake schema/prompt, wake description and model-budget entry points to reassess placement. The base tree still has no assistant/index-initiative/intake.ts; this PR introduces the opt-in source-change → screening → autonomous-discovery wake capability. Fixes to that proposed implementation do not make the overall PR a repair of a capability already on main.

This is a placement-only review, continuing my earlier comment at 28135ab9. The submitted PR now spans 37 files; the head-to-head delta touches 28 files. I have not completed a correctness review of those files, authorization races, durable wake/acknowledgement transitions, model-budget estimates, or upgrade behavior, and I have not executed the author's reported regression suites or a real model. The current CI run succeeded; that does not change the target-branch decision. I am making no P0–P2 correctness finding from this limited review.

The placement objection applies only to merging this feature into the current TypeScript main. It is resolved by an appropriate Rust-targeted implementation, or a later accountable project decision changing the accepted direction. I have neither closed the PR nor approved a merge.


Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.

sunrioa added a commit to sunrioa/maka that referenced this pull request Nov 4, 2026
…view

Merge apache/maka PR apache#6510 at df86958. Preserve its source intake, screening and durable wake hints alongside versioned memory and scoped-context recovery. Add the required ASF header to the imported adapter README.

Generated-by: OpenAI Codex

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

effort/XXL Over 2500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants