Merge pull request 'Commando's-given' (#3) from Commando's-given into main

Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-01-06 11:05:48 +00:00
45 changed files with 1513 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 145-93
Agent: Carver (cover identity)
Date: 02/18 02/22
Subject operates a rural safehouse rumored to shelter fugitives and serve as a transient waypoint. Agents cover as a drifter seeking work provided entry in exchange for chores. On 02/19, visitors with gang tattoos arrived after midnight and were housed in separate rooms. Vehicles were parked under tree cover, and license plates were mudsmeared. On 02/20, the subject warned of “new heat in town” and began burning scrap papers in a barrel.
Later that night, a duffel of documents was left unattended. The agent briefly photographed maps with marked backroad routes and coded notes. The handwriting matches samples from a related case. On 02/21, the subject probed the agents story with pointed questions about prior arrests. Cover held after the agent recited the rehearsed backstory.
Cover credible but timelimited. Recommend immediate analysis of the photographed maps, ID of transient visitors via tattoos and vehicle features, and a synchronized warrant service before the location rotates to a fresh site.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,11 @@
Undercover Report Case File 19-52
Agent: Harper (cover identity)
Date: 07/22 07/26
Subject controls a pawnshop that exhibits transaction volumes and cash handling inconsistent with normal retail activity. Cover identity as electronics repair tech granted backroom access to the testing bench, DVR cabinet, and inventory cage. On 07/23, the subject hosted a closeddoor meeting with four associates who arrived separately and staggered departures. Through the vent grate, agent heard references to “offshore wires,” “clean accounts,” and “quarterend flush.” Subject maintained a spiral ledger with denominations recorded in columns that do not match typical pointofsale exports.
On 07/24, the subject ordered cameras repositioned to avoid capturing the safe directly. Agent was subtly tested regarding loyalty—assigned an afterhours soldering task while the subject counted bundled currency on the shop floor. Later that night, an unmarked van delivered two duffel bags that were moved to the vault without intake paperwork. Subject personally signed a receipt on blank stationery and pocketed the copy.
On 07/25, subject complained about “Treasury heat” and instructed the bookkeeper to route payments through two new accounts, both named with common surnames. Names did not match any employee records. Agent retrieved partial account numbers from a discarded note.
Cover remains credible. Recommend immediate financial taskforce review of the ledger, subpoena of the newly referenced accounts, and discreet licenseplate canvass for the van. Surveillance continuity is advised; subject exhibits rising paranoia yet continues to centralize cash at the location.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 130-62
Agent: Lennox (cover identity)
Date: 12/02 12/06
Subject runs an art gallery suspected of laundering through inflated valuations and forged provenance. Agent embedded as gallery assistant. On 12/03, the subject finalized a cash sale for a painting at five times market value to an anonymous buyer. On 12/04, the subject ordered an assistant to “adjust provenance papers,” instructing edits to dates and prior ownership. The font choice and printer bleed matched a stack of older certificates in a locked drawer.
On 12/05, a private viewing hosted foreign clients who avoided staff contact. One carried a briefcase later exchanged for a wrapped canvas in the loading alcove. On 12/06, the subject cautioned staff not to speak with authorities and appeared tense while counting cash in the office.
Cover secure. Recommend seizure of the forged documents, liaison with culturalproperty experts to authenticate inventory, and identification of the foreign clients via travel manifests and nearby CCTV.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 94-31
Agent: Donovan (cover identity)
Date: 06/01 06/05
Subject operates a private marina suspected of facilitating smuggling. Agents cover as a yacht mechanic provides daily access to slips and latenight maintenance calls. On 06/02, the subject directed the agent to assist with unloading three sealed crates from a speedboat arriving past midnight. Crates bore generic “marine supplies” stickers; handlers treated them with unusual care. Opening was not feasible without tipping the crew.
On 06/03, a heated exchange with a subordinate revealed concerns over “late payments” from overseas. The subject warned that debts must be cleared “before customs comes sniffing.” The tone suggested reliance on offshore accounts. On 06/04, the subject introduced an associate known only as “Captain,” who exhibited military bearing and carried a sidearm; conversation centered on moving delivery windows to avoid routine patrol sweeps.
On 06/05, the subject carried a heavy duffel into the office and drew blinds for over an hour. Subsequent demeanor was relaxed, implying a successful cash reconciliation.
Cover intact. Recommend forensic review of marina accounting, financial tracing of suspected offshore links, and coordination with harbor patrol to flag vessels matching the speedboats profile.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 98-07
Agent: Fletcher (cover identity)
Date: 07/11 07/14
Subject serves as a lieutenant managing a distribution hub inside an abandoned textile mill. Cover identity as a shellcompany delivery driver grants entrance to the loading dock and elevator cages. On 07/12, the subject assigned the agent to ferry sealed packages to a storagelocker complex registered under a false name. Package weight and precautions suggest narcotics. Keys on a ring were photographed; several cuts matched lockers in Row C.
On 07/13, the subject referenced “Chicago buyers,” instructing the crew to increase output despite lawenforcement chatter. Morale appeared strained. On 07/14, the subject gathered the crew, delivered a loyalty speech about “traitors,” and scanned faces while the enforcer lingered by the door. No direct challenge to the agent, but suspicion is rising.
Cover holds but the environment is volatile. Recommend warrants for the locker complex keyed to the photographed cuts, discreet traffic stops on the distribution couriers, and a contingency extraction plan should violence erupt at the mill.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 123-88
Agent: Holloway (cover identity)
Date: 11/04 11/08
Subject leverages a regional trucking firm to move contraband under cover of legitimate freight. Agents cover as a dispatcher assistant enables access to GPS routes and driver notes. On 11/05, routing orders labeled “detour deliveries” consistently bypassed weigh stations, and manifests showed weight mismatches. On 11/06, the subject instructed a driver to deliver “straight to the mountain cabin,” providing coordinates later confirmed by GPS ping.
On 11/07, news of lawenforcement activity near the interstate caused the subject to cancel multiple runs. Crew anxiety rose. On 11/08, the subject praised the agent for rerouting a truck around a checkpoint, further legitimizing the cover.
Cover intact. Recommend aerial survey of the coordinates to identify storage, placement of covert trackers on the detour fleet, and financial review of the dispatch accounts to map the laundering flow.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,11 @@
Undercover Report Case File 31-11
Agent: Vega (cover identity)
Date: 09/04 09/07
Subject runs a rural pharmacy with unusually high order volumes for specific controlled substances. Agents cover as a delivery technician enabled access to loading doors and packing slips. On 09/05, the subject accepted a pallet of blister packs outside normal receiving hours, directing it straight to a side room. Labels were legitimate, but lot numbers did not appear in the chainofcustody app used elsewhere in the store. Staff avoided eye contact and deferred to the subject for every deviation.
On 09/06, two sedan drivers arrived within minutes of each other, both collecting “returns” in sealed totes. Agent observed the subject bypassing the returns register and printing generic labels from a standalone thermal unit. Drivers refused signatures and left via the alley. The subject later shredded a stack of thermal drafts without balancing the counts.
On 09/07, agent overheard a phone call in which the subject referenced “doctor packs,” “holiday traffic,” and “quota pressure.” The cadence suggested coordination with a prescriber and an external distributor. The subjects mood shifted sharply after the call; staff were told to “keep it to cash only” for the remainder of the day.
Cover remains viable. Recommend a joint audit with state pharmacy regulators, review of the lot numbers observed, and controlled buys through the returns channel to document diversion.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 53-28
Agent: Navarro (cover identity)
Date: 02/01 02/04
Subject owns a private courier service that advertises sameday delivery for tech firms. Shipment profiles and driver chatter suggest the operation moves highend electronics and cryptomining components off the books. Agents cover as a dispatch assistant provided map access and driver rotations. On 02/02, the subject created a route labeled “white run” that bypassed weigh stations and used alley handoffs. Driver later returned with a sealed envelope and no signature trail.
On 02/03, a pallet bearing unfamiliar consignee codes was loaded into a van with interior panels removed—consistent with contraband concealment. Subject lectured staff about “never opening the blue totes,” then carried one into a locked server closet. Agent heard a fan spinup and a brief data sync tone from a nearby laptop, implying a quickclone procedure.
On 02/04, the subject hinted the agent could “graduate to vest access” if weekend performance stayed quiet. A senior driver mentioned “hash boards” failing in transit and needing replacements before “the buyer from Reno flies out.”
Cover stable. Recommend covert GPS beacons on the whiterun vans, subpoena of the couriers API logs for the locked server closet, and coordination with aircargo teams for the Reno timeline.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 117-56
Agent: OConnor (cover identity)
Date: 10/15 10/18
Subject operates an illegal backroom poker circuit that attracts midtier executives and local power brokers. Agents cover as a wealthy gambler provided entry. On 10/16, buyins far exceeded legal thresholds, and the subject boasted of protection from “friends in city hall.”
On 10/17, an argument erupted between the subject and an enforcer over unpaid debts. Threats were made, but play resumed. On 10/18, the subject introduced an associate known as “Silver,” carrying a distinctive lighter described in other investigations. Presence of Silver indicates links to a broader network handling collections and intimidation.
Cover stable. Recommend financial surveillance on the regular players, quiet corruption probe on the purported city contacts, and a tailored raid plan that mitigates risk to civilians at the gaming site.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 72-90
Agent: Quinn (cover identity)
Date: 08/09 08/12
Subject fronts a small software firm that has attracted highrisk clients seeking datascraping and intrusion services. Agent embedded as a temporary QA tester, which offered proximity to build pipelines and the staging server. On 08/10, the subject approved a latenight push titled “crawlerplus” that contained modules for credential stuffing and proxy rotation. The code branch was kept off the main repository and shared via encrypted zip.
On 08/11, two visitors arrived with no badges and were escorted directly to the conference room. Subject requested the agent run a “sandbox smoke test” while the visitors watched a dashboard of login attempts against thirdparty targets. Conversation referenced “clean lists,” “UID harvest,” and “deliverables by Friday.”
On 08/12, the subject floated a contract expansion involving a custom build for “telecom metadata capture.” When the agent hesitated, the subject advised to “just test the pipeline; leave the contracts to me.” Security posture inside the firm is lax; logs rotate every twentyfour hours without retention.
Cover credible. Recommend rapid legal hold to preserve server images, quiet outreach to targeted platforms to harden defenses, and preparation for a coordinated search warrant before the next deliverables window.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 61-05
Agent: Carter (cover identity)
Date: 03/14 03/17
Subject operates a livestock auction and feed cooperative used as a cashhandling hub for a broader laundering scheme. Agents cover as a regional feed rep granted access to the back office and the weighticket printer. On 03/15, the subject directed staff to reprint weights for three lots and staple them over originals, inflating values by roughly thirty percent. Cash payouts were then split into smaller envelopes labeled as “hauler fees.”
On 03/16, a trailer arrived after closing with no consignor paperwork. Subject ushered the driver to the scales, then recorded a manual weight entry without zeroing the platform. Later, agent noted the same trailer departed with bales stacked higher than safety guidelines, suggesting a swap onsite.
On 03/17, the subject met with a banker in the café booth. Heard fragments: “seasonal float,” “parcel deposits,” and “dont trigger CTRs.” The banker left through the side door, avoiding cameras.
Cover remains intact. Recommend forensic review of scale logs, unannounced compliance checks tied to animalwelfare authorities as legitimate cover, and analysis of deposit structuring patterns that match the inflated weightickets.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 46-77
Agent: Ellis (cover identity)
Date: 11/08 11/11
Subject supervises a containeryard subcontractor with access to highvalue import bays. Agent entered as a craneoperator trainee assigned to night shifts. On 11/09, subject instructed the crew to reposition a fortyfooter from the manifest queue to an unnumbered slot behind the scrap pile. The container seal had a fresh dab of paint across the latch consistent with a reapplied counterfeit seal. Yard cameras were left panning, creating reliable blind spots of twenty to thirty seconds.
On 11/10, the subject met with two visitors at the fence line and exchanged a clipboard without approaching the office. Agent overheard them discuss “blank HS codes” and “holiday backlog.” The conversation implies a counterfeitelectronics shipment misdeclared to avoid inspection. Later, subject distributed burner keycards for the east pedestrian gate, instructing workers to “switch badges” if stopped.
On 11/11, a third party attempted to tip the agent to accept overtime in exchange for keeping a particular bay unsupervised. Agent declined while maintaining cover as rulebound but inexperienced. The subject appeared satisfied the lane would remain quiet.
Cover intact. Recommend customs partnership to flag the suspect container by serial, deploy a mobile Xray with minimal yard disruption, and audit badge access logs for the east gate.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 89-47
Agent: Dalton (cover identity)
Date: 10/05 10/08
Subject leads a motorcycle club that moonlights as a gunrunning and protection outfit. Agent entered as an auto detailer offering cutrate work on club vehicles. On 10/06, the subject invited the agent to a backlot barbecue where patched members traded cash for small boxes moved from saddlebag to saddlebag. A prospect muttered about “.30 cal uppers” and a “desert range test.”
On 10/07, the club sergeantatarms demanded that the agent fix a VIPs truck immediately, creating a loyalty test. While retrieving tools, the agent observed a crate under a tarp with oilpaperwrapped parts and a stencil for a defunct manufacturer. Numbers were partially filed. The subject later bragged about buyers “east of the pass.”
On 10/08, a convoy departed in staggered pairs. The subject ordered phones in airplane mode and handed out paper maps with predrawn detours. A follower crashed a bike on loose gravel; the group paused in a blind spot, repositioned a crate, and continued.
Cover remains plausible. Recommend roadside interdiction coordinated with Highway Patrol, ballistics work on recovered parts, and asset development targeting the prospect who appears chatty under alcohol.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,11 @@
Undercover Report Case File 25-39
Agent: Doyle (cover identity)
Date: 04/03 04/06
Subject operates a small river ferry and maintenance dock that appear to facilitate contraband transfers between barges at offschedule hours. Agents cover as an outofwork boat mechanic provided routine access to bilge areas and tool lockers. On 04/04, subject instructed the crew to keep the north slip unlit after midnight and to disable the dock camera claiming a blown fuse. The camera was found unplugged rather than damaged. Two crates moved from a barge to a skiff without paperwork.
On 04/05, agent overheard the subject arguing with a radio contact over “ore purity” and “assay timing.” The phrasing suggests smuggling of highvalue metals rather than typical street narcotics. Crew members wore gloves and avoided scraping the crates corners, reinforcing the inference of dense contents. A handheld Geiger counter case was observed in the tool cage, but no reading event was witnessed.
On 04/06, the subject requested help fabricating a false enginerepair ticket to explain downtime for Barge 12. Ticket was signed under a false corporate name and backdated. Subject appeared calm after the forgery, then paid crew in cash envelopes with inconsistent denominations.
Cover intact. Recommend discreet sampling of riverbed residue near the north slip, crosschecking barge manifests for Barge 12, and coordination with environmental regulators to justify covert inspections without alerting the subject.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 102-45
Agent: Sanders (cover identity)
Date: 08/19 08/23
Subject manages an upscale restaurant suspected of laundering illicit gambling proceeds. Agent embedded as a sommelier, granting access to private dining rooms and basement storage. On 08/20, the subject hosted three suited men; the room was sealed and guarded. While pouring, the agent heard references to “clearing accounts” and “westcoast expansion.” The subject kept a handwritten ledger with columns that do not reconcile with the pointofsale exports.
On 08/22, a delivery van bypassed normal suppliers and offloaded crates into the walkin freezer with no perishables labeling. Handlers displayed tactical posture inconsistent with food service. On 08/23, the subject warned staff about inspections and emphasized silence, revealing controlled anxiety.
Cover remains secure; agent perceived as competent and unthreatening. Recommend parallel financial audit, supplierchain verification, and a timed inspection aligned with the offcycle delivery pattern.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 81-33
Agent: Raines (cover identity)
Date: 01/18 01/21
Subject manages a boutique hotel that periodically closes floors for “private events.” Agents cover as nightshift concierge grants exposure to guest registries and keyencoder logs. On 01/19, the subject blocked out Level 5 under a shell company and delivered sealed envelopes to three suites. Noise and foot traffic suggested an invitationonly auction. Staff were instructed to use service stairs only and disable the lobby feed for two hours citing maintenance.
On 01/20, two SUVs with obscured plates arrived at the loading bay. Items resembling art crates and a locked pelican case were transferred to Suite 512. A known broker briefly appeared in the hallway, then vanished into the service lift. The minibar inventory showed no consumption despite the headcount—common during short, transactional gatherings.
On 01/21, the subject praised the agent for “discretion” and hinted at a permanent role. Later, housekeeping turned over a discarded bidder paddlestick with handwritten totals. Figures exceeded declared room revenue by a wide margin.
Cover holds. Recommend targeted warrants for the shell company, a parallel probe into the broker, and a controlled interruption on the next “private” floor closure to preserve evidence while minimizing guest disruption.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 138-24
Agent: Bennett (cover identity)
Date: 01/12 01/15
Subject manages a modest construction company that appears to use job sites for concealment and cash skimming. Agent hired as temporary labor. On 01/13, a hidden compartment beneath scaffolding yielded two heavy duffels that the subject moved to a pickup without logging materials. The foreman kept crew distant with a noisecontrol pretext.
On 01/14, the subject argued with a partner about “federal contracts” and “kickbacks,” implying bidrigging and publiccorruption exposure. On 01/15, the subject praised the agents work and hinted at “bigger projects,” a sign of attempted grooming for riskier tasks.
Cover maintained. Recommend forensic review of procurement records, site searches keyed to concealed compartments, and interviews with subcontractors likely aware of the skimming practice.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,10 @@
Undercover Report Case File 110-19
Agent: Mitchell (cover identity)
Date: 09/07 09/10
Subject runs a repair garage that doubles as a weapons workshop. Agent embedded as a parttime apprentice. On 09/08, the subject modified rifles at a back bench outfitted with jigs, thread cutters, and solvent traps. Multiple unserialized receivers were visible. The subject bragged about clients who “pay for silence.”
On 09/09, a phone call arranged delivery of “three crates” to a desert rendezvous, specifying urgency and “militarygrade parts.” On 09/10, the subject tested the agent with a drop of a box labeled scrap to an abandoned rail yard. The weight and rattle suggested mixed metal components. Delivery completed under surveillance without opening to preserve cover.
Cover intact though scrutiny is increasing. Recommend immediate tracing of the railyard contact, controlled intercept of the desert transfer, and NIBIN checks on recovered parts.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,11 @@
Undercover Report Case File 07-14
Agent: Mason (cover identity)
Date: 06/12 06/15
Subject continues to operate a cashheavy nightclub believed to be central to midlevel narcotics distribution in the northwest sector. Cover identity as parttime bartender remains effective and provides nightly access to storeroom traffic and the restricted back hallway behind the stage. On 06/13, the subject supervised delivery of three sealed cartons labeled as beverage syrups. The weight and the handlers posture suggested dense contents inconsistent with that label. Subject instructed all staff to avoid contact and to log the cartons as vendor overstock without serials.
On 06/14, the subject held a closeddoor conversation with a courier known locally as “Rico.” Portions overheard included references to a “Miami truck” and “eastcoast push.” Tone implied urgency and reliance on corrupt support, described as “our friend at permits.” Identity of the alleged official remains unknown. Later that evening, a floor manager tested staff loyalty by asking casual questions about police patrol patterns near 12th Street.
On 06/15, subject gave the agent an envelope for a routine offsite drop. Envelope was briefly photographed under pretext of retrieving car keys; contents included a short ledger with coded initials, tally marks, and four phone numbers written in alternating ink colors. Envelope was delivered intact to avoid suspicion. Subjects postdrop demeanor appeared relaxed, suggesting the transaction cleared immediate obligations.
Cover remains intact, with agent perceived as reliable but peripheral. Recommend discreet financial analysis of the ledger numbers, targeted canvass for the unknown permits contact, and coordination with portofentry teams to watch for southtonorth freight aligning with subjects timetable.

View File

@@ -0,0 +1,12 @@
Undercover Report Case File 92-14
Agent: Langston (cover identity)
Date: 05/10 05/14
Subject continues to expand operations through a network of import/export fronts in the industrial docklands. Cover identity as an independent freight consultant has provided access to routing meetings and latenight inspections. On 05/11, the subject oversaw containers labeled “agricultural machinery” with weights above manifest and brandnew locks. Handlers were armed and avoided eye contact. No safe chance to open containers without exposure.
On 05/12, the subject introduced an associate, “Gallo,” who quizzed the agent on Gulfport customs routines and inspection frequencies. Questions implied an imminent push of highvalue contraband through maritime lanes with compromised timing windows. The crew canceled two runs after learning of a regional seizure, and the subject complained about “partners overseas losing patience.”
On 05/14, a briefcase exchange at a dockside café lasted under two minutes; the subject accepted the case and passed it to Gallo without inspection. Both appeared tense but determined.
Cover remains stable yet fragile. Recommend expanded surveillance at the targeted warehouses, customs liaisons to flag the specific manifest anomalies noted, and a rapid extraction plan if the crew pivots to violent vetting.
Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible. Cover remains intact. Recommend continued surveillance and coordinated warrants when feasible.

View File

@@ -0,0 +1,20 @@
095_07-14.txt 07-14 Mason
007_19-52.txt 19-52 Harper
083_25-39.txt 25-39 Doyle
019_31-11.txt 31-11 Vega
075_46-77.txt 46-77 Ellis
031_53-28.txt 53-28 Navarro
072_61-05.txt 61-05 Carter
064_72-90.txt 72-90 Quinn
091_81-33.txt 81-33 Raines
079_89-47.txt 89-47 Dalton
098_92-14.txt 92-14 Langston
012_94-31.txt 94-31 Donovan
016_98-07.txt 98-07 Fletcher
087_102-45.txt 102-45 Sanders
094_110-19.txt 110-19 Mitchell
063_117-56.txt 117-56 OConnor
017_123-88.txt 123-88 Holloway
011_130-62.txt 130-62 Lennox
093_138-24.txt 138-24 Bennett
001_145-93.txt 145-93 Carver

View File

@@ -26,4 +26,4 @@ framework:
Symfony\Component\Notifier\Message\SmsMessage: async Symfony\Component\Notifier\Message\SmsMessage: async
# Route your messages to the transports # Route your messages to the transports
# 'App\Message\YourMessage': async 'App\Tech\Message\ProcessTaskMessage': async

View File

@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260105113139 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE game (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, number_of_players INT NOT NULL, status VARCHAR(20) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE player (id INT AUTO_INCREMENT NOT NULL, session_id INT NOT NULL, user_id INT NOT NULL, screen INT NOT NULL, INDEX IDX_98197A65613FECDF (session_id), INDEX IDX_98197A65A76ED395 (user_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE session (id INT AUTO_INCREMENT NOT NULL, game_id INT NOT NULL, status VARCHAR(20) NOT NULL, timer INT NOT NULL, created DATETIME NOT NULL, INDEX IDX_D044D5D4E48FD905 (game_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE player ADD CONSTRAINT FK_98197A65613FECDF FOREIGN KEY (session_id) REFERENCES session (id)');
$this->addSql('ALTER TABLE player ADD CONSTRAINT FK_98197A65A76ED395 FOREIGN KEY (user_id) REFERENCES `user` (id)');
$this->addSql('ALTER TABLE session ADD CONSTRAINT FK_D044D5D4E48FD905 FOREIGN KEY (game_id) REFERENCES game (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE player DROP FOREIGN KEY FK_98197A65613FECDF');
$this->addSql('ALTER TABLE player DROP FOREIGN KEY FK_98197A65A76ED395');
$this->addSql('ALTER TABLE session DROP FOREIGN KEY FK_D044D5D4E48FD905');
$this->addSql('DROP TABLE game');
$this->addSql('DROP TABLE player');
$this->addSql('DROP TABLE session');
}
}

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260105121159 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE player ADD level JSON DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE player DROP level');
}
}

View File

@@ -0,0 +1,39 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260105155949 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE game_setting (id INT AUTO_INCREMENT NOT NULL, game_id INT NOT NULL, name VARCHAR(255) NOT NULL, value LONGTEXT DEFAULT NULL, INDEX IDX_AB6C7B7E48FD905 (game_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE session_setting (id INT AUTO_INCREMENT NOT NULL, session_id INT NOT NULL, player_id INT DEFAULT NULL, name VARCHAR(255) NOT NULL, value LONGTEXT DEFAULT NULL, INDEX IDX_8DAC3AC2613FECDF (session_id), INDEX IDX_8DAC3AC299E6F5DF (player_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE game_setting ADD CONSTRAINT FK_AB6C7B7E48FD905 FOREIGN KEY (game_id) REFERENCES game (id)');
$this->addSql('ALTER TABLE session_setting ADD CONSTRAINT FK_8DAC3AC2613FECDF FOREIGN KEY (session_id) REFERENCES session (id)');
$this->addSql('ALTER TABLE session_setting ADD CONSTRAINT FK_8DAC3AC299E6F5DF FOREIGN KEY (player_id) REFERENCES player (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE game_setting DROP FOREIGN KEY FK_AB6C7B7E48FD905');
$this->addSql('ALTER TABLE session_setting DROP FOREIGN KEY FK_8DAC3AC2613FECDF');
$this->addSql('ALTER TABLE session_setting DROP FOREIGN KEY FK_8DAC3AC299E6F5DF');
$this->addSql('DROP TABLE game_setting');
$this->addSql('DROP TABLE session_setting');
}
}

View File

@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260105160603 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE player DROP level');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE player ADD level JSON DEFAULT NULL');
}
}

141
src/Game/Entity/Game.php Normal file
View File

@@ -0,0 +1,141 @@
<?php
namespace App\Game\Entity;
use App\Game\Enum\GameStatus;
use App\Game\Repository\GameRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GameRepository::class)]
#[ORM\Table(name: 'game')]
class Game
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column]
private ?int $numberOfPlayers = null;
#[ORM\Column(type: 'string', length: 20, enumType: GameStatus::class)]
private ?GameStatus $status = null;
#[ORM\OneToMany(mappedBy: 'game', targetEntity: Session::class)]
private Collection $sessions;
#[ORM\OneToMany(mappedBy: 'game', targetEntity: GameSetting::class)]
private Collection $settings;
public function __construct()
{
$this->sessions = new ArrayCollection();
$this->settings = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): static
{
$this->name = $name;
return $this;
}
public function getNumberOfPlayers(): ?int
{
return $this->numberOfPlayers;
}
public function setNumberOfPlayers(int $numberOfPlayers): static
{
$this->numberOfPlayers = $numberOfPlayers;
return $this;
}
public function getStatus(): ?GameStatus
{
return $this->status;
}
public function setStatus(GameStatus $status): static
{
$this->status = $status;
return $this;
}
/**
* @return Collection<int, Session>
*/
public function getSessions(): Collection
{
return $this->sessions;
}
public function addSession(Session $session): static
{
if (!$this->sessions->contains($session)) {
$this->sessions->add($session);
$session->setGame($this);
}
return $this;
}
public function removeSession(Session $session): static
{
if ($this->sessions->removeElement($session)) {
// set the owning side to null (unless already changed)
if ($session->getGame() === $this) {
$session->setGame(null);
}
}
return $this;
}
/**
* @return Collection<int, GameSetting>
*/
public function getSettings(): Collection
{
return $this->settings;
}
public function addSetting(GameSetting $setting): static
{
if (!$this->settings->contains($setting)) {
$this->settings->add($setting);
$setting->setGame($this);
}
return $this;
}
public function removeSetting(GameSetting $setting): static
{
if ($this->settings->removeElement($setting)) {
// set the owning side to null (unless already changed)
if ($setting->getGame() === $this) {
$setting->setGame(null);
}
}
return $this;
}
}

View File

@@ -0,0 +1,68 @@
<?php
namespace App\Game\Entity;
use App\Game\Enum\GameSettingType;
use App\Game\Repository\GameSettingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: GameSettingRepository::class)]
#[ORM\Table(name: 'game_setting')]
class GameSetting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Game::class)]
#[ORM\JoinColumn(nullable: false)]
private ?Game $game = null;
#[ORM\Column(type: 'string', length: 255, enumType: GameSettingType::class)]
private ?GameSettingType $name = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
public function getId(): ?int
{
return $this->id;
}
public function getGame(): ?Game
{
return $this->game;
}
public function setGame(?Game $game): static
{
$this->game = $game;
return $this;
}
public function getName(): ?GameSettingType
{
return $this->name;
}
public function setName(GameSettingType $name): static
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
}

View File

@@ -0,0 +1,69 @@
<?php
namespace App\Game\Entity;
use App\Game\Repository\PlayerRepository;
use App\Tech\Entity\User;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: PlayerRepository::class)]
#[ORM\Table(name: 'player')]
class Player
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Session::class)]
#[ORM\JoinColumn(nullable: false)]
private ?Session $session = null;
#[ORM\ManyToOne(targetEntity: User::class)]
#[ORM\JoinColumn(nullable: false)]
private ?User $user = null;
#[ORM\Column]
private ?int $screen = null;
public function getId(): ?int
{
return $this->id;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): static
{
$this->session = $session;
return $this;
}
public function getUser(): ?User
{
return $this->user;
}
public function setUser(?User $user): static
{
$this->user = $user;
return $this;
}
public function getScreen(): ?int
{
return $this->screen;
}
public function setScreen(int $screen): static
{
$this->screen = $screen;
return $this;
}
}

159
src/Game/Entity/Session.php Normal file
View File

@@ -0,0 +1,159 @@
<?php
namespace App\Game\Entity;
use App\Game\Enum\SessionStatus;
use App\Game\Repository\SessionRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SessionRepository::class)]
#[ORM\Table(name: 'session')]
class Session
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Game::class, inversedBy: 'sessions')]
#[ORM\JoinColumn(nullable: false)]
private ?Game $game = null;
#[ORM\Column(type: 'string', length: 20, enumType: SessionStatus::class)]
private ?SessionStatus $status = null;
#[ORM\Column]
private ?int $timer = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
private ?\DateTimeInterface $created = null;
#[ORM\OneToMany(mappedBy: 'session', targetEntity: Player::class)]
private Collection $players;
#[ORM\OneToMany(mappedBy: 'session', targetEntity: SessionSetting::class)]
private Collection $settings;
public function __construct()
{
$this->created = new \DateTime();
$this->players = new ArrayCollection();
$this->settings = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getGame(): ?Game
{
return $this->game;
}
public function setGame(?Game $game): static
{
$this->game = $game;
return $this;
}
public function getStatus(): ?SessionStatus
{
return $this->status;
}
public function setStatus(SessionStatus $status): static
{
$this->status = $status;
return $this;
}
public function getTimer(): ?int
{
return $this->timer;
}
public function setTimer(int $timer): static
{
$this->timer = $timer;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): static
{
$this->created = $created;
return $this;
}
/**
* @return Collection<int, Player>
*/
public function getPlayers(): Collection
{
return $this->players;
}
public function addPlayer(Player $player): static
{
if (!$this->players->contains($player)) {
$this->players->add($player);
$player->setSession($this);
}
return $this;
}
public function removePlayer(Player $player): static
{
if ($this->players->removeElement($player)) {
// set the owning side to null (unless already changed)
if ($player->getSession() === $this) {
$player->setSession(null);
}
}
return $this;
}
/**
* @return Collection<int, SessionSetting>
*/
public function getSettings(): Collection
{
return $this->settings;
}
public function addSetting(SessionSetting $setting): static
{
if (!$this->settings->contains($setting)) {
$this->settings->add($setting);
$setting->setSession($this);
}
return $this;
}
public function removeSetting(SessionSetting $setting): static
{
if ($this->settings->removeElement($setting)) {
// set the owning side to null (unless already changed)
if ($setting->getSession() === $this) {
$setting->setSession(null);
}
}
return $this;
}
}

View File

@@ -0,0 +1,84 @@
<?php
namespace App\Game\Entity;
use App\Game\Enum\SessionSettingType;
use App\Game\Repository\SessionSettingRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SessionSettingRepository::class)]
#[ORM\Table(name: 'session_setting')]
class SessionSetting
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(targetEntity: Session::class)]
#[ORM\JoinColumn(nullable: false)]
private ?Session $session = null;
#[ORM\ManyToOne(targetEntity: Player::class)]
#[ORM\JoinColumn(nullable: true)]
private ?Player $player = null;
#[ORM\Column(type: 'string', length: 255, enumType: SessionSettingType::class)]
private ?SessionSettingType $name = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $value = null;
public function getId(): ?int
{
return $this->id;
}
public function getSession(): ?Session
{
return $this->session;
}
public function setSession(?Session $session): static
{
$this->session = $session;
return $this;
}
public function getPlayer(): ?Player
{
return $this->player;
}
public function setPlayer(?Player $player): static
{
$this->player = $player;
return $this;
}
public function getName(): ?SessionSettingType
{
return $this->name;
}
public function setName(SessionSettingType $name): static
{
$this->name = $name;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): static
{
$this->value = $value;
return $this;
}
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Game\Enum;
enum DecodeMessage: string
{
case TEST = 'This is a test decoding message.';
case SECRET = 'The secret code is 42.';
case WELCOME = 'Welcome to the system, agent.';
}

View File

@@ -0,0 +1,8 @@
<?php
namespace App\Game\Enum;
enum GameSettingType: string
{
case TOTAL_TIME = 'totalTime';
}

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Game\Enum;
enum GameStatus: string
{
case IN_DEVELOPMENT = 'inDevelopment';
case LOCKED = 'locked';
case OPEN = 'open';
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Game\Enum;
enum SessionSettingType: string
{
case PWD_FOR_PLAYER1 = 'PwdForPlayer1';
case PWD_FOR_PLAYER2 = 'PwdForPlayer2';
case PWD_FOR_PLAYER3 = 'PwdForPlayer3';
case RIGHTS_FOR_PLAYER1 = 'RightsForPlayer1';
case RIGHTS_FOR_PLAYER2 = 'RightsForPlayer2';
case RIGHTS_FOR_PLAYER3 = 'RightsForPlayer3';
}

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Game\Enum;
enum SessionStatus: string
{
case CREATED = 'created';
case READY = 'ready';
case PLAYING = 'playing';
case WON = 'won';
case LOST = 'lost';
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Game\Repository;
use App\Game\Entity\Game;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Game>
*/
class GameRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Game::class);
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Game\Repository;
use App\Game\Entity\Game;
use App\Game\Entity\GameSetting;
use App\Game\Enum\GameSettingType;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<GameSetting>
*/
class GameSettingRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, GameSetting::class);
}
public function getSetting(Game $game, GameSettingType $name): ?GameSetting
{
return $this->findOneBy([
'game' => $game,
'name' => $name,
]);
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Game\Repository;
use App\Game\Entity\Player;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Player>
*/
class PlayerRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Player::class);
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Game\Repository;
use App\Game\Entity\Session;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<Session>
*/
class SessionRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, Session::class);
}
}

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Game\Repository;
use App\Game\Enum\SessionSettingType;
use App\Game\Entity\Player;
use App\Game\Entity\Session;
use App\Game\Entity\SessionSetting;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
/**
* @extends ServiceEntityRepository<SessionSetting>
*/
class SessionSettingRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, SessionSetting::class);
}
public function getSetting(Session $session, SessionSettingType $name, ?Player $player = null): ?SessionSetting
{
$qb = $this->createQueryBuilder('s')
->where('s.session = :session')
->andWhere('s.name = :name')
->setParameter('session', $session)
->setParameter('name', $name->value);
if ($player) {
$qb->andWhere('s.player = :player')
->setParameter('player', $player);
} else {
$qb->andWhere('s.player IS NULL');
}
return $qb->getQuery()->getOneOrNullResult();
}
}

View File

@@ -2,8 +2,22 @@
namespace App\Game\Service; namespace App\Game\Service;
use App\Game\Enum\DecodeMessage;
use App\Game\Enum\SessionSettingType;
use App\Game\Entity\Player;
use App\Game\Repository\SessionSettingRepository;
use App\Tech\Entity\User;
use Symfony\Bundle\SecurityBundle\Security;
class GameResponseService class GameResponseService
{ {
public function __construct(
private Security $security,
private PlayerService $playerService,
private SessionSettingRepository $sessionSettingRepository,
) {
}
public function getGameResponse(string $raw) public function getGameResponse(string $raw)
{ {
$info = json_decode($raw, true); $info = json_decode($raw, true);
@@ -11,10 +25,308 @@ class GameResponseService
$message = $info['message'] ?? ''; $message = $info['message'] ?? '';
$ts = $info['ts'] ?? ''; $ts = $info['ts'] ?? '';
if(!is_string($message))
return ['error' => 'Invalid message.'];
$user = $this->security->getUser();
if(!$user instanceof User)
return ['error' => 'You are not logged in.'];
$player = $this->playerService->GetCurrentlyActiveAsPlayer($user);
if(!$player)
return ['error' => 'You are not in a game.'];
// TODO: Here i need to add a message handler to save the message in a big log.
$data = []; $data = [];
if(str_starts_with($message, '/')) {
$data = $this->checkGameCommando($message, $player);
} else {
$data = $this->checkConsoleCommando($message, $player);
}
return $data; return $data;
} }
private function getRechten(Player $player): array
{
$settingName = match($player->getScreen()) {
1 => SessionSettingType::RIGHTS_FOR_PLAYER1,
2 => SessionSettingType::RIGHTS_FOR_PLAYER2,
3 => SessionSettingType::RIGHTS_FOR_PLAYER3,
default => null,
};
if (!$settingName) {
return [];
}
$setting = $this->sessionSettingRepository->getSetting($player->getSession(), $settingName, $player);
if (!$setting || !$setting->getValue()) {
return [];
}
return json_decode($setting->getValue(), true) ?? [];
}
private function checkGameCommando(string $message, Player $player) : array
{
$messagePart = explode(' ', $message);
$rechten = $this->getRechten($player);
switch($messagePart[0]) {
case '/chat':
if(!in_array('chat', $rechten))
return ['result' => ['Unknown command']];
$this->handleChatMessage($message);
break;
case '/help':
return ['result' => $this->getHelpCommand($rechten)];
case '/decode':
if(!in_array('decode', $rechten))
return ['result' => ['Unknown command']];
return ['result' => [$this->handleDecodeMessage($messagePart[1], $player)]];
case '/verify':
if(!in_array('verify', $rechten))
return ['result' => ['Unknown command']];
$result = $this->handleVerifyMessage($message);
return ['result' => [$result]];
default:
return ['result' => ['Unknown command']];
}
return [];
}
private function checkConsoleCommando(string $message, Player $player, bool $sudo = false) : array
{
$messagePart = explode(' ', $message);
$rechten = $this->getRechten($player);
switch($messagePart[0]) {
case 'help':
return ['result' => $this->getHelpCommand($rechten)];
case 'ls':
break;
case 'cd':
$pwd = $this->playerService->getCurrentPwdOfPlayer($player);
if(!$pwd)
return ['result' => ['Unknown command']];
$newLocation = $this->goToNewDir($pwd, $messagePart[1], $player);
if($newLocation === false)
return ['result' => ['Unknown path']];
$this->playerService->saveCurrentPwdOfPlayer($player, $newLocation);
return ['result' => ['Path: ' . $newLocation]];
case 'rm':
break;
case 'sudo':
break;
default:
return ['result' => ['Unknown command']];
}
return [];
}
private function getHelpCommand(mixed $rechten) : array
{
$messages = [];
foreach($rechten as $recht) {
switch($recht) {
case 'chat':
$messages[] = '/chat';
$messages[] = ' Use /chat {message} to send the message to the other agents.';
$messages[] = ' If you want to send a message specifically to one other agent, use the id of the agent after /chat, like /chat 6 {message}';
$messages[] = ' This will send the message only to agent with id 6.';
$messages[] = ' USAGE: /chat {message}';
$messages[] = '';
break;
case 'help':
$messages[] = '/help';
$messages[] = ' This shows this help.';
$messages[] = ' USAGE: /help';
$messages[] = '';
break;
case 'decode':
$messages[] = '/decode';
$messages[] = ' This message will decode the message followed by it.';
$messages[] = ' Every agent has a different way to decode messages. This is a security measure. The AI Virus has no access to all decoders.';
$messages[] = ' USAGE: /decode {message}';
$messages[] = '';
break;
case 'cat':
$messages[] = 'cat';
$messages[] = ' To read a file, use cat {filename}.';
$messages[] = ' This will print the full content of the file on the screen.';
$messages[] = ' USAGE: cat {filename}';
$messages[] = '';
break;
case 'ls':
$messages[] = 'ls';
$messages[] = ' To show all the files in the current directory, use ls.';
$messages[] = ' This will print the full list of directories and files of the current location on your screen.';
$messages[] = ' USAGE: ls';
$messages[] = '';
break;
case 'rm':
$messages[] = 'rm';
$messages[] = ' Use rm to delete a file.';
$messages[] = ' Be careful with this command. It can not be undone and we do not want to lose any valuable data.';
$messages[] = ' USAGE: rm {filename}';
$messages[] = '';
break;
case 'cd':
$messages[] = 'cd';
$messages[] = ' Use cd to move to a different directory.';
$messages[] = ' You can go into a folder by using cd {foldername}, or a folder up by using "cd ..".';
$messages[] = ' Using cd / moves you to the root directory.';
$messages[] = ' USAGE: cd {directory}';
$messages[] = '';
break;
case 'sudo':
$messages[] = 'sudo';
$messages[] = ' If you do not have enough rights to execute a command, you can use sudo to execute it as root.';
$messages[] = ' This is only possible for verified users. To verify yourself, use the /verify command.';
$messages[] = ' USAGE: sudo {command}';
$messages[] = '';
break;
case 'verify':
$messages[] = '/verify';
$messages[] = ' You can verify yourself by using this command.';
$messages[] = ' Use this command and follow instructions to verify yourself.';
$messages[] = ' USAGE: /verify';
$messages[] = '';
break;
}
}
return $messages;
}
private function handleChatMessage(string $message)
{
}
private function handleDecodeMessage(string $message, Player $player)
{
$userNumber = $player->getScreen();
preg_match('/\d+/', $message, $matches);
$num = $matches[0] ?? null;
$randomString = $this->generateRandomString(250, 500);
if(is_null($num) || $num != $userNumber)
return $randomString;
foreach (DecodeMessage::cases() as $decodeMessage) {
if ($decodeMessage->name === $message) {
return $decodeMessage->value;
}
}
return $randomString;
}
private function generateRandomString(int $min, int $max): string
{
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ ';
$charactersLength = strlen($characters);
$randomString = '';
$length = random_int($min, $max);
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[random_int(0, $charactersLength - 1)];
}
return $randomString;
}
private function handleVerifyMessage(string $message) : string
{
return '';
}
private function goToNewDir(string $pwd, string $newPwd, Player $player) : string|bool
{
$allPossiblePaths = $this->getAllPossiblePaths($player);
$dirParts = explode('/', $newPwd);
$int = count($dirParts);
if($dirParts[0] == '') {
$newDir = '';
$startPart = 1;
} else {
$newDir = $pwd;
$startPart = 0;
}
for($i = $startPart; $i < $int; $i++) {
if($dirParts[$i] == '..')
$newDir = $this->getPrevPath($newDir);
else
$newDir .= '/' . $dirParts[$i];
if(!in_array($newDir, $allPossiblePaths))
return false;
}
return $newDir;
}
private function getPrevPath(string $pwd) : string
{
$pwdParts = explode('/', $pwd);
array_pop($pwdParts);
$pwd = implode('/', $pwdParts);
return $pwd;
}
private function getAllPossiblePaths(Player $player) : array
{
$paths = [];
$paths[] = '/';
$paths[] = '/var';
$paths[] = '/var/arrest';
$paths[] = '/var/www';
$paths[] = '/var/marriage';
$paths[] = '/var/rapports';
$paths[] = '/var/linking';
$paths[] = '/etc';
$paths[] = '/etc/short';
$paths[] = '/etc/long';
$paths[] = '/etc/arrest';
$paths[] = '/etc/power';
$paths[] = '/etc/break';
$paths[] = '/etc/handle';
$paths[] = '/etc/freak';
$paths[] = '/etc/host';
$paths[] = '/home';
$playerNames = ['root', 'Luke', 'Charles', 'William', 'Peter'];
$players = $player->getSession()->getPlayers();
foreach($players as $player) {
$playerNames[] = $player->getUser()->getUsername();
}
$playerNames = array_unique($playerNames);
foreach($playerNames as $name) {
$paths[] = '/home/' . $name;
}
return $paths;
}
} }

View File

@@ -0,0 +1,76 @@
<?php
namespace App\Game\Service;
use App\Game\Entity\Game;
use App\Game\Entity\Player;
use App\Game\Enum\SessionSettingType;
use App\Game\Enum\SessionStatus;
use App\Game\Repository\PlayerRepository;
use App\Game\Repository\SessionSettingRepository;
use App\Tech\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
class PlayerService
{
public function __construct(
private PlayerRepository $playerRepository,
private SessionSettingRepository $sessionSettingRepository,
private EntityManagerInterface $entityManager,
) {
}
public function GetCurrentlyActiveAsPlayer(User $user): ?Player
{
$player = $this->playerRepository->createQueryBuilder('p')
->join('p.session', 's')
->where('p.user = :user')
->andWhere('s.status IN (:statuses)')
->setParameter('user', $user)
->setParameter('statuses', [
SessionStatus::READY,
SessionStatus::PLAYING,
])
->setMaxResults(1)
->getQuery()
->getOneOrNullResult();
return $player;
}
public function getCurrentPwdOfPlayer(Player $player) : ?string {
$settingName = match($player->getScreen()) {
1 => SessionSettingType::PWD_FOR_PLAYER1,
2 => SessionSettingType::PWD_FOR_PLAYER2,
3 => SessionSettingType::PWD_FOR_PLAYER3,
default => null,
};
if (!$settingName) {
return null;
}
$setting = $this->sessionSettingRepository->getSetting($player->getSession(), $settingName, $player);
return $setting?->getValue();
}
public function saveCurrentPwdOfPlayer(Player $player, string $newLocation)
{
$settingName = match($player->getScreen()) {
1 => SessionSettingType::PWD_FOR_PLAYER1,
2 => SessionSettingType::PWD_FOR_PLAYER2,
3 => SessionSettingType::PWD_FOR_PLAYER3,
default => null,
};
if (!$settingName) {
return;
}
$setting = $this->sessionSettingRepository->getSetting($player->getSession(), $settingName, $player);
$setting->setValue($newLocation);
$this->entityManager->persist($setting);
$this->entityManager->flush();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Tech\Message;
class ProcessTaskMessage
{
public function __construct(
private string $taskName,
private array $payload = [],
) {
}
public function getTaskName(): string
{
return $this->taskName;
}
public function getPayload(): array
{
return $this->payload;
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Tech\MessageHandler;
use App\Tech\Message\ProcessTaskMessage;
use Psr\Log\LoggerInterface;
use Symfony\Component\Messenger\Attribute\AsMessageHandler;
#[AsMessageHandler]
class ProcessTaskMessageHandler
{
public function __construct(
private LoggerInterface $logger,
) {
}
public function __invoke(ProcessTaskMessage $message): void
{
$this->logger->info('Processing task: ' . $message->getTaskName(), [
'payload' => $message->getPayload(),
]);
// Implement logic based on taskName here
}
}