Repository navigation
Conversation
🔎 Lint report:
|
| Rule | Count |
|---|---|
unresolved-attribute |
2 |
First entries
tests/run_agent/test_credits_notices_toggle.py:76: [unresolved-attribute] unresolved-attribute: Unresolved attribute `_credits_session_start_micros` on type `AIAgent`
run_agent.py:3069: [unresolved-attribute] unresolved-attribute: Object of type `Self@get_credits_spent_micros` has no attribute `_credits_session_start_micros`
✅ Fixed issues (1):
| Rule | Count |
|---|---|
invalid-assignment |
1 |
First entries
tests/run_agent/test_credits_notices_toggle.py:76: [invalid-assignment] invalid-assignment: Object of type `None` is not assignable to attribute `_credits_session_start_micros` of type `int`
Unchanged: 6742 pre-existing issues carried over.
Diagnostics are surfaced as warnings — this check never fails the build.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
_build_job_promptplaced pre-run script stdout, script errors, and prior-job output inside fixed triple-backtick fences. Runtime data containing triple backticks could close the fence and make later text appear as a fresh instruction in a scheduled prompt. The assembled-prompt scanner accepted a harmless synthetic directive canary after the closing fence.Change
Use a fence longer than any backtick run in runtime data, and tell the agent to use that data only as evidence for the scheduled task. The same helper covers all three data paths.
Verification
_build_job_promptcanary passed viaprerun_script; no script ran. Base accepted a three-backtick escape; patched prompt used a four-backtick fence around the same data.scripts/run_tests.sh tests/cron/test_cron_data_framing.py tests/cron/test_cron_prompt_injection_skill.py tests/cron/test_cron_context_from.py -q: 44 passed.git diff --check: passed.This verifies prompt structure, not live model behavior or tool execution. Draft for security review; please do not merge until reviewed.