Skip to content

docs(rfc): clarify read-existing adapter contract - #1255

Merged
aimasteracc merged 6 commits into
developfrom
docs/no1-p04-read-existing-contract
Aug 13, 2026
Merged

docs(rfc): clarify read-existing adapter contract#1255
aimasteracc merged 6 commits into
developfrom
docs/no1-p04-read-existing-contract

Conversation

@aimasteracc

Copy link
Copy Markdown
Owner

Summary

  • clarify RFC-0022 P0.4 before implementation because its capture trigger, P0.2 temp plumbing, process-local registries, and CLI parity requirements were mutually ambiguous
  • make access_mode="read_existing" the fail-closed zero-write capture contract, with capture_diff_snapshot forbidden and all required producer outputs explicit
  • freeze primitive-owned access evidence/provenance, including NO_CONFIG, and require native write-attempt authority on every certified platform
  • keep process-local capability controls off unusable public CLI flags through a narrow documented parity exception; preserve the eight-facade/ninth-facade gate

Design consequences

  • legacy explicit P0.2 capture may retain its existing external temp plumbing
  • P0.4 needs a separate zero-filesystem-write backend that passes the full P0.2 golden corpus; otherwise Phase A stays blocked
  • an OS without a descendant-aware native write-attempt authority returns a stable unsupported result and is not certified
  • no production implementation or ninth facade is included in this PR

Verification

  • uv run python -m tree_sitter_analyzer --change-impact --format json → docs-only, pytest_required=false, verification=git diff --check
  • git diff --check
  • uv run pre-commit run --files rfcs/0022-task-outcome-apis.md
  • independent RFC zero-gate: B=0, P1=0, P2=0, P3=0

Follow-up

After this clarification lands, rebuild the P0.4 feature worktree from the new develop head and implement the seven read-existing adapters RED-first. Phase A/P0.5 and any ninth facade remain out of scope.

@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🔍 Dogfood PR Check

Layer Status
Change Impact ✅ passed
Claim Invariant Suite ✅ passed

Change impact: change_impact changed=2 risk=low pytest_required=True
Verification: uv run pytest tests/unit/mcp/test_change_impact_tool.py tests/unit/mcp/test_change_impact_tool_execute_and_mapping.py tests/unit/mcp/test_change_impact_tool_git_and_verification.py tests/unit/test_change_impact_analysis.py tests/unit/test_change_impact_cached_graph.py tests/unit/test_change_impact_git.py tests/unit/test_change_impact_response.py tests/unit/test_temporal_change_impact.py -q
Claim summary: ====================== 17 passed, 12 deselected in 1.45s =======================

Claim invariant test output (last 30 lines)
============================= test session starts ==============================
collected 29 items / 12 deselected / 17 selected

tests/benchmarks/claims/test_bm25_ranking_invariant.py ....              [ 23%]
tests/benchmarks/claims/test_reactive_push_e2e.py .......                [ 64%]
tests/benchmarks/claims/test_safety_layers_smoke.py ......               [100%]

- generated xml file: /home/runner/work/tree-sitter-analyzer/tree-sitter-analyzer/dogfood-claims.xml -
====================== 17 passed, 12 deselected in 1.45s =======================

What these tests guard:

  • 390× cross-language mis-wire claim
  • BM25 ranked search with relevance_score
  • 5 safety layers (safe/guard/constraints/impact/verdicts)
  • Reactive push subscribe/unsubscribe (RFC-0001)
  • Index build speed regression

Full results: workflow run


Dogfood PR Check — docs/superpowers/specs/2026-07-08-svcd-dogfood-system-design.md

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 58d5ab943d

ℹ️ 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".

@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@aimasteracc

Copy link
Copy Markdown
Owner Author

Prerequisite PR #1256 merged as c995fdc02105a5af3892f77ae41a5283e44db74f to restore full history in docs-only CI. This branch now merges the new develop base. The effective RFC diff is byte-for-byte unchanged from the independently reviewed tree (git diff --binary origin/develop..HEAD SHA-256 985fb27a9a25644a9bcebbaa9bc60f11dd10a7d985a0b8e06693def824044eb1); no production implementation was added. Fresh CI and Codex were requested for current head e1ca1d0c9024ceb1a847939566fc268605946c0a.

@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: e1ca1d0c90

ℹ️ 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 rfcs/0022-task-outcome-apis.md Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@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: 6223bbe6eb

ℹ️ 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 rfcs/0022-task-outcome-apis.md Outdated
Comment thread AGENTS.md Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@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: 9b6fe4cf64

ℹ️ 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 rfcs/0022-task-outcome-apis.md Outdated
@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@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: cde10cf340

ℹ️ 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 tests/contracts/test_mcp_cli_parity_contract.py Outdated
Comment thread rfcs/0022-task-outcome-apis.md Outdated
@codecov

codecov Bot commented Aug 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@aimasteracc

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: bd00b318dd

ℹ️ 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".

@aimasteracc
aimasteracc merged commit deb8498 into develop Aug 13, 2026
33 checks passed
@aimasteracc
aimasteracc deleted the docs/no1-p04-read-existing-contract branch August 13, 2026 10:46
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