Repository navigation
Description
Safely bound original managed provider diagnostic logs
Approved intent and architectural boundary
The user approved native application/provider diagnostics in ProPR for all deployments, with explicit activation, while Fleet owns encrypted transport and 14-day off-site retention. PR #3014 implements bounded daily/size-rotated diagnostic copies. It deliberately does not rotate original provider files. This follow-up addresses the resulting original-file disk-growth gap; a bounded copy spool is not proof of bounded native disk usage.
Dependency: review and land #3014 first, or start only after its implementation writer is terminal against a deliberately selected compatible base. Do not create overlapping writers on diagnostics, provider runtime or launcher files. Queued initially without AI; activate this narrowly scoped implementation after that dependency is ready.
Required behavior
- Use explicit PROPR_MANAGED_LOGS=1 policy activation, not a Fleet credential or inferred personal home. Support self-managed installations when intentionally enabled. Restrict maintenance to explicitly configured, instance-owned managed roots. Never prune arbitrary personal provider directories.
- Audit actual supported provider versions, mount layouts and writer lifetimes. Classify each original diagnostic/debug log separately from transcripts, session state, SQLite databases/WAL/SHM, credentials and configuration. Include app-created /tmp/claude-logs artifacts in the ownership analysis, without broad directory deletion or inferring task ownership merely from filenames. Document which actual sources are bounded, protected, unmeasured or unsupported.
- For genuine disposable diagnostic files, implement tested provider-supported rotation/reopen, provider configuration limiting output, or safe closed-file lifecycle at task boundaries. Daily UTC rollover and earlier size caps are required where supported. Do not blindly copytruncate, rename or unlink an active provider file or manipulate Docker's internal log files.
- If a provider cannot safely stop or rotate an active native writer, say so explicitly and retain its state. Surface visible protected/unbounded status and real capacity/admission controls rather than claiming success. A launch limit alone must not be described as capping an already-running writer. Do not kill existing customer runs or invent a resumability guarantee.
- Protect active, queued/recoverable and resumable task/session state, uncommitted/unpublished work, credentials and unknown ownership. Retention age or completed status alone does not establish safe deletion of session history. Any eventual pruning of resume-dependent files requires a real tested archive-retrieval/resume path; otherwise keep them protected and report their footprint.
- Coordinate local disposal with the reviewed producer's archive/readback acknowledgement where archival is enabled. Collection/export alone is not a successful off-site backup. Define an explicit local-only opt-in policy for installations without Fleet rather than requiring a hosted account or inventing remote acknowledgement. Bound queues, reads, bytes, counts and scratch space; expose coverage gaps and unknown losses during full-disk or outage situations.
- Preserve instance-admin authority for any eventual native maintenance controls. This issue does not grant members destructive permissions, add customer SSH, implement Connect/Fleet billing/reset, or change the 60-day DB/config backup policy.
- Keep filesystem operations tenant-bound and descriptor-pinned, with safe concurrency and restart behavior. Reject symlink/hardlink/FIFO/device/traversal and ancestor-swap escapes. No broad recursive provider-home backup or deletion and no credential-file mutation.
Acceptance evidence
- Match fixtures to actual installed/supported provider versions and demonstrate genuine original diagnostic-file rollover or safe closed-file pruning, not merely a second copy rotating.
- Hold real writer descriptors open during maintenance and verify uninterrupted output/UI handling and resumed-session safety. Verify unsupported active writers remain protected and reported.
- Exercise daily plus size boundaries, simultaneous writers and collectors, restart, absent/failed acknowledgement, ENOSPC, multi-GB bounded processing and malicious file/directory replacement. Assert no cross-tenant or unrelated-file writes/deletion.
- Secret/auth/config and resumable-session canaries remain unchanged; any exported diagnostics stay private and redacted. Verify original-file and managed-spool usage/status independently.
- Include relevant provider, diagnostics, launcher and task-lifecycle regressions. Document exact tested versions and residual growth risks; fixture success is not live production acceptance.
No live pruning, deployment, permissions changes, credential copies, merges or public rollout are authorized by this implementation issue. Fleet counterpart: https://github.com/integry/propr-fleet/issues/78.
Activity
propr-dev commentedon Oct 12, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6.1-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6.1-sol3015/gpt-6.1-sol-safely-bound-original-man-20261012-1705-t9wmainissue-3015-20261012-1705-gpt-6.1-sol-t9w🔍 Track Task Execution
propr-dev commentedon Oct 12, 2026
🤖 AI processing has started for this issue using codex agent with gpt-6.1-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-6.1-sol3015/gpt-6.1-sol-safely-bound-original-man-20261012-1715-wxbmainissue-3015-20261012-1715-gpt-6.1-sol-wxb🔍 Track Task Execution
fix(ai): Resolve issue #3015 - Safely bound original managed provider…
propr-dev commentedon Oct 12, 2026
❌ Failed to process this issue
Error Category: unknown error
Error Message: Task already in terminal state: completed
Processing Stage: Pre-processing (before AI analysis)
Technical Details
The system will automatically retry this task. If the issue persists, please contact support.
[3015 by GPT-6.1 Sol] Safely bound original managed provider diagnost…