Skip to content

fix(privacy): require explicit private broker configuration - #174

Open
anantham wants to merge 5 commits into
mainfrom
fix/codex-public-boundary
Open

fix(privacy): require explicit private broker configuration#174
anantham wants to merge 5 commits into
mainfrom
fix/codex-public-boundary

Conversation

@anantham

@anantham anantham commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

Private deployment identifiers were embedded in public defaults, examples and operator records. Require an explicit broker URL instead: a fresh or cleared configuration performs no broker discovery, while existing saved settings continue to work.

Changes

  • Delete the implicit endpoint and deployment-specific port wrapper; check extension configuration before composing an image prompt.
  • Require private Windows runtime configuration and use reserved example domains and generic paths.
  • Remove operational identifiers from current documentation and extend the existing production artifact scan to reject embedded Tailnet hostnames.
  • Record the public documentation boundary in SEC-001, CONVENTIONS, Issues and WORKLOG.

Testing

  • 114 focused tests on Node 24.19.0 and 31 bridge tests on Python 3.12.13 pass.
  • TypeScript, production build, artifact scan and repository/extension integrity pass.
  • Controlled production Chromium acceptance verifies no discovery when unconfigured, discovery after explicit configuration, and persistence after save/reload.
  • PowerShell syntax and script parameter binding checked; both Windows launchers reject missing configuration before starting services.
  • Scoped lint: zero errors; type/hook warnings remain.

Deployment and history

Runtime operators must supply the documented private environment variables and explicit script parameters before adopting the new launchers. Authorization checks and loopback bindings are preserved. This PR changes current content; prior commits, PR diffs and cached copies remain a separate historical-cleanup decision.

Review checklist

  • Dedicated feature branch; one privacy correction.
  • Local verification complete; no service deployment.
  • Fresh CI on d09b11da6dcfa5a8c5c54ea12925ca73df5c0d11: all five jobs and Vercel pass (run 33950735713).
  • Tool-free independent MiMo review of published source 1acd19a: no blocking P1/P2 findings; subsequent changes only sanitize/update records. Smaller follow-up packets confirmed complete source receipt after the initial oversized packet was truncated.
  • Macroscope skipped; no approval or runtime acceptance is inferred from that check.

Context: Public defaults and operator records embedded private deployment identifiers.

Changes: Remove implicit broker discovery, require runtime configuration, sanitize examples and records, and extend the existing artifact scan.

Impact: Unconfigured clients stay offline; saved endpoints and existing authorization checks remain intact.

Tests: 114 focused Node 24.19 tests, 31 bridge tests, TypeScript, production build, controlled Chromium acceptance, and Windows parameter/configuration checks pass.

Docs: Public configuration boundary, SEC-001 amendment, Issues and WORKLOG. Historical copies require separate assessment.
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lexicon-forge Ready Ready Preview Sep 5, 2026 9:09am UTC

Remove remaining runtime-only records and link reviewed source, fresh CI and private historical-audit boundaries.
@anantham

anantham commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review current head d09b11d. Check explicit broker configuration, preserved authorization and Windows launcher behavior.

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

ℹ️ 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 integrations/sillytavern-bridge/deploy/windows/cutover-portal.ps1
Comment thread integrations/sillytavern-bridge/deploy/windows/start-bridge.cmd Outdated
@anantham

anantham commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review Current head d5efee7 resolves both findings: cutover rejects missing/mismatched canonical launcher roots before hardening, and missing-variable guards run inside the existing logged launcher entrypoint. The native Windows regression probe passes three root cases and four log cases using disposable copies and a hardening sentinel. The bridge suite passes 31 tests. Please review the exact updated head; no runtime deployment was performed.

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

ℹ️ 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 services/providers/indrasNetImageProvider.ts
@anantham

anantham commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

The new amendment at docs/adr/FEAT-003-image-service-architecture.md explicitly supersedes the former deployment-specific guard and implicit default; it matches SEC-001 and the reviewed implementation. Current head 2061311 changes documentation only. @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: 2061311a11

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

Promise.allSettled([
getImageCapableModels(),
fetchIndrasNetWorkflows(endpointUrl),
endpointUrl ? fetchIndrasNetWorkflows(endpointUrl) : Promise.resolve([]),

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 Gate IndrasNet submission before prompt planning

When a saved indrasnet/... model remains selected after its broker endpoint is cleared or imported empty, this only skips catalogue discovery; the dialog still keeps that saved model selectable and leaves Generate enabled. Submission then reaches generateIllustrationForSelection, which calls IllustrationService.generateIllustrationForSelection before generateIndrasNetImage validates the endpoint, so the selected text and chapter context are sent to the configured text planner and the resulting illustration is persisted before image generation inevitably fails with INDRASNET_ENDPOINT_REQUIRED. Validate this configuration before prompt planning (or disable submission), as the new SEC-001 amendment explicitly promises that an unconfigured broker causes no prompt composition.

AGENTS.md reference: AGENTS.md:L15-L15

Useful? React with 👍 / 👎.

@anantham

anantham commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

@codex review The dialog now uses the existing endpoint validator before allowing submission of the selected IndrasNet route. Empty, whitespace and malformed endpoints disable Generate with an actionable error; an explicit cloud alternative and configured offline saved model remain usable. Three red regressions now pass; 43 focused Node 24.19.0 tests, types and lint pass. Please verify the exact updated head.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 42732be90c

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

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