Skip to content

feat(cindy): add scoped recall and automatic memory hooks - #1564

Merged
hidb4ai merged 8 commits into
masterfrom
codex/cindy-plugin
Oct 29, 2026
Merged

hidb4ai merged 8 commits into
masterfrom
codex/cindy-plugin

Conversation

@PsiACE

@PsiACE PsiACE commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Which issue or RFC does this PR close?

Related: RFC 1345, RFC 1489.

Rationale for this change

Give Cindy users scoped PowerContext recall, optional automatic context and prompt capture, and access to the full Server tool catalog through native MCP.

What changes are included in this PR?

  • Add a standalone Ghost archive targeting Cindy 0.1.115. Its official Node worker channel supports local HTTP Servers and custom ports without another bridge service or a DSH installation.
  • Share the Server connection, URL-bound secret, HTTP client, PreparedContext validator, and Scope resolver between automatic hooks and explicit resolve_scope, prepare_context, and search_memory tools.
  • Resolve an explicit Scope or trusted Cindy session binding on every invocation. Reject model-supplied connection/Scope overrides and never fall back to a default Scope.
  • Append bounded historical context through will-user-message and independently capture its incoming prompt as a Source. Preserve delivery identity; report uncertain writes without retrying them.
  • Store canonical Bearer credentials while accepting the bare-token format saved by the initial settings UI. Keep diagnostic observations separated by session.
  • Document native-memory settings, the independent native MCP configuration, differences from DSH/Pi, and reproducible upstream Codex-runtime acceptance.

Are there any user-facing changes?

Cindy 0.1.115 users can import the Ghost archive and configure its connection once for plugin recall and hooks. Explicit recall remains available when automatic memory is disabled. Automatic capture is separately selectable and Source acceptance does not establish Memory production.

Recall rewrites the displayed, persisted, and dispatched user message. Explicit writes, Handoffs, reviews, and the full catalog use a separately configured native MCP connection; the Ghost cannot enforce its Scope arguments. Cindy's built-in memory settings remain user-controlled.

The integration remains experimental. Electron installation, secret-store UI, and complete Desktop harness assembly are not qualified.

How was this change tested?

  • make check: lock, generated-contract checks, pre-commit hooks, Python type checks, and integration manifest tests.
  • make cindy-test: reproducible standalone worker build, 20 behavior tests, and archive packaging.
  • Strict TypeScript checking of the Cindy worker.
  • 24 focused DSH Scope, PreparedContext, and fail-open behavior tests.
  • make docs-test: lint, tests, static build, and exported-page/link verification.
  • POWERCONTEXT_CINDY_SOURCE=/path/to/cindy-v0.1.115 POWERCONTEXT_CINDY_CODEX_BINARY=/path/to/codex uv run pytest tests/e2e/test_cindy_mcp_chain.py tests/e2e/test_cindy_hooks_chain.py -q: 5 passed against a real authenticated TCP Server.
  • Live acceptance uses upstream Cindy maker-core AppServerHost with Codex CLI 0.159.2 and its existing login. Independent sessions answer QUARTZ-8413 from injected history and QUARTZ-9021 through a model-initiated plugin recall call. Server readback confirms one original Cindy Prompt Source per Scope, with no captured recall history or extra Sources from explicit reads.

The credential/message bridge, root plugin-instance identity, and unused Desktop storage dependencies are simulated. Native MCP transport checks exercise the provider's direct compatibility path, not Desktop's default MCP Apps facade. The live-model check is opt-in; ordinary CI skips it without an explicit Codex binary.

AI usage statement

Implemented with OpenAI Codex, including code, documentation, tests, and live acceptance validation.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

license-eye has checked 1511 files.

Valid Invalid Ignored Fixed
1081 2 428 0
Click to see the invalid file list
  • integrations/cindy/plugins/powercontext/settings.html
  • integrations/cindy/scripts/package.sh
Use this command to fix any missing license headers
```bash

docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

</details>

@@ -0,0 +1,52 @@
<!doctype html>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<!doctype html>
<!--
~ Copyright (c) 2026 OceanBase.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!doctype html>

Comment thread integrations/cindy/scripts/package.sh Resolved
@AlexStocks AlexStocks added 1.4.0 v1.4.0 release tracking and removed 1.3.0 labels Oct 11, 2026
@PsiACE
PsiACE force-pushed the codex/cindy-plugin branch from c8aac61 to a613b39 Compare October 13, 2026 07:18
@PsiACE PsiACE changed the title feat(cindy): add experimental PowerContext plugin feat(cindy): add native MCP and automatic memory hooks Oct 13, 2026
@hidb4ai hidb4ai added 1.4.1 v1.4.1 release tracking and removed 1.4.0 v1.4.0 release tracking labels Oct 17, 2026
@hidb4ai hidb4ai added 1.5.0 v1.5.0 release tracking and removed 1.4.1 v1.4.1 release tracking labels Oct 23, 2026
@PsiACE PsiACE changed the title feat(cindy): add native MCP and automatic memory hooks feat(cindy): add scoped recall and automatic memory hooks Oct 27, 2026
@hidb4ai
hidb4ai marked this pull request as ready for review October 28, 2026 08:22
@hidb4ai

hidb4ai commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Please address the CI failures before merging. At 77efe430, the latest quality check fails with Persistence changed ... update the compatibility review. The earlier upgrade preparation check also fails in test_parallel_workers_reject_changed_preparation_inputs[checkout]: with PC_UPGRADE_SOURCE_SHA set, changing GITHUB_SHA does not trigger the expected rejection. I reproduced that test failure locally; the affected test and gate script are unchanged by this PR.

Please resolve these failures, including any base/merge-related issues, and let the required checks complete successfully before merging.

Comment thread .github/workflows/master.yml Resolved
@hidb4ai

hidb4ai commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

@PsiACE Following up on the CI request: the head is still 77efe430, and the latest run remains blocked by quality, upgrade preparation/gating, and the Python 3.11–3.14 unit/e2e jobs.

The quality failure and the four failures in the 3.12 unit job report a persistence compatibility-review digest mismatch. I checked the actual CI merge 30f22446 and its base 927bb6ee: both have the same mismatch, with identical managed persistence inputs and review declaration. The PR head itself has a matching digest, so this is a baseline/merge-state issue rather than a Cindy schema change.

Please reconcile the compatibility review with the target base, investigate the remaining e2e failures, and rerun the required checks before merging. The Cindy package check is passing.

Copilot AI balanced review requested due to automatic review settings October 29, 2026 06:21

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@hidb4ai hidb4ai 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.

Re-reviewed cd9c0c8. Cindy acceptance now uses a pinned source commit, and CI selection covers Cindy and its shared client inputs. The earlier compatibility-review failures are cleared. I found no blocking code defects; this change adds no Server HTTP/MCP operations or database schema changes.

Approved for the documented experimental integration. Electron installation and complete Desktop routing remain unqualified. Required CI is still pending and must pass before merging.

@hidb4ai
hidb4ai merged commit bf2ac1f into master Oct 29, 2026
68 checks passed
@PsiACE
PsiACE deleted the codex/cindy-plugin branch November 2, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.0 v1.5.0 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants