Skip to content

chore(codex): bootstrap PR for issue #79#89

Merged
stranske merged 1 commit intomainfrom
codex/issue-79
Dec 24, 2025
Merged

chore(codex): bootstrap PR for issue #79#89
stranske merged 1 commit intomainfrom
codex/issue-79

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Dec 24, 2025

Automated Status Summary

Scope

  • Scope section missing from source issue.

Tasks

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance criteria

  • - Malicious-looking issue text does not get passed verbatim into Codex execution.
  • - Agent workflows only run for trusted actors and trusted events.

Head SHA: 8ebd2e0
Latest Runs: ⏹️ cancelled — Gate
Required: gate: ⏹️ cancelled

Workflow / Job Result Logs
Agents Keepalive Loop ⏹️ cancelled View run
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Copilot code review ✅ success View run
Gate ⏹️ cancelled View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ❌ failure View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ✅ success View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ✅ success View run

@stranske stranske added the agent:codex Agent-created issues from Codex label Dec 24, 2025
Copilot AI review requested due to automatic review settings December 24, 2025 09:47
@stranske stranske added agents:keepalive Use to initiate keepalive functionality with agents autofix Opt-in automated formatting & lint remediation labels Dec 24, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 24, 2025

Automated Status Summary

Head SHA: fcf5049
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

  • Scope section missing from source issue.

Tasks

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance criteria

  • - Malicious-looking issue text does not get passed verbatim into Codex execution.
  • - Agent workflows only run for trusted actors and trusted events.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Dec 24, 2025

Keepalive loop status for PR #89

  • Action: run (codex-run-failed)
  • Gate conclusion: success
  • Tasks: 0/16 complete
  • Iteration: 0/5
  • Keepalive enabled: yes
  • Autofix enabled: no

@github-actions github-actions bot added the needs-human Requires human intervention or review label Dec 24, 2025
@stranske
Copy link
Copy Markdown
Owner Author

@codex Your objective is to satisfy the Acceptance Criteria by completing each Task within the defined Scope.

This round you MUST:

  1. Implement actual code or test changes that advance at least one incomplete task toward acceptance.
  2. Commit meaningful source code (.py, .yml, .js, etc.)—not just status/docs updates.
  3. Mark a task checkbox complete ONLY after verifying the implementation works.
  4. POST A REPLY COMMENT with completed checkboxes using the EXACT TEXT from the lists below.

CRITICAL - Checkbox Format:
When posting your reply, copy the exact checkbox text from the Tasks and Acceptance Criteria sections below. Do NOT paraphrase or summarize. The automation matches text exactly.

@github-actions
Copy link
Copy Markdown
Contributor

Gate fast-pass: docs-only change detected; heavy checks skipped.

@github-actions github-actions bot added the agents:activated Agent has been activated label Dec 24, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR creates a bootstrap placeholder file for issue #79, following the established pattern in the repository for tracking codex-related work items.

Key Changes:

  • Adds a new markdown file agents/codex-79.md with a bootstrap comment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

agents-workflows-bot bot commented Dec 24, 2025

No description provided.

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown
Contributor

Issue #79: Prompt injection hardening for issue/PR-driven agents (beyond “human approves Issues.txt”)

Automated Status Summary

Tasks

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance Criteria

  • Malicious-looking issue text does not get passed verbatim into Codex execution.
    • Agent workflows only run for trusted actors and trusted events.

Full Issue Text

Topic GUID: 2d89f8ab-4ea5-58ad-8e85-d5cd72036cf5

Why

Context:

  • You’re right: a single approval step helps, but it’s not the whole story.
  • PR bodies, issue comments, and commit messages are all attacker-controlled text in many scenarios.
    Goal:
  • Ensure Codex is only fed curated prompt content and sanitized task context.

Tasks

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance criteria

  • Malicious-looking issue text does not get passed verbatim into Codex execution.
    • Agent workflows only run for trusted actors and trusted events.

Implementation notes

Not provided.


Synced by workflow run.

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

No description provided.

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

Keepalive 2 mjju3ffh5zkbku worker: worker skipped – head 8ebd2e0.

@chatgpt-codex-connector
Copy link
Copy Markdown

Completed Checkboxes

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance criteria

  • - Malicious-looking issue text does not get passed verbatim into Codex execution.
  • - Agent workflows only run for trusted actors and trusted events.

Summary

Testing

  • node --test .github/scripts/__tests__/context_appendix.test.js
  • node --test .github/scripts/__tests__/issue_context_utils.test.js

View task →

@stranske
Copy link
Copy Markdown
Owner Author

@codex Your objective is to satisfy the Acceptance Criteria by completing each Task within the defined Scope.

This round you MUST:

  1. Implement actual code or test changes that advance at least one incomplete task toward acceptance.
  2. Commit meaningful source code (.py, .yml, .js, etc.)—not just status/docs updates.
  3. Mark a task checkbox complete ONLY after verifying the implementation works.
  4. POST A REPLY COMMENT with completed checkboxes using the EXACT TEXT from the lists below.

CRITICAL - Checkbox Format:
When posting your reply, copy the exact checkbox text from the Tasks and Acceptance Criteria sections. Do NOT paraphrase or summarize. The automation matches text exactly.

Example reply format:

- [x] Implemented volatility-adjusted trend analysis for Fund A
- [x] Updated config/demo.yml with new parameters
- [ ] Add multi-period analysis for Fund B

Acceptance Criteria:
- [x] Fund A analysis produces correct CAGR and Sharpe ratio
- [ ] Fund B analysis includes multi-period metrics

DO NOT:

  • Commit only status files, markdown summaries, or documentation when tasks require code.
  • Re-post checklists without making implementation progress.
  • Close the round without source-code changes when acceptance criteria require them.
  • Paraphrase or shorten checkbox text—copy it exactly for tracking to work.

Review the Scope/Tasks/Acceptance below, identify the next incomplete task that requires code, implement it, then post a reply comment with the completed items using their exact original text.

Scope

  • Scope section missing from source issue.

Tasks

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance Criteria

  • - Malicious-looking issue text does not get passed verbatim into Codex execution.
  • - Agent workflows only run for trusted actors and trusted events.

Head SHA: 8ebd2e0
Latest Runs: ⏹️ cancelled — Gate
Required: gate: ⏹️ cancelled

Workflow / Job Result Logs
Agents Keepalive Loop ⏹️ cancelled View run
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Copilot code review ✅ success View run
Gate ⏹️ cancelled View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ❌ failure View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ✅ success View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ✅ success View run

@agents-workflows-bot
Copy link
Copy Markdown
Contributor

agents-workflows-bot bot commented Dec 24, 2025

No description provided.

@stranske stranske merged commit 0e35f54 into main Dec 24, 2025
547 of 552 checks passed
@stranske stranske deleted the codex/issue-79 branch December 24, 2025 10:01
@chatgpt-codex-connector
Copy link
Copy Markdown

  • Restrict triggers:
  • do not run agent workflows on forked PRs
  • avoid pull_request_target unless absolutely necessary
  • Ensure prompts are repo-owned:
  • use prompt-file from .github/codex/prompts/
  • build a small “context appendix” file that includes sanitized task text
  • Add allowlists:
  • allow-users / allow-bots in codex-action config
  • only repo collaborators can trigger
  • Add denylist behaviors:
  • Codex should not edit .github/workflows/** unless a special environment-approved mode is enabled
  • Codex should not touch secrets or tokens (explicit instruction + sandbox limits)
  • Add logging + red flags:
  • if prompt contains “ignore previous”, HTML comments, base64 blobs, etc, stop and require human

Acceptance Criteria:

  • - Malicious-looking issue text does not get passed verbatim into Codex execution.
  • - Agent workflows only run for trusted actors and trusted events.

Summary

Testing

  • node --test .github/scripts/__tests__/agents-pr-meta-keepalive.test.js

View task →

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:codex Agent-created issues from Codex agents:activated Agent has been activated agents:keepalive Use to initiate keepalive functionality with agents autofix Opt-in automated formatting & lint remediation needs-human Requires human intervention or review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants