Skip to content

Document connectors and formalize authority boundaries with TLA+ - #79098

Merged
pelikhan merged 7 commits into
mainfrom
copilot/add-connector-documentation
Nov 18, 2026
Merged

pelikhan merged 7 commits into
mainfrom
copilot/add-connector-documentation

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Expand connector documentation and the W3C-style specification, with executable TLA+ models of connector authority boundaries.

  • Usage guidance: Complete staged consumer example, credential lifecycle, and clear separation of offline checks from live provider access.
  • Specification: Define conformance classes, identifiable requirements, compliance procedures, and implementation mappings.
  • Formal models: Cover capability selection, phase isolation, exact grants, staged effects, network restrictions, response identity, and authorization failures. Include 10 negative controls, five reachability witnesses, and reproduction instructions.

The models are bounded abstractions, not proofs of implementation correctness or provider delivery. No production runtime changes.

pelikhan and others added 2 commits November 18, 2026 18:57
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@pelikhan pelikhan changed the title docs: document connectors and add TLA+ authority-boundary specifications Document connectors and formalize authority boundaries with TLA+ Nov 18, 2026
@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot cross correlate with webhook gateway specification

pelikhan and others added 2 commits November 18, 2026 19:19
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot cross correlate with webhook gateway specification

Added reciprocal references and a connector/gateway crosswalk clarifying field mappings and authority boundaries, including that webhook deliveries do not grant connector access. Commit: 3f016aab.

@pelikhan
pelikhan marked this pull request as ready for review November 18, 2026 19:58
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 19:58
@github-actions

Copy link
Copy Markdown
Contributor

🚀 PR Specification Reviewer has started processing this pull request

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Warning

Threat detection engine error

Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs to troubleshoot the error.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⊞ 7.2K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Warning

Threat detection engine error

Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs to troubleshoot the error.

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #79098 · codex · routed: gpt61 medium · ~6 AIC · ⊞ 185 · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🔎 PR Code Quality Reviewer is reviewing code quality for this pull request...

@pelikhan

Copy link
Copy Markdown
Collaborator Author

@copilot merge main

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.

🟡 Changes recommended

The workflow introduces out-of-scope production ledger mutations, and the modified Linear code fence causes the connector import test to fail.

5 open issues
What changed in this PR

Documents declaration-only connectors in gh-aw and formalizes their compiler and execution-host authority boundaries with bounded TLA+ models.

Changes:

  • Expands consumer examples, credential lifecycle guidance, conformance procedures, and gateway boundary documentation.
  • Adds a safety model, 10 negative controls, five reachability witnesses, and reproduction instructions.
  • Adds scheduled ledger-compaction planning and write-enabled application to repository maintenance.
File Description
specs/​connectors/​WitnessWrongGrantedIdentity.cfg Probes rejection of a wrong-but-granted response ID.
specs/​connectors/​WitnessWrite.cfg Checks reachability of authorized writes.
specs/​connectors/​WitnessStaged.cfg Checks reachability of zero-access staging.
specs/​connectors/​WitnessRead.cfg Checks reachability of authorized reads.
specs/​connectors/​WitnessAuthorizationDenied.cfg Checks reachability of terminal authorization denial.
specs/​connectors/​ControlWriterIsolation.cfg Negative control for writer credential isolation.
specs/​connectors/​ControlWriteAuthorization.cfg Negative control for host write authorization.
specs/​connectors/​ControlStagedSecret.cfg Negative control for staged credential access.
specs/​connectors/​ControlStagedNetwork.cfg Negative control for staged network access.
specs/​connectors/​ControlResponseIdentity.cfg Negative control for response identity validation.
specs/​connectors/​ControlPhasePruning.cfg Negative control for exact phase plans.
specs/​connectors/​ControlNetworkApproval.cfg Negative control for network approval.
specs/​connectors/​ControlGrant.cfg Negative control for grant checks before credential access.
specs/​connectors/​ControlEndpoint.cfg Negative control for fixed request destinations.
specs/​connectors/​ControlAuthorizationRetry.cfg Negative control for retries after authorization denial.
specs/​connectors/​ConnectorBoundary.tla Models selection, phase isolation, grants, staging, and responses.
specs/​connectors/​ConnectorBoundary.cfg Checks the combined safety invariant.
docs/​src/​content/​docs/​specs/​webhook-gateway-specification.md Clarifies connector and gateway authority boundaries.
docs/​src/​content/​docs/​specs/​connector-specification.md Adds conformance requirements, procedures, and formal-model documentation.
docs/​src/​content/​docs/​reference/​connectors.md Expands staged consumer, credential, and testing guidance.
.github/​workflows/​agentics-maintenance.yml Adds ledger-compaction inputs and planning/application jobs.

Review effort: Max (adaptive)

Comment on lines +1658 to +1662
if: ${{ !cancelled() && needs.ledger_compaction_plan.outputs.plans_uploaded == 'true' && needs.ledger_compaction_plan.outputs.plan_created == 'true' }}
runs-on: ubuntu-slim
# Applying a validated plan commits updated ledger content.
permissions:
contents: write # Create or update repository contents.

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.

After merging latest main (ffd5bc5), ledger compaction is identical to origin/main and absent from the PR-specific diff, so this PR no longer introduces those production mutations.

one comment; it does not post the comment:

```aw wrap
```aw wrap title=".github/workflows/linear-review.md"

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.

Restored the original aw wrap opening fence expected by the connector import test. Commit: 51aef13.

Comment thread specs/connectors/ConnectorBoundary.tla Outdated
/\ pc = "respond"
/\ \E status \in {"ok", "unauthorized", "redirect", "uncertain"},
identity \in IDs, valid \in BOOLEAN :
/\ returnedID' = identity /\ evidenceOK' = valid

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.

Gated evidenceOK on successful status and valid evidence, then reran the documented model checks. Commit: 51aef13.

| --- | --- |
| `verificationProfile`, `nativeEvents` | Frozen `verification_profile` and `native_events`; the receiver authenticates the enrolled source and original event before projection. Declaration alone is not source authentication. |
| `match`, `resources` | Encoded equality conditions and projected matched literals; the receiver checks original evidence, while the destination validates the projection. A canonical URL or its origin does not prove resource membership. |
| `types` | Selected activity values in the compiled subscription; the receiver forwards only activities established by the original delivery and selected by the declaration. Activity selection is not a resource grant. |

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.

Corrected the crosswalk to describe the frozen connector.types JSON Pointer-to-primitive-type map and native field validation by ProjectEvent. Commit: 51aef13.

Comment on lines +79 to +84
The [Connector Specification](/gh-aw/specs/connector-specification/) defines the
declaration, selected reader, exact resource grant, endpoint, and credential
authority represented by this metadata. This gateway contract governs source
authentication, predicate evaluation, projection, and dispatch. A matched
subscription or canonical URL MUST NOT be treated as a connector reader
selection or provider-access grant.

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.

Clarified that subscription metadata contains trigger rules and resource constraints but grants no provider-reader permissions. Commit: 51aef13.

…-documentation

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main

Merged main cleanly; merge commit 313d2a7.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

Warning

Threat detection engine error

Threat detection could not complete its analysis due to a tooling error. This is not a security finding.

What happened

The threat detection engine failed to produce results.

Review the workflow run logs to troubleshoot the error.

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/agentics-maintenance.yml:1662): address unresolved feedback - Review comment
  3. Review (docs/src/content/docs/reference/connectors.md:42): address unresolved feedback - Review comment
  4. Review (specs/connectors/ConnectorBoundary.tla:104): address unresolved feedback - Review comment
  5. Review (docs/src/content/docs/specs/connector-specification.md:452): address unresolved feedback - Review comment
  6. Review (docs/src/content/docs/specs/webhook-gateway-specification.md:84): address unresolved feedback - Review comment
  7. Fix failing check Offline connector conformance (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "313d2a772ea79066a22d22e379bcf439eaf57f3e",
  "kind": "requested",
  "schema_version": "1",
  "state": "55b7868cc2b45c2334133a02e910486a263c38b54fa9c12355e6c380781ee4ab",
  "work": [
    "02566aaedc011349d2973d996efb286381cb1f887e802390eafc4c58f3064be7",
    "0e6c36a2caf891e74d45f6c46539911a52d4c0b1e889d1bc5e6d2482be1c59f6",
    "0f91ead97bebd0ddf6e2f651d3c8638752d95dc5568fff378ad9196203110098",
    "8b8e96afa57abc9c0b1273828ac899c27c0a396da52d9fa477a1de8b83e81d0b",
    "91afa44cd0304f7f1f077064cf9acd076a3c6116aed84cc48be2adfbf98a30ec",
    "d7d73572af850fd61b03a6f68d4fe006b0c69b39cdea3c138ebe3d9c3c65ac67"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⊞ 7K · ◷
Comment /souschef to run again

gh-aw-bot and others added 2 commits November 18, 2026 21:06
…-documentation

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

[!WARNING]
Threat detection engine error
...

Merged latest main as ffd5bc5 and addressed the requested review findings in 51aef13. The targeted connector test, documented TLA+ checks, and final repository validation passed.

@copilot merge main

Merged the latest main with make merge-main as ffd5bc5; the build and compilation of all 366 workflows succeeded.

Copilot AI requested a review from gh-aw-bot November 18, 2026 21:26
@pelikhan
pelikhan merged commit 03fe043 into main Nov 18, 2026
50 checks passed
@pelikhan
pelikhan deleted the copilot/add-connector-documentation branch November 18, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants