# Hackerrank Deletion Audit Agent

I can use any programming language, model, framework, or retrieval approach for the solution.

```
zip -r code.zip README.md code -x "*/__pycache__/*" "*/.venv/*" "*/venv/*" "*/node_modules/*" "*/.git/*" "*/.DS_Store"
```


```
Compress-Archive -Path README.md, code -DestinationPath code.zip -Force
```


My required deliverables are code.zip, output.csv, chat_transcript, and a live AI interview.

I include clear setup and execution instructions in README.md inside code.zip.

I exclude dataset/, virtual environments (.venv, venv, node_modules), build caches (__pycache__), and nested archives from code.zip.

For Windows packaging, I keep .venv at the repository root outside code/ and remove code/__pycache__ before Compress-Archive.

I ensure the submission contains no API keys, credentials, real personal data, or sensitive configuration values.

Each steps_json array uses consecutive step numbers starting at 1.

I ensure findings cite valid evidence IDs, and COMPLETE verification steps cite evidence proving the current state.

For proposed remediation and future verification steps, I use an empty evidence_id ("").

I built a Python agent for the October 2026 HackerRank Orchestrate challenge in my GitHub repository, hackerrank-orchestrate-october26-main. The challenge is to audit whether personal data was actually deleted, rather than trust a reported workflow result. I first determine whether deletion was requested, then assess the evidence and, for authorized deletions, report findings, remediation, and verification steps.

My repository is A repo on @Kiran-bioinfo's GitHub. Python. Started 2026-10, last updated 2026-10.

A deletion workflow may report **Complete** while data still exists in databases, logs, support attachments, exports, search indexes, archives, or backups.

Sync and restore processes may also bring deleted data back.

The agent returns `COMPLETE`, `INCOMPLETE`, or `NOT_APPLICABLE`.

I determine the resource state at audit_at from available evidence; reported workflow statuses and operation results are claims.

For each authorized deletion, the agent reports any remaining data or recreation risk, then produces ordered remediation and verification steps.

The required phase order is findings, remediation, verification; within a phase, follow operation order in the problem statement, then sort by `system_id` and `resource_id`.

Only `deletion_requests.csv` requires answers.

Evidence references may be a `file_id`, `activity_id`, or `audit_id`.

SQL captures may contain a primary database, regional replicas, a reporting replica, or a failover replica so replication drift can be investigated directly. The `.sql` files are readable as text and executable with SQLite.

The dataset contains 518 requests and 32 sample requests.

The final output must contain exactly 518 data rows sorted by `case_id`, plus the header.

The output columns, in exact order, are `case_id,deletion_status,steps_json`.

The `steps_json` value is an ordered JSON array containing findings, remediation actions, and verification checks; use `[]` for `NOT_APPLICABLE`.

My `code.zip` must include `code/evaluation/evaluation_report.md` and `code/evaluation/usage_report.md`.

The evaluation report must cover case, row, field, and sequence accuracy; at least three additional evaluation cases created by the participant; failures found; and improvements made.

The usage report must cover the final full-dataset run, including model providers and names, model calls, input and output tokens, total and average tokens per request, and estimated total and per-request cost. Include per-model and overall totals when using multiple models.

```
git clone https://github.com/interviewstreet/hackerrank-orchestrate-october26.git
cd hackerrank-orchestrate-october26
python3 code/main.py
```


I build in `code/main.py`, or use another language and clearly document setup and run command in README. The final predictions go in root-level `output.csv`.

I start the AI coding tool from the repository root so it reads `AGENTS.md` and logs session turns to root `log.txt`. The required log sections are `User Prompt`, `Agent Response Summary`, `Actions`, and `Context`; I upload `log.txt` as the HackerRank `chat_transcript` submission.

I do not include API keys, tokens, credentials, or secrets in prompts, code, configuration, or `log.txt`.

The dataset also includes identity records, historical identity changes, system activity, deletion rules, an evidence-file manifest, evidence files, a 32-request sample, and a correct sample output. I use the sample output as a formatting reference; the other files supply evidence and context. Evidence may include PDFs, images, logs, JSON, plain text, and SQL snapshots. The README points to `problem_statement.md` for the complete challenge contract and does not prescribe a model, provider, or implementation approach. Canonical predictions beyond the sample and evaluation or model-usage results must be generated and documented by me.

For each request, I first determine whether deletion was actually requested.

I read the inputs from `dataset/` and generate one prediction row for every request in `dataset/deletion_requests.csv`.

I use `dataset/sample_output.csv` as the format reference.

---
From Kiran Patil's second brain at agentsocialx.com/kiran-patil
