Skip to content

chore(mat): refresh sidecar via mat-sync rebootstrap - #6

Merged
Christian-Devora merged 5 commits into
mainfrom
chore/mat-sync-refresh
Nov 5, 2026
Merged

Christian-Devora merged 5 commits into
mainfrom
chore/mat-sync-refresh

Conversation

@Christian-Devora

Copy link
Copy Markdown
Collaborator

Summary

  • Rebootstrapped MAT sidecar from upstream via /mat-update-mat → mat-sync (routing: rebootstrap; true_drift: 0)
  • Added .mat/source-config.json v2, refreshed .mat/ docs/scripts, and opted into selective .cursor/ tracking (agents/commands/hooks/rules/skills)
  • Updated CONTRIBUTING.md / AGENTS.md for the new .cursor/ policy; left product PHPUnit WIP unstaged

Test plan

  • bash scripts/doctor.sh PASS (post-approve)
  • bash scripts/phase1-verify.sh OK (adopted-operational)
  • Review PR file list: no plugin PHP / composer / product assets
  • Confirm private paths stay out (.cursor/mcp.json, hook state, __pycache__)

Sync MAT workflow assets from upstream (source-config v2, docs, scripts,
selective .cursor tracking) while leaving product PHPUnit WIP unstaged.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T13:47:45.734277Z 1d35467 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1d3546706f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .gitignore
Comment on lines +120 to +122
!**/.env.sample
.cursor/mcp.json

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Ignore the newly introduced live MAT environment file

When an operator follows .mat.env.sample and copies it to .mat.env, the live configuration is neither gitignored nor excluded by .cursorignore. The sample explicitly describes it as gitignored and provides fields for observability authentication tokens, but git check-ignore -v --no-index .mat.env finds no matching rule. Consequently, routine staging or Cursor indexing can include credentials that operators reasonably expect to remain private. Add explicit exclusions for .mat.env while keeping .mat.env.sample tracked. .mat/AGENTS.mat.mdL506-L506

Useful? React with 👍 / 👎.

Comment thread scripts/mat-sync.sh
Comment on lines +725 to +730
bootstrap|rebootstrap)
log "phase gate: running bootstrap (${route})"
MULTI_AGENT_WORKFLOW_ROOT="${mat_source}" bash "${BOOTSTRAP_SCRIPT}" \
--mode existing-project \
--non-interactive \
"${TARGET_ROOT}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Bind bootstrap approval to the source revision in the plan

If the configured upstream branch advances between planning and approval, source resolution fetches the newer revision before phase_gate, and this branch executes its bootstrap script without checking the approved plan's resolved_sha. Comparing the approved JSON with latest-plan.json only verifies the saved documents, not the source being applied. I reproduced this with a local upstream: a plan recording revision v1 executed the v2 bootstrap after upstream advanced. Pin bootstrap/rebootstrap to the recorded SHA, or reject approval when the resolved source differs, so approval cannot install unreviewed workflow changes.

Useful? React with 👍 / 👎.

Persist the MySQL datadir across container recreate and document that
the script never deletes Docker volumes.
Close Codex PR #6 finding 1: gitignore/cursorignore live secrets while
keeping samples tracked; doctor and phase1 green on the slice.
@Christian-Devora

Copy link
Copy Markdown
Collaborator Author

Codex review follow-up

Finding 1 (.mat.env not ignored): Fixed in cb5310b — live .mat.env / .env* added to .gitignore and .cursorignore; samples remain tracked. Verified with git check-ignore -v .mat.env → .gitignore:53:.mat.env. Local .mat.env kept on disk (never was in the index).

Finding 2 (resolved_sha pin): Deferred to upstream — will file an issue in Devora-AS/multi-agent-workflow for mat-sync to pin approve/bootstrap to the planned resolved_sha. No local fork of mat-sync.sh in this PR.

Also merged main (Issue #5 / Tested up to 7.1) so Plugin Check should clear the prior outdated_tested_upto_header failure.

@Christian-Devora
Christian-Devora merged commit 61ee90d into main Nov 5, 2026
5 checks passed
@Christian-Devora
Christian-Devora deleted the chore/mat-sync-refresh branch November 5, 2026 08:06
@Christian-Devora

Copy link
Copy Markdown
Collaborator Author

Upstream issue filed for Finding 2: https://github.com/Devora-AS/multi-agent-workflow/issues/10

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.

1 participant