nivolumab after combined modality therapy in treating patients with high risk stage ii-iiib anal cancer

Conditions: Anal Basaloid Carcinoma; Anal Canal Cloacogenic Carcinoma; Anal Margin Squamous Cell Carcinoma; Stage IIB Anal Cancer AJCC v8; Stage III Anal Cancer AJCC v8

Summary: this phase iii trial investigates how well nivolumab after combined modality therapy works in treating patients with high risk stage ii-iiib anal cancer. immunotherapy with monoclonal antibodies, such as nivolumab, may help the body's immune system attack the cancer, and may interfere with the ability of tumor cells to grow and spread.

primary objective: i. to evaluate whether therapy with nivolumab following combined modality therapy (cmt) improves disease-free survival (dfs) compared with observation in patients with high risk anal carcinoma. secondary objectives: i. to compare nivolumab following combined modality therapy (cmt) with observation in patients with high risk anal carcinoma with regard to: ia. objective response rate (complete \[cr\] and partial \[pr\]), stable disease and progression. ib. severe toxicity interval. ic. colostomy-free survival. id. overall survival. ie. toxicity. outline: patients who received standard cmt are randomized to 1 of 2 arms. arm a: patients receive nivolumab intravenously (iv) while on study. arm b: patients undergo observation while on study patients undergo sigmoidoscopy, colonoscopy or anoscopy, proctoscopy or digital rectal exam, x-ray, computed tomography (ct) scan, magnetic resonance imaging (mri), biopsy and blood sample collection throughout the study.

Eligibility criteria:
inclusion criteria: * registration to step 1 eligibility criteria: age \>= 18 years * registration to step 1 eligibility criteria: patients must have histologically proven stage iib (t3n0m0 only), iiia (t2n1m0), iiib (t4n0m0), or iiic (t3n1m0, t4n1m0) invasive squamous cell carcinoma of the anus or anorectum, according to the american joint committee on cancer (ajcc) 8th edition; this may include tumors of non-keratinizing histology such as basaloid, transitional cell, or cloacogenic histology; individuals with squamous cell carcinoma of the anal margin are eligible if there is evidence of extension of the primary tumor into the anal canal * registration to step 1 eligibility criteria: patients must have eastern cooperative oncology group (ecog) performance status of 0-2 * registration to step 1 eligibility criteria: patients must have hemoglobin levels of \> 9 g/dl (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: patient must have a platelet count of \> 100,000/mm\^3 (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: patient's absolute neutrophil count (anc) level must be \> 1500/mm\^3 (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: serum creatinine must be =\< 1.5 x upper limit of normal (uln) (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: total bilirubin must be \< 2 x uln (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: aspartate aminotransferase (ast) (serum glutamic oxaloacetic transaminase \[sgot\])/alanine aminotransferase (alt) (serum glutamic pyruvic transaminase \[sgpt\]) =\< 2.5 x institutional upper limit of normal (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: albumin \>= 3.0 g/dl (within 2 weeks prior to registration) * registration to step 1 eligibility criteria: patients known to be human immunodeficiency virus (hiv)+ are permitted; patients with cd4 \> 200 and serum hiv viral load of \< 200 copies/mm\^3 are eligible, and in addition: * participants must be purified protein derivative (ppd) negative; alternatively, the quantiferon-tuberculosis (tb) gold in-tube (qft-git) assay (cellestis limited, carnegie, australia) can be used; an individual is considered positive for m. tuberculosis infection if the ifn-gamma response to tb antigens is above the test cut-off (after subtracting the background ifn-gamma response in the negative control); the result must be obtained within 20 weeks prior to enrollment; ppd positive (or quantiferon assay positive) participants are permitted if prophylaxis has been completed prior to enrollment * no history of acquired immune deficiency syndrome (aids)-related complications within past year other than a history of low cd4+ t-cell count \> 200/mm\^3 prior to initiation of combination antiretroviral therapy; on study cd4+ t-cell count may not be informative due to chemoradiotherapy and should not be used as an exclusion criterion if low * patient must be healthy on the basis of hiv disease with high likelihood of near normal life span were it not for the anal cancer * participants must receive appropriate care and treatment for hiv infection, including antiretroviral medications when clinically indicated, and should be under the care of a physician experienced in hiv management; participants will be eligible regardless of antiretroviral medication (including no antiretroviral medication) provided there is no intention to initiate therapy or the regimen has been stable for at least 4 weeks with no intention to change the regimen within 12 weeks following enrollment * patient must have =\< grade 2 diarrhea (participants with grade 1 diarrhea are eligible provided stool for ova/parasites and stool cryptosporidium studies are negative; * note: hiv testing is not required for eligibility * registration to step 1 eligibility criteria: for patients registering prior to start of chemoradiotherapy, baseline scans must have been completed within 4 weeks prior to registration * registration to step 1 eligibility criteria: women of child bearing potential and sexually active males must use accepted and effective method(s) of contraception and/or abstain from sexual intercourse while on protocol treatment and for at least 5 months after the last dose of nivolumab (for female patients) and for at least 7 months after the last dose of nivolumab (for male patients) * registration to step 1 eligibility criteria: any surgery must have been completed \>= 4 weeks prior to starting study treatment * registration to step 1 eligibility criteria: no uncontrolled intercurrent illness including, but not limited to ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * registration to step 1 eligibility criteria: no prior treatment with an immune checkpoint inhibitor (anti-pd-1, anti-pd-l1, anti-pd-l2, anti-ctla4 monoclonal antibody) * registration to step 1 eligibility criteria: no patients with immunodeficiency or receiving systemic steroid therapy equivalent to \> 10 mg prednisone per day or any other form of immunosuppressive therapy within 7 days prior to step 1 registration; topical corticosteroid or occasional inhaled corticosteroids are allowed * registration to step 1 eligibility criteria: no live vaccines within 30 days prior to registration; examples of live vaccines include, but are not limited to, the following: measles, mumps, rubella, chicken pox, yellow fever, rabies, bcg, and typhoid (oral) vaccine; seasonal influenza vaccines for injection are generally killed virus vaccines and are allowed; however, intranasal influenza vaccines (e.g., flu-mist) are live attenuated vaccines and are not allowed * note: no live vaccines may be administered while participating in the trial * registration to step 1 eligibility criteria: previously irradiated patients (arm s) must have received radiation per national comprehensive cancer network guidelines; radiation therapy delivered on protocol (arm t) will be reviewed * registration to step 2 eligibility criteria: patients will be registered within 63 days following completion of standard chemoradiation for anal cancer; standard chemoradiation therapy is as defined * registration to step 2 eligibility criteria: patients must have histologically proven stage iib (t3n0m0 only), iiia (t2n1m0), iiib (t4n0m0), or iiic (t3n1m0, t4n1m0) invasive squamous cell carcinoma of the anus or anorectum, according to the ajcc 8th edition; this may include tumors of non-keratinizing histology such as basaloid, transitional cell, or cloacogenic histology; individuals with squamous cell carcinoma of the anal margin are eligible if there is evidence of extension of the primary tumor into the anal canal * registration to step 2 eligibility criteria: patients must have received at least 54 gray (gy) of radiation to the ptvp (primary) and 45 gy to ptvn (elective nodal region) for the treatment of the anal cancer * registration to step 2 eligibility criteria: patients must have ecog performance status of 0-2 * registration to step 2 eligibility criteria: patients must have hemoglobin levels of \> 10 g/dl (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: patient must have a platelet count of \> 100,000/mm\^3 (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: patient's anc level must be \> 1500/mm\^3 (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: serum creatinine must be =\< 1.5 x uln (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: total bilirubin must be \< 2 x uln (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: ast (sgot)/alt (sgpt) =\< 2.5 x institutional upper limit of normal (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: albumin \>= 3.0 g/dl (within 2 weeks prior to registration) * registration to step 2 eligibility criteria: patients known to be human immunodeficiency virus (hiv)+ patients with cd4 \> 200 and serum hiv viral load of \< 200 copies/mm\^3 are eligible; in addition: * participants must be ppd negative; alternatively, the quantiferon-tb gold in-tube (qft-git) assay (cellestis limited, carnegie, australia) can be used; an individual is considered positive for m. tuberculosis infection if the ifn-gamma response to tb antigens is above the test cut-off (after subtracting the background ifn-gamma response in the negative control); the result must be obtained within 20 weeks prior to enrollment; ppd positive (or quantiferon assay positive) participants are permitted if prophylaxis has been completed prior to enrollment; note: if patient completed chemoradiation on step 1, ppd testing does not need to be performed again * no history of aids-related complications within past year other than a history of low cd4+ t-cell count \> 200/mm\^3 prior to initiation of combination antiretroviral therapy; on study cd4+ t-cell count may not be informative due to chemoradiotherapy should not be used as an exclusion criterion if low * patient must be healthy on the basis of hiv disease with high likelihood of near normal life span were it not for the anal cancer * participants must receive appropriate care and treatment for hiv infection, including antiretroviral medications when clinically indicated, and should be under the care of a physician experienced in hiv management; participants will be eligible regardless of antiretroviral medication (including no antiretroviral medication) provided there is no intention to initiate therapy or the regimen has been stable for at least 4 weeks with no intention to change the regimen within 12 weeks following enrollment * patient must have =\< grade 2 diarrhea (participants with grade 1 diarrhea are eligible provided stool for ova/parasites and stool cryptosporidium studies are negative) * note: hiv testing is not required for eligibility * registration to step 2 eligibility criteria: scans done within 4 weeks of randomization to step 2 * registration to step 2 eligibility criteria: patient must have recovered from all toxicities associated with chemoradiotherapy for anal cancer, to grade =\< 1 with the exception of alopecia * registration to step 2 eligibility criteria: women of child bearing potential and sexually active males must use accepted and effective method(s) of contraception and/or abstain from sexual intercourse while on protocol treatment and for at least 5 months after the last dose of nivolumab (for female patients) and for at least 7 months after the last dose of nivolumab (for male patients) * registration to step 2 eligibility criteria: no uncontrolled intercurrent illness including, but not limited to ongoing or active infection, symptomatic congestive heart failure, unstable angina pectoris, cardiac arrhythmia, or psychiatric illness/social situations that would limit compliance with study requirements * registration to step 2 eligibility criteria: no prior treatment with an immune checkpoint inhibitor (anti-pd-1, anti-pd-l1, anti-pd-l2, anti-ctla4 monoclonal antibody) * registration to step 2 eligibility criteria: no patients with immunodeficiency or receiving systemic steroid therapy equivalent to \> 10 mg prednisone per day or any other form of immunosuppressive therapy within 7 days prior to the first dose of study medication; topical corticosteroid or occasional inhaled corticosteroids are allowed * registration to step 2 eligibility criteria: no live vaccines within 30 days prior to the first dose of trial treatment and while participating in the trial; examples of live vaccines include, but are not limited to, the following: measles, mumps, rubella, chicken pox, yellow fever, rabies, bcg, and typhoid (oral) vaccine; seasonal influenza vaccines for injection are generally killed virus vaccines and are allowed; however, intranasal influenza vaccines (e.g., flu-mist) are live attenuated vaccines and are not allowed exclusion criteria: * registration to step 1 eligibility criteria: for patients registering to arm t, patients must not have received prior chemoradiotherapy for anal cancer * registration to step 1 eligibility criteria: patients with an allogenic bone marrow/stem, cell or solid organ transplant are excluded * registration to step 1 eligibility criteria: women must not be pregnant or breast-feeding due to the potential teratogenic harm or abortifacient effects to an unborn fetus and possible risk for adverse events in nursing infants with the treatment regimens being used; all patients must also not expect to conceive or father children from study registration and throughout their time on study treatment; for female patients this must continue until at least 5 months after the last dose of nivolumab and for male patients until at least 7 months after the last dose of nivolumab; all females of child bearing potential must have a serum or urine pregnancy test to rule out pregnancy within 2 weeks prior to registration; a female of childbearing potential is any woman, regardless of sexual orientation or whether they have undergone tubal ligation, who meets the following criteria: 1) has achieved menarche at some point, 2) has not undergone a hysterectomy or bilateral oophorectomy, or 3) has not been naturally postmenopausal (amenorrhea following cancer therapy does not rule out childbearing potential) for at least 24 consecutive months (i.e., has had menses at any time in the preceding 24 consecutive months) * registration to step 1 eligibility criteria: patients will be excluded if they have a t1 or m1, and t2n0 cancer * registration to step 1 eligibility criteria: patients must not have had prior potentially curative surgery (abdominal, peritoneal resection) for carcinoma of the anus * registration to step 1 eligibility criteria: participants may not be receiving any other standard anti-cancer therapy or experimental agent concurrently with the study drugs * registration to step 1 eligibility criteria: individuals with a history of a different malignancy are ineligible except if they have been disease-free for at least 2 years and are deemed by the investigator to be at low risk for recurrence; individuals with the following cancers are eligible if diagnosed and treated within the past 5 years: cervical cancer in situ, and basal cell or squamous cell carcinoma of the skin * registration to step 1 eligibility criteria: patient must not have active autoimmune disease in the past 2 years * note: this does not include patients with autoimmune disease controlled by medication, such as hypothyroidism; this eligibility includes only patients with endocrine disease controlled by hormone replacement, e.g. hypothyroid, adrenal insufficiency, or diabetes mellitus (dm) * registration to step 1 eligibility criteria: patients must not have known interstitial lung disease that is symptomatic or may interfere with the detection or management of suspected drug-related pulmonary toxicity * registration to step 2 eligibility criteria: patients with an allogenic bone marrow/stem, cell or solid organ transplant are excluded * registration to step 2 eligibility criteria: women must not be pregnant or breast-feeding due to the potential teratogenic harm or abortifacient effects to an unborn fetus and possible risk for adverse events in nursing infants with the treatment regimens being used; all patients must also not expect to conceive or father children from study registration and throughout their time on study treatment; for female patients this must continue until at least 5 months after the last dose of nivolumab and for male patients until at least 7 months after the last dose of nivolumab; all females of child bearing potential must have a serum or urine pregnancy test to rule out pregnancy within 2 weeks prior to registration; a female of childbearing potential is any woman, regardless of sexual orientation or whether they have undergone tubal ligation, who meets the following criteria: 1) has achieved menarche at some point, 2) has not undergone a hysterectomy or bilateral oophorectomy, or 3) has not been naturally postmenopausal (amenorrhea following cancer therapy does not rule out childbearing potential) for at least 24 consecutive months (i.e., has had menses at any time in the preceding 24 consecutive months) * registration to step 2 eligibility criteria: patients must not have had prior potentially curative surgery (abdominal, peritoneal resection) for carcinoma of the anus * registration to step 2 eligibility criteria: participants may not be receiving any other standard anti-cancer therapy or experimental agent concurrently with the study drugs * registration to step 2 eligibility criteria: individuals with a history of a different malignancy are ineligible except if they have been disease-free for at least 2 years and are deemed by the investigator to be at low risk for recurrence; individuals with the following cancers are eligible if diagnosed and treated within the past 5 years: cervical cancer in situ, and basal cell or squamous cell carcinoma of the skin * registration to step 2 eligibility criteria: patient must not have active autoimmune disease that has required systemic treatment in past 2 years * registration to step 2 eligibility criteria: patients must not have known interstitial lung disease that is symptomatic or may interfere with the detection or management of suspected drug-related pulmonary toxicity * registration to step 2 eligibility criteria: patients must not have a history of allergic reactions attributed to compounds of similar chemical or biologic composition to nivolumab